tree:
https://github.com/weiny2/linux-kernel.git lm-misc
head: 8c385a87dc5cb4d98fa417d3dd9481f3fbe4c625
commit: 8c385a87dc5cb4d98fa417d3dd9481f3fbe4c625 [8/8] arch/kunmap_atomic: Consolidate
duplicate code
reproduce:
# apt-get install sparse
# sparse version: v0.6.1-191-gc51a0382-dirty
git checkout 8c385a87dc5cb4d98fa417d3dd9481f3fbe4c625
make ARCH=x86_64 allmodconfig
make C=1 CF='-fdiagnostic-prefix -D__CHECK_ENDIAN__'
If you fix the issue, kindly add following tag as appropriate
Reported-by: kbuild test robot <lkp(a)intel.com>
sparse warnings: (new ones prefixed by >>)
drivers/gpu/drm/gma500/mmu.c:316:19: sparse: sparse: symbol
'psb_mmu_pt_alloc_map_lock' was not declared. Should it be static?
drivers/gpu/drm/gma500/mmu.c:420:10: sparse: sparse: symbol
'psb_get_default_pd_addr' was not declared. Should it be static?
drivers/gpu/drm/gma500/mmu.c:316:19: sparse: sparse: context imbalance in
'psb_mmu_pt_alloc_map_lock' - wrong count at exit
drivers/gpu/drm/gma500/mmu.c:356:26: sparse: sparse: context imbalance in
'psb_mmu_pt_map_lock' - wrong count at exit
> include/linux/uaccess.h:199:9: sparse: sparse: context imbalance
in 'psb_mmu_pt_unmap_unlock' - unexpected unlock
vim +/psb_mmu_pt_unmap_unlock +199 include/linux/uaccess.h
a866374aecc90c Peter Zijlstra 2006-12-06 192
a866374aecc90c Peter Zijlstra 2006-12-06 193 static inline void
pagefault_enable(void)
a866374aecc90c Peter Zijlstra 2006-12-06 194 {
a866374aecc90c Peter Zijlstra 2006-12-06 195 /*
a866374aecc90c Peter Zijlstra 2006-12-06 196 * make sure to issue those last
loads/stores before enabling
a866374aecc90c Peter Zijlstra 2006-12-06 197 * the pagefault handler again.
a866374aecc90c Peter Zijlstra 2006-12-06 198 */
a866374aecc90c Peter Zijlstra 2006-12-06 @199 barrier();
8bcbde5480f977 David Hildenbrand 2015-05-11 200 pagefault_disabled_dec();
a866374aecc90c Peter Zijlstra 2006-12-06 201 }
a866374aecc90c Peter Zijlstra 2006-12-06 202
:::::: The code at line 199 was first introduced by commit
:::::: a866374aecc90c7d90619727ccd851ac096b2fc7 [PATCH] mm: pagefault_{disable,enable}()
:::::: TO: Peter Zijlstra <a.p.zijlstra(a)chello.nl>
:::::: CC: Linus Torvalds <torvalds(a)woody.osdl.org>
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org