lkml.org 
[lkml]   [2022]   [Mar]   [17]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
Subject[mingo-tip:master 558/2335] 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 master
head: 85293bf3fca6d85608cff1447ce3097583f15fab
commit: fc65f6666073b489472bc5f3625d1f90d3dde51f [558/2335] headers/deps: Move task->thread_info to per_task()
config: s390-randconfig-r032-20220317 (https://download.01.org/0day-ci/archive/20220317/202203171524.ipsveLi5-lkp@intel.com/config)
compiler: clang version 15.0.0 (https://github.com/llvm/llvm-project a6ec1e3d798f8eab43fb3a91028c6ab04e115fcb)
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=fc65f6666073b489472bc5f3625d1f90d3dde51f
git remote add mingo-tip git://git.kernel.org/pub/scm/linux/kernel/git/mingo/tip.git
git fetch --no-tags mingo-tip master
git checkout fc65f6666073b489472bc5f3625d1f90d3dde51f
# 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@intel.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:78:42: note: expanded from macro 'unlikely'
# define unlikely(x) __builtin_expect(!!(x), 0)
^
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>
^~~~~~~~~~~~~~~~~~~~~~~~~
2 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
make[1]: Target 'prepare' not remade because of errors.
make: *** [Makefile:219: __sub-make] Error 2
make: Target 'prepare' not remade because of errors.


vim +/task_thread_info +110 arch/s390/include/asm/preempt.h

c360192bf4a8dc7 Martin Schwidefsky 2016-10-25 107
c360192bf4a8dc7 Martin Schwidefsky 2016-10-25 108 static inline bool __preempt_count_dec_and_test(void)
c360192bf4a8dc7 Martin Schwidefsky 2016-10-25 109 {
c360192bf4a8dc7 Martin Schwidefsky 2016-10-25 @110 return !--S390_lowcore.preempt_count && tif_need_resched();
c360192bf4a8dc7 Martin Schwidefsky 2016-10-25 111 }
c360192bf4a8dc7 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@de.ibm.com>
:::::: CC: Martin Schwidefsky <schwidefsky@de.ibm.com>

---
0-DAY CI Kernel Test Service
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org

\
 
 \ /
  Last update: 2022-03-17 08:12    [W:0.140 / U:0.424 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site