Netdev List
 help / color / mirror / Atom feed
From: kbuild test robot <lkp@intel.com>
To: Florian Fainelli <f.fainelli@gmail.com>
Cc: kbuild-all@01.org, netdev@vger.kernel.org
Subject: [net-next:master 1230/1233] arch/sparc/include/asm/io_64.h:177:20: note: in expansion of macro 'writel'
Date: Fri, 18 May 2018 10:56:38 +0800	[thread overview]
Message-ID: <201805181035.SCD0kYp5%fengguang.wu@intel.com> (raw)

[-- Attachment #1: Type: text/plain, Size: 8651 bytes --]

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@ravnborg.org>
:::::: CC: David S. Miller <davem@davemloft.net>

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

[-- Attachment #2: .config.gz --]
[-- Type: application/gzip, Size: 53378 bytes --]

                 reply	other threads:[~2018-05-18  2:57 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=201805181035.SCD0kYp5%fengguang.wu@intel.com \
    --to=lkp@intel.com \
    --cc=f.fainelli@gmail.com \
    --cc=kbuild-all@01.org \
    --cc=netdev@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox