lists.openwall.net | lists / announce owl-users owl-dev john-users john-dev passwdqc-users yescrypt popa3d-users / oss-security kernel-hardening musl sabotage tlsify passwords / crypt-dev xvendor / Bugtraq Full-Disclosure linux-kernel linux-netdev linux-ext4 linux-hardening linux-cve-announce PHC | |
Open Source and information security mailing list archives
| ||
|
Message-ID: <202202240337.1ug9UnXJ-lkp@intel.com> Date: Thu, 24 Feb 2022 03:35:56 +0800 From: kernel test robot <lkp@...el.com> To: Ingo Molnar <mingo@...nel.org> Cc: llvm@...ts.linux.dev, kbuild-all@...ts.01.org, linux-kernel@...r.kernel.org Subject: [mingo-tip:sched/headers 571/2340] arch/s390/include/asm/preempt.h:110:42: error: implicit declaration of function 'task_thread_info' tree: git://git.kernel.org/pub/scm/linux/kernel/git/mingo/tip.git sched/headers head: 97c5eeb4de3ad324ed2a4656b46465299cfd010a commit: 32c0f4ef20d93c78fce830a2fe6cc83db8bb29d0 [571/2340] headers/deps: Move task->thread_info to per_task() config: s390-randconfig-r044-20220223 (https://download.01.org/0day-ci/archive/20220224/202202240337.1ug9UnXJ-lkp@intel.com/config) compiler: clang version 15.0.0 (https://github.com/llvm/llvm-project d271fc04d5b97b12e6b797c6067d3c96a8d7470e) 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 # install s390 cross compiling tool for clang build # apt-get install binutils-s390x-linux-gnu # https://git.kernel.org/pub/scm/linux/kernel/git/mingo/tip.git/commit/?id=32c0f4ef20d93c78fce830a2fe6cc83db8bb29d0 git remote add mingo-tip git://git.kernel.org/pub/scm/linux/kernel/git/mingo/tip.git git fetch --no-tags mingo-tip sched/headers git checkout 32c0f4ef20d93c78fce830a2fe6cc83db8bb29d0 # save the config file to linux build tree mkdir build_dir COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross W=1 O=build_dir ARCH=s390 prepare If you fix the issue, kindly add following tag as appropriate Reported-by: kernel test robot <lkp@...el.com> All error/warnings (new ones prefixed by >>): In file included from arch/s390/kernel/asm-offsets.c:11: In file included from include/linux/kvm_host.h:7: In file included from include/linux/hardirq.h:5: In file included from include/linux/context_tracking_state.h:5: In file included from include/linux/percpu.h:6: In file included from include/linux/smp.h:110: In file included from include/linux/preempt.h:78: >> arch/s390/include/asm/preempt.h:110:42: error: implicit declaration of function 'task_thread_info' [-Werror,-Wimplicit-function-declaration] return !--S390_lowcore.preempt_count && tif_need_resched(); ^ include/linux/sched/thread_info_api_lowlevel.h:103:28: note: expanded from macro 'tif_need_resched' #define tif_need_resched() test_thread_flag(TIF_NEED_RESCHED) ^ include/linux/sched/thread_info_api_lowlevel.h:64:22: note: expanded from macro 'test_thread_flag' test_ti_thread_flag(current_thread_info(), flag) ^ include/linux/thread_info.h:26:32: note: expanded from macro 'current_thread_info' # define current_thread_info() task_thread_info(current) ^ In file included from arch/s390/kernel/asm-offsets.c:11: In file included from include/linux/kvm_host.h:7: In file included from include/linux/hardirq.h:5: In file included from include/linux/context_tracking_state.h:5: In file included from include/linux/percpu.h:6: In file included from include/linux/smp.h:110: In file included from include/linux/preempt.h:78: >> arch/s390/include/asm/preempt.h:110:42: warning: incompatible integer to pointer conversion passing 'int' to parameter of type 'struct thread_info *' [-Wint-conversion] return !--S390_lowcore.preempt_count && tif_need_resched(); ^~~~~~~~~~~~~~~~~~ include/linux/sched/thread_info_api_lowlevel.h:103:28: note: expanded from macro 'tif_need_resched' #define tif_need_resched() test_thread_flag(TIF_NEED_RESCHED) ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ include/linux/sched/thread_info_api_lowlevel.h:64:22: note: expanded from macro 'test_thread_flag' test_ti_thread_flag(current_thread_info(), flag) ^~~~~~~~~~~~~~~~~~~~~ include/linux/thread_info.h:26:32: note: expanded from macro 'current_thread_info' # define current_thread_info() task_thread_info(current) ^~~~~~~~~~~~~~~~~~~~~~~~~ include/linux/sched/thread_info_api_lowlevel.h:39:59: note: passing argument to parameter 'ti' here static inline int test_ti_thread_flag(struct thread_info *ti, int flag) ^ In file included from arch/s390/kernel/asm-offsets.c:11: In file included from include/linux/kvm_host.h:7: In file included from include/linux/hardirq.h:5: In file included from include/linux/context_tracking_state.h:5: In file included from include/linux/percpu.h:6: In file included from include/linux/smp.h:110: In file included from include/linux/preempt.h:78: arch/s390/include/asm/preempt.h:116:4: error: implicit declaration of function 'task_thread_info' [-Werror,-Wimplicit-function-declaration] tif_need_resched()); ^ include/linux/sched/thread_info_api_lowlevel.h:103:28: note: expanded from macro 'tif_need_resched' #define tif_need_resched() test_thread_flag(TIF_NEED_RESCHED) ^ include/linux/sched/thread_info_api_lowlevel.h:64:22: note: expanded from macro 'test_thread_flag' test_ti_thread_flag(current_thread_info(), flag) ^ include/linux/thread_info.h:26:32: note: expanded from macro 'current_thread_info' # define current_thread_info() task_thread_info(current) ^ In file included from arch/s390/kernel/asm-offsets.c:11: In file included from include/linux/kvm_host.h:7: In file included from include/linux/hardirq.h:5: In file included from include/linux/context_tracking_state.h:5: In file included from include/linux/percpu.h:6: In file included from include/linux/smp.h:110: In file included from include/linux/preempt.h:78: arch/s390/include/asm/preempt.h:116:4: warning: incompatible integer to pointer conversion passing 'int' to parameter of type 'struct thread_info *' [-Wint-conversion] tif_need_resched()); ^~~~~~~~~~~~~~~~~~~ include/linux/sched/thread_info_api_lowlevel.h:103:28: note: expanded from macro 'tif_need_resched' #define tif_need_resched() test_thread_flag(TIF_NEED_RESCHED) ^ include/linux/sched/thread_info_api_lowlevel.h:64:22: note: expanded from macro 'test_thread_flag' test_ti_thread_flag(current_thread_info(), flag) ^ include/linux/thread_info.h:26:32: note: expanded from macro 'current_thread_info' # define current_thread_info() task_thread_info(current) ^ include/linux/compiler.h:48:41: note: expanded from macro 'unlikely' # define unlikely(x) (__branch_check__(x, 0, __builtin_constant_p(x))) ~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ include/linux/compiler.h:33:34: note: expanded from macro '__branch_check__' ______r = __builtin_expect(!!(x), expect); \ ^ include/linux/sched/thread_info_api_lowlevel.h:39:59: note: passing argument to parameter 'ti' here static inline int test_ti_thread_flag(struct thread_info *ti, int flag) ^ In file included from arch/s390/kernel/asm-offsets.c:11: In file included from include/linux/kvm_host.h:7: In file included from include/linux/hardirq.h:5: In file included from include/linux/context_tracking_state.h:5: In file included from include/linux/percpu.h:6: In file included from include/linux/smp.h:110: In file included from include/linux/preempt.h:78: arch/s390/include/asm/preempt.h:116:4: warning: incompatible integer to pointer conversion passing 'int' to parameter of type 'struct thread_info *' [-Wint-conversion] tif_need_resched()); ^~~~~~~~~~~~~~~~~~~ include/linux/sched/thread_info_api_lowlevel.h:103:28: note: expanded from macro 'tif_need_resched' #define tif_need_resched() test_thread_flag(TIF_NEED_RESCHED) ^ include/linux/sched/thread_info_api_lowlevel.h:64:22: note: expanded from macro 'test_thread_flag' test_ti_thread_flag(current_thread_info(), flag) ^ include/linux/thread_info.h:26:32: note: expanded from macro 'current_thread_info' # define current_thread_info() task_thread_info(current) ^ include/linux/compiler.h:48:68: note: expanded from macro 'unlikely' # define unlikely(x) (__branch_check__(x, 0, __builtin_constant_p(x))) ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~ include/linux/compiler.h:35:19: note: expanded from macro '__branch_check__' expect, is_constant); \ ^~~~~~~~~~~ include/linux/sched/thread_info_api_lowlevel.h:39:59: note: passing argument to parameter 'ti' here static inline int test_ti_thread_flag(struct thread_info *ti, int flag) ^ In file included from arch/s390/kernel/asm-offsets.c:11: In file included from include/linux/kvm_host.h:7: In file included from include/linux/hardirq.h:9: In file included from include/linux/sched.h:12: include/linux/sched/per_task.h:48:11: fatal error: 'generated/asm-offsets.h' file not found # include <generated/asm-offsets.h> ^~~~~~~~~~~~~~~~~~~~~~~~~ 3 warnings and 3 errors generated. make[2]: *** [scripts/Makefile.build:121: arch/s390/kernel/asm-offsets.s] Error 1 make[2]: Target '__build' not remade because of errors. make[1]: *** [Makefile:1191: prepare0] Error 2 vim +/task_thread_info +110 arch/s390/include/asm/preempt.h c360192bf4a8dc Martin Schwidefsky 2016-10-25 107 c360192bf4a8dc Martin Schwidefsky 2016-10-25 108 static inline bool __preempt_count_dec_and_test(void) c360192bf4a8dc Martin Schwidefsky 2016-10-25 109 { c360192bf4a8dc Martin Schwidefsky 2016-10-25 @110 return !--S390_lowcore.preempt_count && tif_need_resched(); c360192bf4a8dc Martin Schwidefsky 2016-10-25 111 } c360192bf4a8dc Martin Schwidefsky 2016-10-25 112 :::::: The code at line 110 was first introduced by commit :::::: c360192bf4a8dc72f102dd6a4e1bf8bd0b404cfa s390/preempt: move preempt_count to the lowcore :::::: TO: Martin Schwidefsky <schwidefsky@...ibm.com> :::::: CC: Martin Schwidefsky <schwidefsky@...ibm.com> --- 0-DAY CI Kernel Test Service, Intel Corporation https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
Powered by blists - more mailing lists