tree:   https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git 
master
head:   435faf5c218a47fd6258187f62d9bb1009717896
commit: 6863f5643dd717376c2fdc85a47a00f9d738a834 kbuild: allow Clang to find 
unused static inline functions for W=1 build
date:   9 months ago
config: m68k-randconfig-s031-20200605 (attached as .config)
compiler: m68k-linux-gcc (GCC) 9.3.0
reproduce:
        # apt-get install sparse
        # sparse version: v0.6.1-246-g41f651b4-dirty
        git checkout 6863f5643dd717376c2fdc85a47a00f9d738a834
        # save the attached .config to linux build tree
        make W=1 C=1 ARCH=m68k CF='-fdiagnostic-prefix -D__CHECK_ENDIAN__'

If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <[email protected]>


sparse warnings: (new ones prefixed by >>)

   drivers/misc/habanalabs/debugfs.c:460:16: sparse: sparse: multiple 
definitions for function 'mmu_write'
   arch/m68k/include/asm/mcfmmu.h:102:20: sparse:  the previous one is here
   drivers/misc/habanalabs/debugfs.c:460:16: sparse: sparse: symbol 'mmu_write' 
redeclared with different type (incompatible argument 1 (different base types)):
   drivers/misc/habanalabs/debugfs.c:460:16: sparse:    int static [signed] 
[toplevel] mmu_write( ... )
   arch/m68k/include/asm/mcfmmu.h:102:20: sparse: note: previously declared as:
>> arch/m68k/include/asm/mcfmmu.h:102:20: sparse:    void static inline 
>> [gnu_inline] [toplevel] mmu_write( ... )

vim +102 arch/m68k/include/asm/mcfmmu.h

8cee26f82a0c83 Greg Ungerer 2011-10-14  101  
8cee26f82a0c83 Greg Ungerer 2011-10-14 @102  static inline void mmu_write(u32 
a, u32 v)
8cee26f82a0c83 Greg Ungerer 2011-10-14  103  {
8cee26f82a0c83 Greg Ungerer 2011-10-14  104     *((volatile u32 *) a) = v;
8cee26f82a0c83 Greg Ungerer 2011-10-14  105     __asm__ __volatile__ ("nop");
8cee26f82a0c83 Greg Ungerer 2011-10-14  106  }
8cee26f82a0c83 Greg Ungerer 2011-10-14  107  

:::::: The code at line 102 was first introduced by commit
:::::: 8cee26f82a0c830740db0267f828045cc39b90b9 m68k: definitions for the 
ColdFire V4e MMU hardware

:::::: TO: Greg Ungerer <[email protected]>
:::::: CC: Greg Ungerer <[email protected]>

---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/[email protected]

Attachment: .config.gz
Description: application/gzip

Reply via email to