[<prev] [next>] [day] [month] [year] [list]
Message-ID: <201805181035.SCD0kYp5%fengguang.wu@intel.com>
Date: Fri, 18 May 2018 10:56:38 +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/sparc/include/asm/io_64.h:177:20:
note: in expansion of macro 'writel'
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: sparc64-allyesconfig (attached as .config)
compiler: sparc64-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=sparc64
All warnings (new ones prefixed by >>):
In file included from arch/sparc/include/asm/bug.h:25:0,
from include/linux/bug.h:5,
from include/linux/thread_info.h:12,
from include/asm-generic/preempt.h:5,
from ./arch/sparc/include/generated/asm/preempt.h:1,
from include/linux/preempt.h:81,
from include/linux/spinlock.h:51,
from drivers/net/ethernet/ti/davinci_cpdma.c:16:
drivers/net/ethernet/ti/davinci_cpdma.c: In function 'cpdma_desc_pool_destroy':
drivers/net/ethernet/ti/davinci_cpdma.c:194:7: warning: format '%d' expects argument of type 'int', but argument 4 has type 'size_t {aka long unsigned int}' [-Wformat=]
"cpdma_desc_pool size %d != avail %d",
^
gen_pool_size(pool->gen_pool),
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
include/asm-generic/bug.h:92:69: note: in definition of macro '__WARN_printf'
#define __WARN_printf(arg...) warn_slowpath_fmt(__FILE__, __LINE__, arg)
^~~
drivers/net/ethernet/ti/davinci_cpdma.c:193:2: note: in expansion of macro 'WARN'
WARN(gen_pool_size(pool->gen_pool) != gen_pool_avail(pool->gen_pool),
^~~~
drivers/net/ethernet/ti/davinci_cpdma.c:194:7: warning: format '%d' expects argument of type 'int', but argument 5 has type 'size_t {aka long unsigned int}' [-Wformat=]
"cpdma_desc_pool size %d != avail %d",
^
drivers/net/ethernet/ti/davinci_cpdma.c:196:7:
gen_pool_avail(pool->gen_pool));
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
include/asm-generic/bug.h:92:69: note: in definition of macro '__WARN_printf'
#define __WARN_printf(arg...) warn_slowpath_fmt(__FILE__, __LINE__, arg)
^~~
drivers/net/ethernet/ti/davinci_cpdma.c:193:2: note: in expansion of macro 'WARN'
WARN(gen_pool_size(pool->gen_pool) != gen_pool_avail(pool->gen_pool),
^~~~
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/sparc/include/asm/io.h:5:0,
from include/linux/scatterlist.h:9,
from include/linux/dma-mapping.h:11,
from drivers/net/ethernet/ti/davinci_cpdma.c:21:
arch/sparc/include/asm/io_64.h:175:16: note: expected 'u32 {aka unsigned int}' but argument is of type 'void *'
#define writel writel
^
>> arch/sparc/include/asm/io_64.h:177:20: note: in expansion of macro 'writel'
static inline void writel(u32 l, volatile void __iomem *addr)
^~~~~~
drivers/net/ethernet/ti/davinci_cpdma.c: In function '__cpdma_chan_free':
drivers/net/ethernet/ti/davinci_cpdma.c:1126:15: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]
token = (void *)desc_read(desc, sw_token);
^
--
In file included from arch/sparc/include/asm/bug.h:25:0,
from include/linux/bug.h:5,
from include/linux/thread_info.h:12,
from include/asm-generic/preempt.h:5,
from ./arch/sparc/include/generated/asm/preempt.h:1,
from include/linux/preempt.h:81,
from include/linux/spinlock.h:51,
from drivers/net//ethernet/ti/davinci_cpdma.c:16:
drivers/net//ethernet/ti/davinci_cpdma.c: In function 'cpdma_desc_pool_destroy':
drivers/net//ethernet/ti/davinci_cpdma.c:194:7: warning: format '%d' expects argument of type 'int', but argument 4 has type 'size_t {aka long unsigned int}' [-Wformat=]
"cpdma_desc_pool size %d != avail %d",
^
gen_pool_size(pool->gen_pool),
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
include/asm-generic/bug.h:92:69: note: in definition of macro '__WARN_printf'
#define __WARN_printf(arg...) warn_slowpath_fmt(__FILE__, __LINE__, arg)
^~~
drivers/net//ethernet/ti/davinci_cpdma.c:193:2: note: in expansion of macro 'WARN'
WARN(gen_pool_size(pool->gen_pool) != gen_pool_avail(pool->gen_pool),
^~~~
drivers/net//ethernet/ti/davinci_cpdma.c:194:7: warning: format '%d' expects argument of type 'int', but argument 5 has type 'size_t {aka long unsigned int}' [-Wformat=]
"cpdma_desc_pool size %d != avail %d",
^
drivers/net//ethernet/ti/davinci_cpdma.c:196:7:
gen_pool_avail(pool->gen_pool));
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
include/asm-generic/bug.h:92:69: note: in definition of macro '__WARN_printf'
#define __WARN_printf(arg...) warn_slowpath_fmt(__FILE__, __LINE__, arg)
^~~
drivers/net//ethernet/ti/davinci_cpdma.c:193:2: note: in expansion of macro 'WARN'
WARN(gen_pool_size(pool->gen_pool) != gen_pool_avail(pool->gen_pool),
^~~~
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/sparc/include/asm/io.h:5:0,
from include/linux/scatterlist.h:9,
from include/linux/dma-mapping.h:11,
from drivers/net//ethernet/ti/davinci_cpdma.c:21:
arch/sparc/include/asm/io_64.h:175:16: note: expected 'u32 {aka unsigned int}' but argument is of type 'void *'
#define writel writel
^
>> arch/sparc/include/asm/io_64.h:177:20: note: in expansion of macro 'writel'
static inline void writel(u32 l, volatile void __iomem *addr)
^~~~~~
drivers/net//ethernet/ti/davinci_cpdma.c: In function '__cpdma_chan_free':
drivers/net//ethernet/ti/davinci_cpdma.c:1126:15: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]
token = (void *)desc_read(desc, sw_token);
^
vim +/writel +177 arch/sparc/include/asm/io_64.h
f5e706ad include/asm-sparc/io_64.h Sam Ravnborg 2008-07-17 174
79294d7e arch/sparc/include/asm/io_64.h Sam Ravnborg 2014-07-20 @175 #define writel writel
7c3969c3 arch/sparc/include/asm/io_64.h Arnd Bergmann 2014-11-19 176 #define writel_relaxed writel
79294d7e arch/sparc/include/asm/io_64.h Sam Ravnborg 2014-07-20 @177 static inline void writel(u32 l, volatile void __iomem *addr)
f5e706ad include/asm-sparc/io_64.h Sam Ravnborg 2008-07-17 178 {
f5e706ad include/asm-sparc/io_64.h Sam Ravnborg 2008-07-17 179 __asm__ __volatile__("stwa\t%r0, [%1] %2\t/* pci_writel */"
f5e706ad include/asm-sparc/io_64.h Sam Ravnborg 2008-07-17 180 : /* no outputs */
f5e706ad include/asm-sparc/io_64.h Sam Ravnborg 2008-07-17 181 : "Jr" (l), "r" (addr), "i" (ASI_PHYS_BYPASS_EC_E_L)
f5e706ad include/asm-sparc/io_64.h Sam Ravnborg 2008-07-17 182 : "memory");
f5e706ad include/asm-sparc/io_64.h Sam Ravnborg 2008-07-17 183 }
f5e706ad include/asm-sparc/io_64.h Sam Ravnborg 2008-07-17 184
:::::: The code at line 177 was first introduced by commit
:::::: 79294d7eff89f65d2e58021bca81437e88fa61e3 sparc64: remove macro indirection in io_64.h
:::::: TO: Sam Ravnborg <sam@...nborg.org>
:::::: CC: David S. Miller <davem@...emloft.net>
---
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" (53378 bytes)
Powered by blists - more mailing lists