[<prev] [next>] [day] [month] [year] [list]
Message-ID: <202304201736.fc1wH7zC-lkp@intel.com>
Date: Thu, 20 Apr 2023 18:05:31 +0800
From: kernel test robot <lkp@...el.com>
To: Thomas Gleixner <tglx@...utronix.de>
Cc: oe-kbuild-all@...ts.linux.dev, linux-kernel@...r.kernel.org,
x86@...nel.org, Frederic Weisbecker <frederic@...nel.org>
Subject: [tip:timers/core 13/13] kernel/time/posix-cpu-timers.c:1308:66:
warning: parameter 'timr' set but not used
tree: https://git.kernel.org/pub/scm/linux/kernel/git/tip/tip.git timers/core
head: 2aaae4bf41b101f7e58e8b06778b1cd9a1dddf94
commit: 2aaae4bf41b101f7e58e8b06778b1cd9a1dddf94 [13/13] posix-cpu-timers: Implement the missing timer_wait_running callback
config: m68k-allyesconfig (https://download.01.org/0day-ci/archive/20230420/202304201736.fc1wH7zC-lkp@intel.com/config)
compiler: m68k-linux-gcc (GCC) 12.1.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/tip/tip.git/commit/?id=2aaae4bf41b101f7e58e8b06778b1cd9a1dddf94
git remote add tip https://git.kernel.org/pub/scm/linux/kernel/git/tip/tip.git
git fetch --no-tags tip timers/core
git checkout 2aaae4bf41b101f7e58e8b06778b1cd9a1dddf94
# save the config file
mkdir build_dir && cp config build_dir/.config
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-12.1.0 make.cross W=1 O=build_dir ARCH=m68k olddefconfig
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-12.1.0 make.cross W=1 O=build_dir ARCH=m68k SHELL=/bin/bash kernel/
If you fix the issue, kindly add following tag where applicable
| Reported-by: kernel test robot <lkp@...el.com>
| Link: https://lore.kernel.org/oe-kbuild-all/202304201736.fc1wH7zC-lkp@intel.com/
All warnings (new ones prefixed by >>):
kernel/time/posix-cpu-timers.c: In function 'posix_cpu_timer_wait_running_nsleep':
kernel/time/posix-cpu-timers.c:1310:30: error: 'timr' is a pointer; did you mean to use '->'?
1310 | spin_unlock_irq(&timr.it_lock);
| ^
| ->
kernel/time/posix-cpu-timers.c:1312:28: error: 'timr' is a pointer; did you mean to use '->'?
1312 | spin_lock_irq(&timr.it_lock);
| ^
| ->
>> kernel/time/posix-cpu-timers.c:1308:66: warning: parameter 'timr' set but not used [-Wunused-but-set-parameter]
1308 | static void posix_cpu_timer_wait_running_nsleep(struct k_itimer *timr)
| ~~~~~~~~~~~~~~~~~^~~~
vim +/timr +1308 kernel/time/posix-cpu-timers.c
1307
> 1308 static void posix_cpu_timer_wait_running_nsleep(struct k_itimer *timr)
1309 {
1310 spin_unlock_irq(&timr.it_lock);
1311 cpu_relax();
1312 spin_lock_irq(&timr.it_lock);
1313 }
1314
--
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests
Powered by blists - more mailing lists