lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite for Android: free password hash cracker in your pocket
[<prev] [next>] [day] [month] [year] [list]
Message-ID: <201805180726.a7T7l73c%fengguang.wu@intel.com>
Date:   Fri, 18 May 2018 07:54:33 +0800
From:   kbuild test robot <lkp@...el.com>
To:     Florian Fainelli <f.fainelli@...il.com>
Cc:     kbuild-all@...org, netdev@...r.kernel.org
Subject: [net-next:master 1230/1233] arch/mips/include/asm/io.h:422:1: note:
 in expansion of macro '__BUILD_MEMORY_SINGLE'

tree:   https://git.kernel.org/pub/scm/linux/kernel/git/davem/net-next.git master
head:   538e2de104cfb4ef1acb35af42427bff42adbe4d
commit: 2652113ff043ca2ce1cb3be529b5ca9270c421d4 [1230/1233] net: ethernet: ti: Allow most drivers with COMPILE_TEST
config: mips-allyesconfig (attached as .config)
compiler: mips-linux-gnu-gcc (Debian 7.2.0-11) 7.2.0
reproduce:
        wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross
        chmod +x ~/bin/make.cross
        git checkout 2652113ff043ca2ce1cb3be529b5ca9270c421d4
        # save the attached .config to linux build tree
        make.cross ARCH=mips 

All warnings (new ones prefixed by >>):

   drivers/net//ethernet/ti/davinci_cpdma.c: In function 'cpdma_chan_submit':
   drivers/net//ethernet/ti/davinci_cpdma.c:1083:17: warning: passing argument 1 of 'writel' makes integer from pointer without a cast [-Wint-conversion]
     writel_relaxed(token, &desc->sw_token);
                    ^~~~~
   In file included from arch/mips/include/asm/page.h:194:0,
                    from include/linux/mmzone.h:21,
                    from include/linux/gfp.h:6,
                    from include/linux/idr.h:16,
                    from include/linux/kernfs.h:14,
                    from include/linux/sysfs.h:16,
                    from include/linux/kobject.h:20,
                    from include/linux/device.h:16,
                    from drivers/net//ethernet/ti/davinci_cpdma.c:17:
   arch/mips/include/asm/io.h:315:25: note: expected 'u32 {aka unsigned int}' but argument is of type 'void *'
    static inline void pfx##write##bwlq(type val,    \
                            ^
>> arch/mips/include/asm/io.h:422:1: note: in expansion of macro '__BUILD_MEMORY_SINGLE'
    __BUILD_MEMORY_SINGLE(bus, bwlq, type, 1)
    ^~~~~~~~~~~~~~~~~~~~~
>> arch/mips/include/asm/io.h:427:1: note: in expansion of macro '__BUILD_MEMORY_PFX'
    __BUILD_MEMORY_PFX(, bwlq, type)     \
    ^~~~~~~~~~~~~~~~~~
>> arch/mips/include/asm/io.h:432:1: note: in expansion of macro 'BUILDIO_MEM'
    BUILDIO_MEM(l, u32)
    ^~~~~~~~~~~
--
   drivers/net/ethernet/ti/davinci_cpdma.c: In function 'cpdma_chan_submit':
   drivers/net/ethernet/ti/davinci_cpdma.c:1083:17: warning: passing argument 1 of 'writel' makes integer from pointer without a cast [-Wint-conversion]
     writel_relaxed(token, &desc->sw_token);
                    ^~~~~
   In file included from arch/mips/include/asm/page.h:194:0,
                    from include/linux/mmzone.h:21,
                    from include/linux/gfp.h:6,
                    from include/linux/idr.h:16,
                    from include/linux/kernfs.h:14,
                    from include/linux/sysfs.h:16,
                    from include/linux/kobject.h:20,
                    from include/linux/device.h:16,
                    from drivers/net/ethernet/ti/davinci_cpdma.c:17:
   arch/mips/include/asm/io.h:315:25: note: expected 'u32 {aka unsigned int}' but argument is of type 'void *'
    static inline void pfx##write##bwlq(type val,    \
                            ^
>> arch/mips/include/asm/io.h:422:1: note: in expansion of macro '__BUILD_MEMORY_SINGLE'
    __BUILD_MEMORY_SINGLE(bus, bwlq, type, 1)
    ^~~~~~~~~~~~~~~~~~~~~
>> arch/mips/include/asm/io.h:427:1: note: in expansion of macro '__BUILD_MEMORY_PFX'
    __BUILD_MEMORY_PFX(, bwlq, type)     \
    ^~~~~~~~~~~~~~~~~~
>> arch/mips/include/asm/io.h:432:1: note: in expansion of macro 'BUILDIO_MEM'
    BUILDIO_MEM(l, u32)
    ^~~~~~~~~~~

vim +/__BUILD_MEMORY_SINGLE +422 arch/mips/include/asm/io.h

8faca49a6 arch/mips/include/asm/io.h David Daney       2008-12-11  312  
^1da177e4 include/asm-mips/io.h      Linus Torvalds    2005-04-16  313  #define __BUILD_MEMORY_SINGLE(pfx, bwlq, type, irq)			\
^1da177e4 include/asm-mips/io.h      Linus Torvalds    2005-04-16  314  									\
^1da177e4 include/asm-mips/io.h      Linus Torvalds    2005-04-16 @315  static inline void pfx##write##bwlq(type val,				\
^1da177e4 include/asm-mips/io.h      Linus Torvalds    2005-04-16  316  				    volatile void __iomem *mem)		\
^1da177e4 include/asm-mips/io.h      Linus Torvalds    2005-04-16  317  {									\
^1da177e4 include/asm-mips/io.h      Linus Torvalds    2005-04-16  318  	volatile type *__mem;						\
^1da177e4 include/asm-mips/io.h      Linus Torvalds    2005-04-16  319  	type __val;							\
^1da177e4 include/asm-mips/io.h      Linus Torvalds    2005-04-16  320  									\
1e820da3c arch/mips/include/asm/io.h Huacai Chen       2016-03-03  321  	war_io_reorder_wmb();					\
8faca49a6 arch/mips/include/asm/io.h David Daney       2008-12-11  322  									\
^1da177e4 include/asm-mips/io.h      Linus Torvalds    2005-04-16  323  	__mem = (void *)__swizzle_addr_##bwlq((unsigned long)(mem));	\
^1da177e4 include/asm-mips/io.h      Linus Torvalds    2005-04-16  324  									\
a8433137e include/asm-mips/io.h      Atsushi Nemoto    2006-02-17  325  	__val = pfx##ioswab##bwlq(__mem, val);				\
^1da177e4 include/asm-mips/io.h      Linus Torvalds    2005-04-16  326  									\
^1da177e4 include/asm-mips/io.h      Linus Torvalds    2005-04-16  327  	if (sizeof(type) != sizeof(u64) || sizeof(u64) == sizeof(long)) \
^1da177e4 include/asm-mips/io.h      Linus Torvalds    2005-04-16  328  		*__mem = __val;						\
^1da177e4 include/asm-mips/io.h      Linus Torvalds    2005-04-16  329  	else if (cpu_has_64bits) {					\
^1da177e4 include/asm-mips/io.h      Linus Torvalds    2005-04-16  330  		unsigned long __flags;					\
^1da177e4 include/asm-mips/io.h      Linus Torvalds    2005-04-16  331  		type __tmp;						\
^1da177e4 include/asm-mips/io.h      Linus Torvalds    2005-04-16  332  									\
^1da177e4 include/asm-mips/io.h      Linus Torvalds    2005-04-16  333  		if (irq)						\
^1da177e4 include/asm-mips/io.h      Linus Torvalds    2005-04-16  334  			local_irq_save(__flags);			\
^1da177e4 include/asm-mips/io.h      Linus Torvalds    2005-04-16  335  		__asm__ __volatile__(					\
a809d4606 arch/mips/include/asm/io.h Ralf Baechle      2014-03-30  336  			".set	arch=r4000"	"\t\t# __writeq""\n\t"	\
^1da177e4 include/asm-mips/io.h      Linus Torvalds    2005-04-16  337  			"dsll32 %L0, %L0, 0"			"\n\t"	\
^1da177e4 include/asm-mips/io.h      Linus Torvalds    2005-04-16  338  			"dsrl32 %L0, %L0, 0"			"\n\t"	\
^1da177e4 include/asm-mips/io.h      Linus Torvalds    2005-04-16  339  			"dsll32 %M0, %M0, 0"			"\n\t"	\
^1da177e4 include/asm-mips/io.h      Linus Torvalds    2005-04-16  340  			"or	%L0, %L0, %M0"			"\n\t"	\
^1da177e4 include/asm-mips/io.h      Linus Torvalds    2005-04-16  341  			"sd	%L0, %2"			"\n\t"	\
^1da177e4 include/asm-mips/io.h      Linus Torvalds    2005-04-16  342  			".set	mips0"				"\n"	\
^1da177e4 include/asm-mips/io.h      Linus Torvalds    2005-04-16  343  			: "=r" (__tmp)					\
b77bb37a2 arch/mips/include/asm/io.h Ralf Baechle      2011-06-30  344  			: "0" (__val), "m" (*__mem));			\
^1da177e4 include/asm-mips/io.h      Linus Torvalds    2005-04-16  345  		if (irq)						\
^1da177e4 include/asm-mips/io.h      Linus Torvalds    2005-04-16  346  			local_irq_restore(__flags);			\
^1da177e4 include/asm-mips/io.h      Linus Torvalds    2005-04-16  347  	} else								\
^1da177e4 include/asm-mips/io.h      Linus Torvalds    2005-04-16  348  		BUG();							\
^1da177e4 include/asm-mips/io.h      Linus Torvalds    2005-04-16  349  }									\
^1da177e4 include/asm-mips/io.h      Linus Torvalds    2005-04-16  350  									\
b887d3f2c include/asm-mips/io.h      Atsushi Nemoto    2006-02-09  351  static inline type pfx##read##bwlq(const volatile void __iomem *mem)	\
^1da177e4 include/asm-mips/io.h      Linus Torvalds    2005-04-16  352  {									\
^1da177e4 include/asm-mips/io.h      Linus Torvalds    2005-04-16  353  	volatile type *__mem;						\
^1da177e4 include/asm-mips/io.h      Linus Torvalds    2005-04-16  354  	type __val;							\
^1da177e4 include/asm-mips/io.h      Linus Torvalds    2005-04-16  355  									\
^1da177e4 include/asm-mips/io.h      Linus Torvalds    2005-04-16  356  	__mem = (void *)__swizzle_addr_##bwlq((unsigned long)(mem));	\
^1da177e4 include/asm-mips/io.h      Linus Torvalds    2005-04-16  357  									\
^1da177e4 include/asm-mips/io.h      Linus Torvalds    2005-04-16  358  	if (sizeof(type) != sizeof(u64) || sizeof(u64) == sizeof(long)) \
^1da177e4 include/asm-mips/io.h      Linus Torvalds    2005-04-16  359  		__val = *__mem;						\
^1da177e4 include/asm-mips/io.h      Linus Torvalds    2005-04-16  360  	else if (cpu_has_64bits) {					\
^1da177e4 include/asm-mips/io.h      Linus Torvalds    2005-04-16  361  		unsigned long __flags;					\
^1da177e4 include/asm-mips/io.h      Linus Torvalds    2005-04-16  362  									\
049b13c35 include/asm-mips/io.h      Thiemo Seufer     2005-02-21  363  		if (irq)						\
^1da177e4 include/asm-mips/io.h      Linus Torvalds    2005-04-16  364  			local_irq_save(__flags);			\
^1da177e4 include/asm-mips/io.h      Linus Torvalds    2005-04-16  365  		__asm__ __volatile__(					\
a809d4606 arch/mips/include/asm/io.h Ralf Baechle      2014-03-30  366  			".set	arch=r4000"	"\t\t# __readq" "\n\t"	\
^1da177e4 include/asm-mips/io.h      Linus Torvalds    2005-04-16  367  			"ld	%L0, %1"			"\n\t"	\
^1da177e4 include/asm-mips/io.h      Linus Torvalds    2005-04-16  368  			"dsra32 %M0, %L0, 0"			"\n\t"	\
^1da177e4 include/asm-mips/io.h      Linus Torvalds    2005-04-16  369  			"sll	%L0, %L0, 0"			"\n\t"	\
^1da177e4 include/asm-mips/io.h      Linus Torvalds    2005-04-16  370  			".set	mips0"				"\n"	\
^1da177e4 include/asm-mips/io.h      Linus Torvalds    2005-04-16  371  			: "=r" (__val)					\
b77bb37a2 arch/mips/include/asm/io.h Ralf Baechle      2011-06-30  372  			: "m" (*__mem));				\
049b13c35 include/asm-mips/io.h      Thiemo Seufer     2005-02-21  373  		if (irq)						\
^1da177e4 include/asm-mips/io.h      Linus Torvalds    2005-04-16  374  			local_irq_restore(__flags);			\
^1da177e4 include/asm-mips/io.h      Linus Torvalds    2005-04-16  375  	} else {							\
^1da177e4 include/asm-mips/io.h      Linus Torvalds    2005-04-16  376  		__val = 0;						\
^1da177e4 include/asm-mips/io.h      Linus Torvalds    2005-04-16  377  		BUG();							\
^1da177e4 include/asm-mips/io.h      Linus Torvalds    2005-04-16  378  	}								\
^1da177e4 include/asm-mips/io.h      Linus Torvalds    2005-04-16  379  									\
a1cc7034e arch/mips/include/asm/io.h Sinan Kaya        2018-04-12  380  	/* prevent prefetching of coherent DMA data prematurely */	\
a1cc7034e arch/mips/include/asm/io.h Sinan Kaya        2018-04-12  381  	rmb();								\
a8433137e include/asm-mips/io.h      Atsushi Nemoto    2006-02-17  382  	return pfx##ioswab##bwlq(__mem, __val);				\
^1da177e4 include/asm-mips/io.h      Linus Torvalds    2005-04-16  383  }
^1da177e4 include/asm-mips/io.h      Linus Torvalds    2005-04-16  384  
^1da177e4 include/asm-mips/io.h      Linus Torvalds    2005-04-16  385  #define __BUILD_IOPORT_SINGLE(pfx, bwlq, type, p, slow)			\
^1da177e4 include/asm-mips/io.h      Linus Torvalds    2005-04-16  386  									\
^1da177e4 include/asm-mips/io.h      Linus Torvalds    2005-04-16  387  static inline void pfx##out##bwlq##p(type val, unsigned long port)	\
^1da177e4 include/asm-mips/io.h      Linus Torvalds    2005-04-16  388  {									\
^1da177e4 include/asm-mips/io.h      Linus Torvalds    2005-04-16  389  	volatile type *__addr;						\
^1da177e4 include/asm-mips/io.h      Linus Torvalds    2005-04-16  390  	type __val;							\
^1da177e4 include/asm-mips/io.h      Linus Torvalds    2005-04-16  391  									\
1e820da3c arch/mips/include/asm/io.h Huacai Chen       2016-03-03  392  	war_io_reorder_wmb();					\
8faca49a6 arch/mips/include/asm/io.h David Daney       2008-12-11  393  									\
a8433137e include/asm-mips/io.h      Atsushi Nemoto    2006-02-17  394  	__addr = (void *)__swizzle_addr_##bwlq(mips_io_port_base + port); \
^1da177e4 include/asm-mips/io.h      Linus Torvalds    2005-04-16  395  									\
a8433137e include/asm-mips/io.h      Atsushi Nemoto    2006-02-17  396  	__val = pfx##ioswab##bwlq(__addr, val);				\
^1da177e4 include/asm-mips/io.h      Linus Torvalds    2005-04-16  397  									\
9d58f302c include/asm-mips/io.h      Ralf Baechle      2005-09-23  398  	/* Really, we want this to be atomic */				\
9d58f302c include/asm-mips/io.h      Ralf Baechle      2005-09-23  399  	BUILD_BUG_ON(sizeof(type) > sizeof(unsigned long));		\
9d58f302c include/asm-mips/io.h      Ralf Baechle      2005-09-23  400  									\
^1da177e4 include/asm-mips/io.h      Linus Torvalds    2005-04-16  401  	*__addr = __val;						\
^1da177e4 include/asm-mips/io.h      Linus Torvalds    2005-04-16  402  	slow;								\
^1da177e4 include/asm-mips/io.h      Linus Torvalds    2005-04-16  403  }									\
^1da177e4 include/asm-mips/io.h      Linus Torvalds    2005-04-16  404  									\
^1da177e4 include/asm-mips/io.h      Linus Torvalds    2005-04-16  405  static inline type pfx##in##bwlq##p(unsigned long port)			\
^1da177e4 include/asm-mips/io.h      Linus Torvalds    2005-04-16  406  {									\
^1da177e4 include/asm-mips/io.h      Linus Torvalds    2005-04-16  407  	volatile type *__addr;						\
^1da177e4 include/asm-mips/io.h      Linus Torvalds    2005-04-16  408  	type __val;							\
^1da177e4 include/asm-mips/io.h      Linus Torvalds    2005-04-16  409  									\
a8433137e include/asm-mips/io.h      Atsushi Nemoto    2006-02-17  410  	__addr = (void *)__swizzle_addr_##bwlq(mips_io_port_base + port); \
^1da177e4 include/asm-mips/io.h      Linus Torvalds    2005-04-16  411  									\
9d58f302c include/asm-mips/io.h      Ralf Baechle      2005-09-23  412  	BUILD_BUG_ON(sizeof(type) > sizeof(unsigned long));		\
9d58f302c include/asm-mips/io.h      Ralf Baechle      2005-09-23  413  									\
^1da177e4 include/asm-mips/io.h      Linus Torvalds    2005-04-16  414  	__val = *__addr;						\
^1da177e4 include/asm-mips/io.h      Linus Torvalds    2005-04-16  415  	slow;								\
^1da177e4 include/asm-mips/io.h      Linus Torvalds    2005-04-16  416  									\
a8433137e include/asm-mips/io.h      Atsushi Nemoto    2006-02-17  417  	return pfx##ioswab##bwlq(__addr, __val);			\
^1da177e4 include/asm-mips/io.h      Linus Torvalds    2005-04-16  418  }
^1da177e4 include/asm-mips/io.h      Linus Torvalds    2005-04-16  419  
^1da177e4 include/asm-mips/io.h      Linus Torvalds    2005-04-16  420  #define __BUILD_MEMORY_PFX(bus, bwlq, type)				\
^1da177e4 include/asm-mips/io.h      Linus Torvalds    2005-04-16  421  									\
^1da177e4 include/asm-mips/io.h      Linus Torvalds    2005-04-16 @422  __BUILD_MEMORY_SINGLE(bus, bwlq, type, 1)
^1da177e4 include/asm-mips/io.h      Linus Torvalds    2005-04-16  423  
9d58f302c include/asm-mips/io.h      Ralf Baechle      2005-09-23  424  #define BUILDIO_MEM(bwlq, type)						\
^1da177e4 include/asm-mips/io.h      Linus Torvalds    2005-04-16  425  									\
^1da177e4 include/asm-mips/io.h      Linus Torvalds    2005-04-16  426  __BUILD_MEMORY_PFX(__raw_, bwlq, type)					\
4912ba72d include/asm-mips/io.h      Maciej W. Rozycki 2005-02-22 @427  __BUILD_MEMORY_PFX(, bwlq, type)					\
290f10ae4 include/asm-mips/io.h      Al Viro           2005-12-07  428  __BUILD_MEMORY_PFX(__mem_, bwlq, type)					\
9d58f302c include/asm-mips/io.h      Ralf Baechle      2005-09-23  429  
9d58f302c include/asm-mips/io.h      Ralf Baechle      2005-09-23  430  BUILDIO_MEM(b, u8)
9d58f302c include/asm-mips/io.h      Ralf Baechle      2005-09-23  431  BUILDIO_MEM(w, u16)
9d58f302c include/asm-mips/io.h      Ralf Baechle      2005-09-23 @432  BUILDIO_MEM(l, u32)
9d58f302c include/asm-mips/io.h      Ralf Baechle      2005-09-23  433  BUILDIO_MEM(q, u64)
9d58f302c include/asm-mips/io.h      Ralf Baechle      2005-09-23  434  

:::::: The code at line 422 was first introduced by commit
:::::: 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 Linux-2.6.12-rc2

:::::: TO: Linus Torvalds <torvalds@...970.osdl.org>
:::::: CC: Linus Torvalds <torvalds@...970.osdl.org>

---
0-DAY kernel test infrastructure                Open Source Technology Center
https://lists.01.org/pipermail/kbuild-all                   Intel Corporation

Download attachment ".config.gz" of type "application/gzip" (55353 bytes)

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ