lkml.org 
[lkml]   [2021]   [Oct]   [11]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
Subject[deller-parisc:thread-info 7/7] include/asm-generic/current.h:7:24: error: implicit declaration of function 'current_thread_info'
tree:   https://git.kernel.org/pub/scm/linux/kernel/git/deller/parisc-linux.git thread-info
head: 6e3fffa554466061367aa5d2f613b65facd67c3e
commit: 6e3fffa554466061367aa5d2f613b65facd67c3e [7/7] parisc: Move thread info into task struct (CONFIG_THREAD_INFO_IN_TASK)
config: parisc-defconfig (attached as .config)
compiler: hppa-linux-gcc (GCC) 11.2.0
reproduce (this is a W=1 build):
wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross
chmod +x ~/bin/make.cross
# https://git.kernel.org/pub/scm/linux/kernel/git/deller/parisc-linux.git/commit/?id=6e3fffa554466061367aa5d2f613b65facd67c3e
git remote add deller-parisc https://git.kernel.org/pub/scm/linux/kernel/git/deller/parisc-linux.git
git fetch --no-tags deller-parisc thread-info
git checkout 6e3fffa554466061367aa5d2f613b65facd67c3e
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-11.2.0 make.cross ARCH=parisc

If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp@intel.com>

All errors (new ones prefixed by >>):

In file included from <command-line>:
include/asm-generic/preempt.h: In function 'preempt_count':
>> include/asm-generic/current.h:7:24: error: implicit declaration of function 'current_thread_info' [-Werror=implicit-function-declaration]
7 | #define get_current() (current_thread_info()->task)
| ^~~~~~~~~~~~~~~~~~~
include/linux/compiler_types.h:302:23: note: in definition of macro '__compiletime_assert'
302 | if (!(condition)) \
| ^~~~~~~~~
include/linux/compiler_types.h:322:9: note: in expansion of macro '_compiletime_assert'
322 | _compiletime_assert(condition, msg, __compiletime_assert_, __COUNTER__)
| ^~~~~~~~~~~~~~~~~~~
include/asm-generic/rwonce.h:36:9: note: in expansion of macro 'compiletime_assert'
36 | compiletime_assert(__native_word(t) || sizeof(t) == sizeof(long long), \
| ^~~~~~~~~~~~~~~~~~
include/asm-generic/rwonce.h:36:28: note: in expansion of macro '__native_word'
36 | compiletime_assert(__native_word(t) || sizeof(t) == sizeof(long long), \
| ^~~~~~~~~~~~~
include/asm-generic/rwonce.h:49:9: note: in expansion of macro 'compiletime_assert_rwonce_type'
49 | compiletime_assert_rwonce_type(x); \
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
include/asm-generic/preempt.h:11:16: note: in expansion of macro 'READ_ONCE'
11 | return READ_ONCE(current_thread_info()->preempt_count);
| ^~~~~~~~~
include/asm-generic/current.h:8:17: note: in expansion of macro 'get_current'
8 | #define current get_current()
| ^~~~~~~~~~~
include/linux/thread_info.h:24:54: note: in expansion of macro 'current'
24 | #define current_thread_info() ((struct thread_info *)current)
| ^~~~~~~
include/asm-generic/preempt.h:11:26: note: in expansion of macro 'current_thread_info'
11 | return READ_ONCE(current_thread_info()->preempt_count);
| ^~~~~~~~~~~~~~~~~~~
>> include/asm-generic/current.h:7:45: error: invalid type argument of '->' (have 'int')
7 | #define get_current() (current_thread_info()->task)
| ^~
include/linux/compiler_types.h:302:23: note: in definition of macro '__compiletime_assert'
302 | if (!(condition)) \
| ^~~~~~~~~
include/linux/compiler_types.h:322:9: note: in expansion of macro '_compiletime_assert'
322 | _compiletime_assert(condition, msg, __compiletime_assert_, __COUNTER__)
| ^~~~~~~~~~~~~~~~~~~
include/asm-generic/rwonce.h:36:9: note: in expansion of macro 'compiletime_assert'
36 | compiletime_assert(__native_word(t) || sizeof(t) == sizeof(long long), \
| ^~~~~~~~~~~~~~~~~~
include/asm-generic/rwonce.h:36:28: note: in expansion of macro '__native_word'
36 | compiletime_assert(__native_word(t) || sizeof(t) == sizeof(long long), \
| ^~~~~~~~~~~~~
include/asm-generic/rwonce.h:49:9: note: in expansion of macro 'compiletime_assert_rwonce_type'
49 | compiletime_assert_rwonce_type(x); \
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
include/asm-generic/preempt.h:11:16: note: in expansion of macro 'READ_ONCE'
11 | return READ_ONCE(current_thread_info()->preempt_count);
| ^~~~~~~~~
include/asm-generic/current.h:8:17: note: in expansion of macro 'get_current'
8 | #define current get_current()
| ^~~~~~~~~~~
include/linux/thread_info.h:24:54: note: in expansion of macro 'current'
24 | #define current_thread_info() ((struct thread_info *)current)
| ^~~~~~~
include/asm-generic/preempt.h:11:26: note: in expansion of macro 'current_thread_info'
11 | return READ_ONCE(current_thread_info()->preempt_count);
| ^~~~~~~~~~~~~~~~~~~
>> include/asm-generic/current.h:7:45: error: invalid type argument of '->' (have 'int')
7 | #define get_current() (current_thread_info()->task)
| ^~
include/linux/compiler_types.h:302:23: note: in definition of macro '__compiletime_assert'
302 | if (!(condition)) \
| ^~~~~~~~~
include/linux/compiler_types.h:322:9: note: in expansion of macro '_compiletime_assert'
322 | _compiletime_assert(condition, msg, __compiletime_assert_, __COUNTER__)
| ^~~~~~~~~~~~~~~~~~~
include/asm-generic/rwonce.h:36:9: note: in expansion of macro 'compiletime_assert'
36 | compiletime_assert(__native_word(t) || sizeof(t) == sizeof(long long), \
| ^~~~~~~~~~~~~~~~~~
include/asm-generic/rwonce.h:36:28: note: in expansion of macro '__native_word'
36 | compiletime_assert(__native_word(t) || sizeof(t) == sizeof(long long), \
| ^~~~~~~~~~~~~
include/asm-generic/rwonce.h:49:9: note: in expansion of macro 'compiletime_assert_rwonce_type'
49 | compiletime_assert_rwonce_type(x); \
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
include/asm-generic/preempt.h:11:16: note: in expansion of macro 'READ_ONCE'
11 | return READ_ONCE(current_thread_info()->preempt_count);
| ^~~~~~~~~
include/asm-generic/current.h:8:17: note: in expansion of macro 'get_current'
8 | #define current get_current()
| ^~~~~~~~~~~
include/linux/thread_info.h:24:54: note: in expansion of macro 'current'
24 | #define current_thread_info() ((struct thread_info *)current)
| ^~~~~~~
include/asm-generic/preempt.h:11:26: note: in expansion of macro 'current_thread_info'
11 | return READ_ONCE(current_thread_info()->preempt_count);
| ^~~~~~~~~~~~~~~~~~~
>> include/asm-generic/current.h:7:45: error: invalid type argument of '->' (have 'int')
7 | #define get_current() (current_thread_info()->task)
| ^~
include/linux/compiler_types.h:302:23: note: in definition of macro '__compiletime_assert'
302 | if (!(condition)) \
| ^~~~~~~~~
include/linux/compiler_types.h:322:9: note: in expansion of macro '_compiletime_assert'
322 | _compiletime_assert(condition, msg, __compiletime_assert_, __COUNTER__)
| ^~~~~~~~~~~~~~~~~~~
include/asm-generic/rwonce.h:36:9: note: in expansion of macro 'compiletime_assert'
36 | compiletime_assert(__native_word(t) || sizeof(t) == sizeof(long long), \
| ^~~~~~~~~~~~~~~~~~
include/asm-generic/rwonce.h:36:28: note: in expansion of macro '__native_word'
36 | compiletime_assert(__native_word(t) || sizeof(t) == sizeof(long long), \
| ^~~~~~~~~~~~~
include/asm-generic/rwonce.h:49:9: note: in expansion of macro 'compiletime_assert_rwonce_type'
49 | compiletime_assert_rwonce_type(x); \
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
include/asm-generic/preempt.h:11:16: note: in expansion of macro 'READ_ONCE'
11 | return READ_ONCE(current_thread_info()->preempt_count);
| ^~~~~~~~~
include/asm-generic/current.h:8:17: note: in expansion of macro 'get_current'
8 | #define current get_current()
| ^~~~~~~~~~~
include/linux/thread_info.h:24:54: note: in expansion of macro 'current'
24 | #define current_thread_info() ((struct thread_info *)current)
| ^~~~~~~
include/asm-generic/preempt.h:11:26: note: in expansion of macro 'current_thread_info'
11 | return READ_ONCE(current_thread_info()->preempt_count);
| ^~~~~~~~~~~~~~~~~~~
>> include/asm-generic/current.h:7:45: error: invalid type argument of '->' (have 'int')
7 | #define get_current() (current_thread_info()->task)
| ^~
include/linux/compiler_types.h:302:23: note: in definition of macro '__compiletime_assert'
302 | if (!(condition)) \
| ^~~~~~~~~
include/linux/compiler_types.h:322:9: note: in expansion of macro '_compiletime_assert'
322 | _compiletime_assert(condition, msg, __compiletime_assert_, __COUNTER__)
| ^~~~~~~~~~~~~~~~~~~
include/asm-generic/rwonce.h:36:9: note: in expansion of macro 'compiletime_assert'
36 | compiletime_assert(__native_word(t) || sizeof(t) == sizeof(long long), \
| ^~~~~~~~~~~~~~~~~~
include/asm-generic/rwonce.h:36:28: note: in expansion of macro '__native_word'
36 | compiletime_assert(__native_word(t) || sizeof(t) == sizeof(long long), \
| ^~~~~~~~~~~~~
include/asm-generic/rwonce.h:49:9: note: in expansion of macro 'compiletime_assert_rwonce_type'
49 | compiletime_assert_rwonce_type(x); \
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
include/asm-generic/preempt.h:11:16: note: in expansion of macro 'READ_ONCE'
11 | return READ_ONCE(current_thread_info()->preempt_count);
| ^~~~~~~~~
include/asm-generic/current.h:8:17: note: in expansion of macro 'get_current'
8 | #define current get_current()
| ^~~~~~~~~~~
include/linux/thread_info.h:24:54: note: in expansion of macro 'current'
24 | #define current_thread_info() ((struct thread_info *)current)
| ^~~~~~~
include/asm-generic/preempt.h:11:26: note: in expansion of macro 'current_thread_info'
11 | return READ_ONCE(current_thread_info()->preempt_count);
| ^~~~~~~~~~~~~~~~~~~
>> include/asm-generic/current.h:7:45: error: invalid type argument of '->' (have 'int')
7 | #define get_current() (current_thread_info()->task)
| ^~
include/linux/compiler_types.h:302:23: note: in definition of macro '__compiletime_assert'
302 | if (!(condition)) \
| ^~~~~~~~~
include/linux/compiler_types.h:322:9: note: in expansion of macro '_compiletime_assert'
322 | _compiletime_assert(condition, msg, __compiletime_assert_, __COUNTER__)
| ^~~~~~~~~~~~~~~~~~~
include/asm-generic/rwonce.h:36:9: note: in expansion of macro 'compiletime_assert'
36 | compiletime_assert(__native_word(t) || sizeof(t) == sizeof(long long), \
| ^~~~~~~~~~~~~~~~~~
include/asm-generic/rwonce.h:49:9: note: in expansion of macro 'compiletime_assert_rwonce_type'
49 | compiletime_assert_rwonce_type(x); \
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
include/asm-generic/preempt.h:11:16: note: in expansion of macro 'READ_ONCE'
11 | return READ_ONCE(current_thread_info()->preempt_count);
| ^~~~~~~~~
include/asm-generic/current.h:8:17: note: in expansion of macro 'get_current'
8 | #define current get_current()
| ^~~~~~~~~~~
include/linux/thread_info.h:24:54: note: in expansion of macro 'current'
24 | #define current_thread_info() ((struct thread_info *)current)
| ^~~~~~~
include/asm-generic/preempt.h:11:26: note: in expansion of macro 'current_thread_info'
11 | return READ_ONCE(current_thread_info()->preempt_count);
| ^~~~~~~~~~~~~~~~~~~
>> include/asm-generic/current.h:7:45: error: invalid type argument of '->' (have 'int')
7 | #define get_current() (current_thread_info()->task)
| ^~
include/linux/compiler_types.h:279:27: note: in definition of macro '__unqual_scalar_typeof'
279 | _Generic((x), \
| ^
include/asm-generic/rwonce.h:50:9: note: in expansion of macro '__READ_ONCE'
50 | __READ_ONCE(x); \
| ^~~~~~~~~~~
include/asm-generic/preempt.h:11:16: note: in expansion of macro 'READ_ONCE'
11 | return READ_ONCE(current_thread_info()->preempt_count);
| ^~~~~~~~~
include/asm-generic/current.h:8:17: note: in expansion of macro 'get_current'
8 | #define current get_current()
| ^~~~~~~~~~~
include/linux/thread_info.h:24:54: note: in expansion of macro 'current'
24 | #define current_thread_info() ((struct thread_info *)current)
| ^~~~~~~
include/asm-generic/preempt.h:11:26: note: in expansion of macro 'current_thread_info'
11 | return READ_ONCE(current_thread_info()->preempt_count);
| ^~~~~~~~~~~~~~~~~~~
In file included from ./arch/parisc/include/generated/asm/rwonce.h:1,
from include/linux/compiler.h:266,
from include/linux/kernel.h:11,
from arch/parisc/include/asm/bug.h:5,
from include/linux/bug.h:5,
from include/linux/thread_info.h:13,
from include/asm-generic/current.h:5,
from ./arch/parisc/include/generated/asm/current.h:1,
from include/linux/sched.h:12,
from arch/parisc/kernel/asm-offsets.c:20:
>> include/asm-generic/current.h:7:45: error: invalid type argument of '->' (have 'int')
7 | #define get_current() (current_thread_info()->task)
| ^~
include/asm-generic/rwonce.h:44:73: note: in definition of macro '__READ_ONCE'
44 | #define __READ_ONCE(x) (*(const volatile __unqual_scalar_typeof(x) *)&(x))
| ^
include/asm-generic/preempt.h:11:16: note: in expansion of macro 'READ_ONCE'
11 | return READ_ONCE(current_thread_info()->preempt_count);
| ^~~~~~~~~
include/asm-generic/current.h:8:17: note: in expansion of macro 'get_current'
8 | #define current get_current()
| ^~~~~~~~~~~
include/linux/thread_info.h:24:54: note: in expansion of macro 'current'
24 | #define current_thread_info() ((struct thread_info *)current)
| ^~~~~~~
include/asm-generic/preempt.h:11:26: note: in expansion of macro 'current_thread_info'
11 | return READ_ONCE(current_thread_info()->preempt_count);
| ^~~~~~~~~~~~~~~~~~~
In file included from ./arch/parisc/include/generated/asm/current.h:1,
from include/linux/sched.h:12,
from arch/parisc/kernel/asm-offsets.c:20:
include/asm-generic/preempt.h: In function 'preempt_count_ptr':
>> include/asm-generic/current.h:7:45: error: invalid type argument of '->' (have 'int')
7 | #define get_current() (current_thread_info()->task)
| ^~
include/asm-generic/current.h:8:17: note: in expansion of macro 'get_current'
8 | #define current get_current()
| ^~~~~~~~~~~
include/linux/thread_info.h:24:54: note: in expansion of macro 'current'
24 | #define current_thread_info() ((struct thread_info *)current)
| ^~~~~~~
include/asm-generic/preempt.h:16:17: note: in expansion of macro 'current_thread_info'
16 | return &current_thread_info()->preempt_count;
| ^~~~~~~~~~~~~~~~~~~
include/asm-generic/preempt.h: In function '__preempt_count_dec_and_test':
>> include/asm-generic/current.h:7:45: error: invalid type argument of '->' (have 'int')
7 | #define get_current() (current_thread_info()->task)
| ^~
include/asm-generic/current.h:8:17: note: in expansion of macro 'get_current'
8 | #define current get_current()
| ^~~~~~~~~~~
include/linux/thread_info.h:24:54: note: in expansion of macro 'current'
24 | #define current_thread_info() ((struct thread_info *)current)
| ^~~~~~~
include/linux/thread_info.h:132:29: note: in expansion of macro 'current_thread_info'
132 | test_ti_thread_flag(current_thread_info(), flag)
| ^~~~~~~~~~~~~~~~~~~
include/linux/thread_info.h:166:28: note: in expansion of macro 'test_thread_flag'
166 | #define tif_need_resched() test_thread_flag(TIF_NEED_RESCHED)
| ^~~~~~~~~~~~~~~~
include/asm-generic/preempt.h:69:43: note: in expansion of macro 'tif_need_resched'
69 | return !--*preempt_count_ptr() && tif_need_resched();
| ^~~~~~~~~~~~~~~~
In file included from include/linux/kernel.h:11,
from arch/parisc/include/asm/bug.h:5,
from include/linux/bug.h:5,
from include/linux/thread_info.h:13,
from include/asm-generic/current.h:5,
from ./arch/parisc/include/generated/asm/current.h:1,
from include/linux/sched.h:12,
from arch/parisc/kernel/asm-offsets.c:20:
include/asm-generic/preempt.h: In function 'should_resched':
>> include/asm-generic/current.h:7:45: error: invalid type argument of '->' (have 'int')
7 | #define get_current() (current_thread_info()->task)
| ^~
include/linux/compiler.h:78:45: note: in definition of macro 'unlikely'
78 | # define unlikely(x) __builtin_expect(!!(x), 0)
| ^
include/asm-generic/current.h:8:17: note: in expansion of macro 'get_current'
8 | #define current get_current()
| ^~~~~~~~~~~
include/linux/thread_info.h:24:54: note: in expansion of macro 'current'
24 | #define current_thread_info() ((struct thread_info *)current)
| ^~~~~~~
include/linux/thread_info.h:132:29: note: in expansion of macro 'current_thread_info'
132 | test_ti_thread_flag(current_thread_info(), flag)
| ^~~~~~~~~~~~~~~~~~~
include/linux/thread_info.h:166:28: note: in expansion of macro 'test_thread_flag'
166 | #define tif_need_resched() test_thread_flag(TIF_NEED_RESCHED)
| ^~~~~~~~~~~~~~~~
include/asm-generic/preempt.h:78:25: note: in expansion of macro 'tif_need_resched'
78 | tif_need_resched());
| ^~~~~~~~~~~~~~~~
In file included from include/asm-generic/current.h:5,
from ./arch/parisc/include/generated/asm/current.h:1,
from include/linux/sched.h:12,
from arch/parisc/kernel/asm-offsets.c:20:
include/linux/ww_mutex.h: In function 'ww_acquire_init':
>> include/linux/thread_info.h:24:54: error: 'current' undeclared (first use in this function)
24 | #define current_thread_info() ((struct thread_info *)current)
| ^~~~~~~
include/asm-generic/current.h:7:24: note: in expansion of macro 'current_thread_info'
7 | #define get_current() (current_thread_info()->task)
| ^~~~~~~~~~~~~~~~~~~
include/asm-generic/current.h:8:17: note: in expansion of macro 'get_current'
8 | #define current get_current()
| ^~~~~~~~~~~
include/linux/ww_mutex.h:137:21: note: in expansion of macro 'current'
137 | ctx->task = current;
| ^~~~~~~
include/linux/thread_info.h:24:54: note: each undeclared identifier is reported only once for each function it appears in
24 | #define current_thread_info() ((struct thread_info *)current)
| ^~~~~~~
include/asm-generic/current.h:7:24: note: in expansion of macro 'current_thread_info'
7 | #define get_current() (current_thread_info()->task)
| ^~~~~~~~~~~~~~~~~~~
include/asm-generic/current.h:8:17: note: in expansion of macro 'get_current'
8 | #define current get_current()
| ^~~~~~~~~~~
include/linux/ww_mutex.h:137:21: note: in expansion of macro 'current'
137 | ctx->task = current;
| ^~~~~~~
In file included from include/linux/kernel.h:11,
from arch/parisc/include/asm/bug.h:5,
from include/linux/bug.h:5,
from include/linux/thread_info.h:13,
from include/asm-generic/current.h:5,
from ./arch/parisc/include/generated/asm/current.h:1,
from include/linux/sched.h:12,
from arch/parisc/kernel/asm-offsets.c:20:
include/linux/seccomp.h: In function 'secure_computing':
>> include/asm-generic/current.h:7:45: error: invalid type argument of '->' (have 'int')
7 | #define get_current() (current_thread_info()->task)
| ^~
include/linux/compiler.h:78:45: note: in definition of macro 'unlikely'
78 | # define unlikely(x) __builtin_expect(!!(x), 0)
| ^
include/asm-generic/current.h:8:17: note: in expansion of macro 'get_current'
8 | #define current get_current()
| ^~~~~~~~~~~
include/linux/thread_info.h:24:54: note: in expansion of macro 'current'
24 | #define current_thread_info() ((struct thread_info *)current)
| ^~~~~~~
include/linux/thread_info.h:154:29: note: in expansion of macro 'current_thread_info'
154 | test_ti_thread_flag(current_thread_info(), TIF_##fl)
| ^~~~~~~~~~~~~~~~~~~
include/linux/seccomp.h:45:22: note: in expansion of macro 'test_syscall_work'
45 | if (unlikely(test_syscall_work(SECCOMP)))
| ^~~~~~~~~~~~~~~~~
In file included from include/asm-generic/current.h:5,
from ./arch/parisc/include/generated/asm/current.h:1,
from include/linux/sched.h:12,
from arch/parisc/kernel/asm-offsets.c:20:
include/linux/sched.h: In function 'is_percpu_thread':
>> include/linux/thread_info.h:24:54: error: 'current' undeclared (first use in this function)
24 | #define current_thread_info() ((struct thread_info *)current)
| ^~~~~~~
include/asm-generic/current.h:7:24: note: in expansion of macro 'current_thread_info'
7 | #define get_current() (current_thread_info()->task)
| ^~~~~~~~~~~~~~~~~~~
include/asm-generic/current.h:8:17: note: in expansion of macro 'get_current'
8 | #define current get_current()
| ^~~~~~~~~~~
include/linux/sched.h:1726:17: note: in expansion of macro 'current'
1726 | return (current->flags & PF_NO_SETAFFINITY) &&
| ^~~~~~~
include/linux/sched.h: In function 'current_restore_flags':
>> include/linux/thread_info.h:24:54: error: 'current' undeclared (first use in this function)
24 | #define current_thread_info() ((struct thread_info *)current)
| ^~~~~~~
include/asm-generic/current.h:7:24: note: in expansion of macro 'current_thread_info'
7 | #define get_current() (current_thread_info()->task)
| ^~~~~~~~~~~~~~~~~~~
include/asm-generic/current.h:8:17: note: in expansion of macro 'get_current'
8 | #define current get_current()
| ^~~~~~~~~~~
include/linux/sched.h:1787:9: note: in expansion of macro 'current'
1787 | current->flags &= ~flags;
| ^~~~~~~
In file included from ./arch/parisc/include/generated/asm/current.h:1,
from include/linux/sched.h:12,
from arch/parisc/kernel/asm-offsets.c:20:
include/linux/sched.h: In function 'scheduler_ipi':
>> include/asm-generic/current.h:7:45: error: invalid type argument of '->' (have 'int')
7 | #define get_current() (current_thread_info()->task)
| ^~
include/asm-generic/current.h:8:17: note: in expansion of macro 'get_current'
8 | #define current get_current()
| ^~~~~~~~~~~
include/linux/thread_info.h:24:54: note: in expansion of macro 'current'
24 | #define current_thread_info() ((struct thread_info *)current)
| ^~~~~~~
include/linux/thread_info.h:132:29: note: in expansion of macro 'current_thread_info'
132 | test_ti_thread_flag(current_thread_info(), flag)
| ^~~~~~~~~~~~~~~~~~~
include/linux/thread_info.h:166:28: note: in expansion of macro 'test_thread_flag'
166 | #define tif_need_resched() test_thread_flag(TIF_NEED_RESCHED)
| ^~~~~~~~~~~~~~~~
include/linux/preempt.h:281:13: note: in expansion of macro 'tif_need_resched'
281 | if (tif_need_resched()) \
| ^~~~~~~~~~~~~~~~
include/linux/sched.h:1947:9: note: in expansion of macro 'preempt_fold_need_resched'
1947 | preempt_fold_need_resched();
| ^~~~~~~~~~~~~~~~~~~~~~~~~
In file included from include/linux/kernel.h:11,
from arch/parisc/include/asm/bug.h:5,
from include/linux/bug.h:5,
from include/linux/thread_info.h:13,
from include/asm-generic/current.h:5,
from ./arch/parisc/include/generated/asm/current.h:1,
from include/linux/sched.h:12,
from arch/parisc/kernel/asm-offsets.c:20:
include/linux/sched.h: In function 'need_resched':
>> include/asm-generic/current.h:7:45: error: invalid type argument of '->' (have 'int')
7 | #define get_current() (current_thread_info()->task)
| ^~
include/linux/compiler.h:78:45: note: in definition of macro 'unlikely'
78 | # define unlikely(x) __builtin_expect(!!(x), 0)
| ^
include/asm-generic/current.h:8:17: note: in expansion of macro 'get_current'
8 | #define current get_current()
| ^~~~~~~~~~~
include/linux/thread_info.h:24:54: note: in expansion of macro 'current'
24 | #define current_thread_info() ((struct thread_info *)current)
| ^~~~~~~
include/linux/thread_info.h:132:29: note: in expansion of macro 'current_thread_info'
132 | test_ti_thread_flag(current_thread_info(), flag)
| ^~~~~~~~~~~~~~~~~~~
include/linux/thread_info.h:166:28: note: in expansion of macro 'test_thread_flag'
166 | #define tif_need_resched() test_thread_flag(TIF_NEED_RESCHED)
| ^~~~~~~~~~~~~~~~
include/linux/sched.h:2107:25: note: in expansion of macro 'tif_need_resched'
2107 | return unlikely(tif_need_resched());
| ^~~~~~~~~~~~~~~~
In file included from include/asm-generic/current.h:5,
from ./arch/parisc/include/generated/asm/current.h:1,
from include/linux/sched.h:12,
from arch/parisc/kernel/asm-offsets.c:20:
include/linux/uaccess.h: In function 'pagefault_disabled_inc':
>> include/linux/thread_info.h:24:54: error: 'current' undeclared (first use in this function)
24 | #define current_thread_info() ((struct thread_info *)current)
| ^~~~~~~
include/asm-generic/current.h:7:24: note: in expansion of macro 'current_thread_info'
7 | #define get_current() (current_thread_info()->task)
| ^~~~~~~~~~~~~~~~~~~
include/asm-generic/current.h:8:17: note: in expansion of macro 'get_current'
8 | #define current get_current()
| ^~~~~~~~~~~
include/linux/uaccess.h:219:9: note: in expansion of macro 'current'
219 | current->pagefault_disabled++;
| ^~~~~~~
include/linux/uaccess.h: In function 'pagefault_disabled_dec':
>> include/linux/thread_info.h:24:54: error: 'current' undeclared (first use in this function)
24 | #define current_thread_info() ((struct thread_info *)current)
| ^~~~~~~
include/asm-generic/current.h:7:24: note: in expansion of macro 'current_thread_info'
7 | #define get_current() (current_thread_info()->task)
| ^~~~~~~~~~~~~~~~~~~
include/asm-generic/current.h:8:17: note: in expansion of macro 'get_current'
8 | #define current get_current()
| ^~~~~~~~~~~
include/linux/uaccess.h:224:9: note: in expansion of macro 'current'
224 | current->pagefault_disabled--;
| ^~~~~~~
include/linux/uaccess.h: In function 'pagefault_disabled':
>> include/linux/thread_info.h:24:54: error: 'current' undeclared (first use in this function)
24 | #define current_thread_info() ((struct thread_info *)current)
| ^~~~~~~
include/asm-generic/current.h:7:24: note: in expansion of macro 'current_thread_info'
7 | #define get_current() (current_thread_info()->task)
| ^~~~~~~~~~~~~~~~~~~
include/asm-generic/current.h:8:17: note: in expansion of macro 'get_current'
8 | #define current get_current()
| ^~~~~~~~~~~
include/linux/uaccess.h:259:16: note: in expansion of macro 'current'
259 | return current->pagefault_disabled != 0;
| ^~~~~~~
include/linux/ratelimit.h: In function 'ratelimit_state_exit':
include/linux/thread_info.h:24:54: error: 'current' undeclared (first use in this function)
24 | #define current_thread_info() ((struct thread_info *)current)
| ^~~~~~~
include/asm-generic/current.h:7:24: note: in expansion of macro 'current_thread_info'
7 | #define get_current() (current_thread_info()->task)
| ^~~~~~~~~~~~~~~~~~~
include/asm-generic/current.h:8:17: note: in expansion of macro 'get_current'
8 | #define current get_current()
| ^~~~~~~~~~~
include/linux/printk.h:418:33: note: in expansion of macro 'current'
418 | _p_func(_fmt, ##__VA_ARGS__); \
| ^~~~~~~~~~~
include/linux/printk.h:446:26: note: in expansion of macro 'printk_index_wrap'
446 | #define printk(fmt, ...) printk_index_wrap(_printk, fmt, ##__VA_ARGS__)
| ^~~~~~~~~~~~~~~~~
include/linux/printk.h:499:9: note: in expansion of macro 'printk'
499 | printk(KERN_WARNING pr_fmt(fmt), ##__VA_ARGS__)
| ^~~~~~
include/linux/ratelimit.h:31:17: note: in expansion of macro 'pr_warn'
31 | pr_warn("%s: %d output lines suppressed due to ratelimiting\n",
| ^~~~~~~
include/linux/sched/signal.h: In function 'kernel_dequeue_signal':
include/linux/thread_info.h:24:54: error: 'current' undeclared (first use in this function)
24 | #define current_thread_info() ((struct thread_info *)current)
| ^~~~~~~
include/asm-generic/current.h:7:24: note: in expansion of macro 'current_thread_info'
7 | #define get_current() (current_thread_info()->task)
| ^~~~~~~~~~~~~~~~~~~
include/asm-generic/current.h:8:17: note: in expansion of macro 'get_current'
8 | #define current get_current()
| ^~~~~~~~~~~
include/linux/sched/signal.h:281:36: note: in expansion of macro 'current'
281 | struct task_struct *task = current;
| ^~~~~~~
include/linux/sched/signal.h: In function 'kernel_signal_stop':
include/linux/thread_info.h:24:54: error: 'current' undeclared (first use in this function)
24 | #define current_thread_info() ((struct thread_info *)current)
| ^~~~~~~
include/asm-generic/current.h:7:24: note: in expansion of macro 'current_thread_info'
7 | #define get_current() (current_thread_info()->task)
| ^~~~~~~~~~~~~~~~~~~
include/asm-generic/current.h:8:17: note: in expansion of macro 'get_current'
8 | #define current get_current()
| ^~~~~~~~~~~
include/linux/sched/signal.h:294:24: note: in expansion of macro 'current'
294 | spin_lock_irq(&current->sighand->siglock);
| ^~~~~~~
include/linux/sched/signal.h: In function 'restart_syscall':
include/linux/thread_info.h:24:54: error: 'current' undeclared (first use in this function)
24 | #define current_thread_info() ((struct thread_info *)current)
| ^~~~~~~
include/asm-generic/current.h:7:24: note: in expansion of macro 'current_thread_info'
7 | #define get_current() (current_thread_info()->task)
| ^~~~~~~~~~~~~~~~~~~
include/asm-generic/current.h:8:17: note: in expansion of macro 'get_current'
8 | #define current get_current()
| ^~~~~~~~~~~
include/linux/sched/signal.h:350:29: note: in expansion of macro 'current'
350 | set_tsk_thread_flag(current, TIF_SIGPENDING);
| ^~~~~~~
In file included from include/linux/kernel.h:11,
from arch/parisc/include/asm/bug.h:5,
from include/linux/bug.h:5,
from include/linux/thread_info.h:13,
from include/asm-generic/current.h:5,
from ./arch/parisc/include/generated/asm/current.h:1,
from include/linux/sched.h:12,
from arch/parisc/kernel/asm-offsets.c:20:
include/linux/sched/signal.h: In function 'fault_signal_pending':
include/linux/thread_info.h:24:54: error: 'current' undeclared (first use in this function)
24 | #define current_thread_info() ((struct thread_info *)current)
| ^~~~~~~
include/linux/compiler.h:78:45: note: in definition of macro 'unlikely'
78 | # define unlikely(x) __builtin_expect(!!(x), 0)
| ^
include/asm-generic/current.h:7:24: note: in expansion of macro 'current_thread_info'
7 | #define get_current() (current_thread_info()->task)
| ^~~~~~~~~~~~~~~~~~~
include/asm-generic/current.h:8:17: note: in expansion of macro 'get_current'
8 | #define current get_current()
| ^~~~~~~~~~~
include/linux/sched/signal.h:401:47: note: in expansion of macro 'current'
401 | (fatal_signal_pending(current) ||
| ^~~~~~~
In file included from include/asm-generic/current.h:5,
from ./arch/parisc/include/generated/asm/current.h:1,
from include/linux/sched.h:12,
from arch/parisc/kernel/asm-offsets.c:20:


vim +/current_thread_info +7 include/asm-generic/current.h

aafe4dbed0bf6c Arnd Bergmann 2009-05-13 6
aafe4dbed0bf6c Arnd Bergmann 2009-05-13 @7 #define get_current() (current_thread_info()->task)
aafe4dbed0bf6c Arnd Bergmann 2009-05-13 @8 #define current get_current()
aafe4dbed0bf6c Arnd Bergmann 2009-05-13 9

:::::: The code at line 7 was first introduced by commit
:::::: aafe4dbed0bf6cbdb2e9f03e1d42f8a540d8541d asm-generic: add generic versions of common headers

:::::: TO: Arnd Bergmann <arnd@arndb.de>
:::::: CC: Arnd Bergmann <arnd@klappe2.(none)>

---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
[unhandled content-type:application/gzip]
\
 
 \ /
  Last update: 2021-10-11 13:27    [W:0.058 / U:0.928 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site