lkml.org 
[lkml]   [2022]   [Jun]   [5]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
Subject[peterz-queue:sched/idle 27/33] include/linux/sched/idle.h:28:9: error: implicit declaration of function 'arch_set_bit'; did you mean 'arch_test_bit'?
tree:   https://git.kernel.org/pub/scm/linux/kernel/git/peterz/queue.git sched/idle
head: 5aca393851ce7ebb9a3405bb4ffd4f38d96949e4
commit: bb0533e97a1f03b96874efacec607cffb5fa7a3a [27/33] cpuidle,sched: Remove annotations from TIF_{POLLING_NRFLAG,NEED_RESCHED}
config: sh-buildonly-randconfig-r006-20220605 (https://download.01.org/0day-ci/archive/20220605/202206052314.vgAUvUv3-lkp@intel.com/config)
compiler: sh4-linux-gcc (GCC) 11.3.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/peterz/queue.git/commit/?id=bb0533e97a1f03b96874efacec607cffb5fa7a3a
git remote add peterz-queue https://git.kernel.org/pub/scm/linux/kernel/git/peterz/queue.git
git fetch --no-tags peterz-queue sched/idle
git checkout bb0533e97a1f03b96874efacec607cffb5fa7a3a
# save the config file
mkdir build_dir && cp config build_dir/.config
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-11.3.0 make.cross W=1 O=build_dir ARCH=sh prepare

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

All errors (new ones prefixed by >>):

In file included from include/linux/sched/topology.h:7,
from include/linux/energy_model.h:10,
from include/linux/device.h:16,
from include/linux/blk_types.h:11,
from include/linux/writeback.h:13,
from include/linux/memcontrol.h:22,
from include/linux/swap.h:9,
from include/linux/suspend.h:5,
from arch/sh/kernel/asm-offsets.c:16:
include/linux/sched/idle.h: In function '__current_set_polling':
>> include/linux/sched/idle.h:28:9: error: implicit declaration of function 'arch_set_bit'; did you mean 'arch_test_bit'? [-Werror=implicit-function-declaration]
28 | arch_set_bit(TIF_POLLING_NRFLAG,
| ^~~~~~~~~~~~
| arch_test_bit
include/linux/sched/idle.h: In function '__current_clr_polling':
>> include/linux/sched/idle.h:47:9: error: implicit declaration of function 'arch_clear_bit'; did you mean 'arch___clear_bit'? [-Werror=implicit-function-declaration]
47 | arch_clear_bit(TIF_POLLING_NRFLAG,
| ^~~~~~~~~~~~~~
| arch___clear_bit
cc1: some warnings being treated as errors
make[2]: *** [scripts/Makefile.build:121: arch/sh/kernel/asm-offsets.s] Error 1
make[2]: Target '__build' not remade because of errors.
make[1]: *** [Makefile:1196: 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 +28 include/linux/sched/idle.h

25
26 static __always_inline void __current_set_polling(void)
27 {
> 28 arch_set_bit(TIF_POLLING_NRFLAG,
29 (unsigned long *)(&current_thread_info()->flags));
30 }
31
32 static __always_inline bool __must_check current_set_polling_and_test(void)
33 {
34 __current_set_polling();
35
36 /*
37 * Polling state must be visible before we test NEED_RESCHED,
38 * paired by resched_curr()
39 */
40 smp_mb__after_atomic();
41
42 return unlikely(tif_need_resched());
43 }
44
45 static __always_inline void __current_clr_polling(void)
46 {
> 47 arch_clear_bit(TIF_POLLING_NRFLAG,
48 (unsigned long *)(&current_thread_info()->flags));
49 }
50

--
0-DAY CI Kernel Test Service
https://01.org/lkp

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