blob: 7cb90b459e07946238b9a4ee2d59b4706f679959 [file] [log] [blame]
Greg Kroah-Hartmanb2441312017-11-01 15:07:57 +01001// SPDX-License-Identifier: GPL-2.0
Richard Weinberger37f078f2015-04-03 18:20:58 +02002#include <linux/thread_info.h>
3#include <linux/kbuild.h>
4
5int foo(void)
6{
7 OFFSET(TI_TASK, thread_info, task);
8 OFFSET(TI_FLAGS, thread_info, flags);
9 OFFSET(TI_STATUS, thread_info, status);
10 OFFSET(TI_CPU, thread_info, cpu);
11 OFFSET(TI_PRE_COUNT, thread_info, preempt_count);
12 OFFSET(TI_ADDR_LIMIT, thread_info, addr_limit);
13
14 return 0;
15}