Greg Kroah-Hartman | b244131 | 2017-11-01 15:07:57 +0100 | [diff] [blame] | 1 | // SPDX-License-Identifier: GPL-2.0 |
Richard Weinberger | 37f078f | 2015-04-03 18:20:58 +0200 | [diff] [blame] | 2 | #include <linux/thread_info.h> |
| 3 | #include <linux/kbuild.h> |
| 4 | |
| 5 | int 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 | } |