tree:
https://git.kernel.org/pub/scm/linux/kernel/git/frederic/linux-dynticks.git
timers/urgent-v2
head: 9cc6f1cc0e96053d709dd05b64ba5796a5b13664
commit: 11dfbcfa6f6a68fe394f3eeecb9c4b6dad855777 [2/7] posix-cpu-timers: Assert task
sighand is locked while starting cputime counter
config: m68k-randconfig-s031-20210622 (attached as .config)
compiler: m68k-linux-gcc (GCC) 9.3.0
reproduce:
wget
https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O
~/bin/make.cross
chmod +x ~/bin/make.cross
# apt-get install sparse
# sparse version: v0.6.3-341-g8af24329-dirty
#
https://git.kernel.org/pub/scm/linux/kernel/git/frederic/linux-dynticks.g...
git remote add dynticks
https://git.kernel.org/pub/scm/linux/kernel/git/frederic/linux-dynticks.git
git fetch --no-tags dynticks timers/urgent-v2
git checkout 11dfbcfa6f6a68fe394f3eeecb9c4b6dad855777
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-9.3.0 make.cross C=1
CF='-fdiagnostic-prefix -D__CHECK_ENDIAN__' W=1 ARCH=m68k
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp(a)intel.com>
All errors (new ones prefixed by >>):
> kernel/signal.c:1443:6: error: redefinition of
'lockdep_assert_task_sighand_held'
1443 | void
lockdep_assert_task_sighand_held(struct task_struct *task)
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
In file included from include/linux/sched/cputime.h:5,
from kernel/signal.c:22:
include/linux/sched/signal.h:715:20: note: previous definition of
'lockdep_assert_task_sighand_held' was here
715 | static inline void lockdep_assert_task_sighand_held(struct task_struct *task) {
}
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
vim +/lockdep_assert_task_sighand_held +1443 kernel/signal.c
1442
1443 void lockdep_assert_task_sighand_held(struct task_struct *task)
1444 {
1445 struct sighand_struct *sighand;
1446
1447 rcu_read_lock();
1448 sighand = rcu_dereference(task->sighand);
1449 if (sighand)
1450 lockdep_assert_held(&sighand->siglock);
1451 else
1452 WARN_ON_ONCE(1);
1453 rcu_read_unlock();
1454 }
1455
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org