tree:
https://git.kernel.org/pub/scm/linux/kernel/git/peterz/queue.git sched/urgent
head: 0602ec6c74e25dcb8a43961b00eef168fafb8e5e
commit: 2726fde5f3900552fcae2d2ac07a05ffba11a491 [6/7] irq_work: Cleanup
:::::: branch date: 5 hours ago
:::::: commit date: 5 hours ago
config: powerpc-randconfig-s032-20200615 (attached as .config)
compiler: powerpc-linux-gcc (GCC) 9.3.0
reproduce:
# apt-get install sparse
# sparse version: v0.6.2-rc1-3-g55607964-dirty
git checkout 2726fde5f3900552fcae2d2ac07a05ffba11a491
# save the attached .config to linux build tree
make W=1 C=1 ARCH=powerpc CF='-fdiagnostic-prefix -D__CHECK_ENDIAN__'
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp(a)intel.com>
sparse warnings: (new ones prefixed by >>)
arch/powerpc/kernel/time.c:134:1: sparse: sparse: symbol 'rtc_lock' was not
declared. Should it be static?
arch/powerpc/kernel/time.c:527:1: sparse: sparse: symbol 'irq_work_pending'
redeclared with different type (different base types):
> arch/powerpc/kernel/time.c:527:1: sparse: unsigned char static
[addressable] [noderef] [toplevel] [usertype] <asn:3> irq_work_pending
> include/linux/irq_work.h:39:20: sparse: note: previously declared as:
> include/linux/irq_work.h:39:20: sparse: bool static inline [gnu_inline] [toplevel]
[unsigned] irq_work_pending( ... )
#
https://git.kernel.org/pub/scm/linux/kernel/git/peterz/queue.git/commit/?...
git remote add peterz-queue
https://git.kernel.org/pub/scm/linux/kernel/git/peterz/queue.git
git remote update peterz-queue
git checkout 2726fde5f3900552fcae2d2ac07a05ffba11a491
vim +39 include/linux/irq_work.h
e360adbe29241a0 Peter Zijlstra 2010-10-14 38
2726fde5f390055 Peter Zijlstra 2020-06-15 @39 static inline bool
irq_work_pending(struct irq_work *work)
2726fde5f390055 Peter Zijlstra 2020-06-15 40 {
2726fde5f390055 Peter Zijlstra 2020-06-15 41 return
atomic_read(&work->node.a_flags) & IRQ_WORK_PENDING;
153bedbac2ebd47 Frederic Weisbecker 2019-11-08 42 }
153bedbac2ebd47 Frederic Weisbecker 2019-11-08 43
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org