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: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Date:   Thu, 17 Nov 2016 03:04:57 +0800
From:   kbuild test robot <lkp@...el.com>
To:     Florian Fainelli <f.fainelli@...il.com>
Cc:     kbuild-all@...org, netdev@...r.kernel.org, davem@...emloft.net,
        mw@...ihalf.com, arnd@...db.de, gregory.clement@...e-electrons.com,
        Shaohui.Xie@...escale.com, Florian Fainelli <f.fainelli@...il.com>
Subject: Re: [PATCH net-next v3 3/3] net: marvell: Allow drivers to be built
 with COMPILE_TEST

Hi Florian,

[auto build test WARNING on net-next/master]

url:    https://github.com/0day-ci/linux/commits/Florian-Fainelli/net-gianfar_ptp-Rename-FS-bit-to-FIPERST/20161116-095805
config: s390-allyesconfig (attached as .config)
compiler: s390x-linux-gnu-gcc (Debian 6.1.1-9) 6.1.1 20160705
reproduce:
        wget https://git.kernel.org/cgit/linux/kernel/git/wfg/lkp-tests.git/plain/sbin/make.cross -O ~/bin/make.cross
        chmod +x ~/bin/make.cross
        # save the attached .config to linux build tree
        make.cross ARCH=s390 

All warnings (new ones prefixed by >>):

   drivers/net/ethernet/marvell/mvpp2.c: In function 'mvpp2_prs_mac_promisc_set':
   drivers/net/ethernet/marvell/mvpp2.c:524:33: warning: large integer implicitly truncated to unsigned type [-Woverflow]
    #define MVPP2_PRS_RI_L2_UCAST   ~(BIT(9) | BIT(10))
                                    ^
   drivers/net/ethernet/marvell/mvpp2.c:1459:33: note: in expansion of macro 'MVPP2_PRS_RI_L2_UCAST'
      mvpp2_prs_sram_ri_update(&pe, MVPP2_PRS_RI_L2_UCAST,
                                    ^~~~~~~~~~~~~~~~~~~~~
   drivers/net/ethernet/marvell/mvpp2.c: In function 'mvpp2_prs_dsa_tag_set':
   drivers/net/ethernet/marvell/mvpp2.c:517:34: warning: large integer implicitly truncated to unsigned type [-Woverflow]
    #define MVPP2_PRS_RI_VLAN_NONE   ~(BIT(2) | BIT(3))
                                     ^
   drivers/net/ethernet/marvell/mvpp2.c:1572:34: note: in expansion of macro 'MVPP2_PRS_RI_VLAN_NONE'
       mvpp2_prs_sram_ri_update(&pe, MVPP2_PRS_RI_VLAN_NONE,
                                     ^~~~~~~~~~~~~~~~~~~~~~
   drivers/net/ethernet/marvell/mvpp2.c: In function 'mvpp2_prs_dsa_tag_ethertype_set':
   drivers/net/ethernet/marvell/mvpp2.c:517:34: warning: large integer implicitly truncated to unsigned type [-Woverflow]
    #define MVPP2_PRS_RI_VLAN_NONE   ~(BIT(2) | BIT(3))
                                     ^
   drivers/net/ethernet/marvell/mvpp2.c:1642:34: note: in expansion of macro 'MVPP2_PRS_RI_VLAN_NONE'
       mvpp2_prs_sram_ri_update(&pe, MVPP2_PRS_RI_VLAN_NONE,
                                     ^~~~~~~~~~~~~~~~~~~~~~
   drivers/net/ethernet/marvell/mvpp2.c: In function 'mvpp2_prs_etype_init':
   drivers/net/ethernet/marvell/mvpp2.c:529:30: warning: large integer implicitly truncated to unsigned type [-Woverflow]
    #define MVPP2_PRS_RI_L3_UN   ~(BIT(12) | BIT(13) | BIT(14))
                                 ^
   drivers/net/ethernet/marvell/mvpp2.c:2477:32: note: in expansion of macro 'MVPP2_PRS_RI_L3_UN'
     mvpp2_prs_sram_ri_update(&pe, MVPP2_PRS_RI_L3_UN,
                                   ^~~~~~~~~~~~~~~~~~
   drivers/net/ethernet/marvell/mvpp2.c:529:30: warning: large integer implicitly truncated to unsigned type [-Woverflow]
    #define MVPP2_PRS_RI_L3_UN   ~(BIT(12) | BIT(13) | BIT(14))
                                 ^
   drivers/net/ethernet/marvell/mvpp2.c:2488:42: note: in expansion of macro 'MVPP2_PRS_RI_L3_UN'
     mvpp2_prs_shadow_ri_set(priv, pe.index, MVPP2_PRS_RI_L3_UN,
                                             ^~~~~~~~~~~~~~~~~~
   drivers/net/ethernet/marvell/mvpp2.c: In function 'mvpp2_prs_vlan_init':
   drivers/net/ethernet/marvell/mvpp2.c:517:34: warning: large integer implicitly truncated to unsigned type [-Woverflow]
    #define MVPP2_PRS_RI_VLAN_NONE   ~(BIT(2) | BIT(3))
                                     ^
   drivers/net/ethernet/marvell/mvpp2.c:2563:32: note: in expansion of macro 'MVPP2_PRS_RI_VLAN_NONE'
     mvpp2_prs_sram_ri_update(&pe, MVPP2_PRS_RI_VLAN_NONE,
                                   ^~~~~~~~~~~~~~~~~~~~~~
   drivers/net/ethernet/marvell/mvpp2.c: In function 'mvpp2_prs_pppoe_init':
   drivers/net/ethernet/marvell/mvpp2.c:529:30: warning: large integer implicitly truncated to unsigned type [-Woverflow]
    #define MVPP2_PRS_RI_L3_UN   ~(BIT(12) | BIT(13) | BIT(14))
                                 ^
   drivers/net/ethernet/marvell/mvpp2.c:2669:32: note: in expansion of macro 'MVPP2_PRS_RI_L3_UN'
     mvpp2_prs_sram_ri_update(&pe, MVPP2_PRS_RI_L3_UN,
                                   ^~~~~~~~~~~~~~~~~~
   drivers/net/ethernet/marvell/mvpp2.c: In function 'mvpp2_prs_ip4_init':
   drivers/net/ethernet/marvell/mvpp2.c:537:33: warning: large integer implicitly truncated to unsigned type [-Woverflow]
    #define MVPP2_PRS_RI_L3_UCAST   ~(BIT(15) | BIT(16))
                                    ^
   drivers/net/ethernet/marvell/mvpp2.c:2755:32: note: in expansion of macro 'MVPP2_PRS_RI_L3_UCAST'
     mvpp2_prs_sram_ri_update(&pe, MVPP2_PRS_RI_L3_UCAST,
                                   ^~~~~~~~~~~~~~~~~~~~~
   drivers/net/ethernet/marvell/mvpp2.c: In function 'mvpp2_prs_ip6_init':
   drivers/net/ethernet/marvell/mvpp2.c:529:30: warning: large integer implicitly truncated to unsigned type [-Woverflow]
    #define MVPP2_PRS_RI_L3_UN   ~(BIT(12) | BIT(13) | BIT(14))
                                 ^
   drivers/net/ethernet/marvell/mvpp2.c:2823:32: note: in expansion of macro 'MVPP2_PRS_RI_L3_UN'
     mvpp2_prs_sram_ri_update(&pe, MVPP2_PRS_RI_L3_UN |
                                   ^~~~~~~~~~~~~~~~~~
   drivers/net/ethernet/marvell/mvpp2.c:537:33: warning: large integer implicitly truncated to unsigned type [-Woverflow]
    #define MVPP2_PRS_RI_L3_UCAST   ~(BIT(15) | BIT(16))
                                    ^
   drivers/net/ethernet/marvell/mvpp2.c:2887:32: note: in expansion of macro 'MVPP2_PRS_RI_L3_UCAST'
     mvpp2_prs_sram_ri_update(&pe, MVPP2_PRS_RI_L3_UCAST,
                                   ^~~~~~~~~~~~~~~~~~~~~
   drivers/net/ethernet/marvell/mvpp2.c: In function 'mvpp2_prs_mac_da_accept':
   drivers/net/ethernet/marvell/mvpp2.c:524:33: warning: large integer implicitly truncated to unsigned type [-Woverflow]
    #define MVPP2_PRS_RI_L2_UCAST   ~(BIT(9) | BIT(10))
                                    ^
   drivers/net/ethernet/marvell/mvpp2.c:3100:8: note: in expansion of macro 'MVPP2_PRS_RI_L2_UCAST'
      ri = MVPP2_PRS_RI_L2_UCAST | MVPP2_PRS_RI_MAC_ME_MASK;
           ^~~~~~~~~~~~~~~~~~~~~
   In file included from drivers/net/ethernet/marvell/mvpp2.c:13:0:
   drivers/net/ethernet/marvell/mvpp2.c: In function 'mvpp2_bm_pool_create':
   drivers/net/ethernet/marvell/mvpp2.c:3375:18: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast]
     if (!IS_ALIGNED((u32)bm_pool->virt_addr, MVPP2_BM_POOL_PTR_ALIGN)) {
                     ^
   include/linux/kernel.h:51:30: note: in definition of macro 'IS_ALIGNED'
    #define IS_ALIGNED(x, a)  (((x) & ((typeof(x))(a) - 1)) == 0)
                                 ^
   drivers/net/ethernet/marvell/mvpp2.c:3375:18: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast]
     if (!IS_ALIGNED((u32)bm_pool->virt_addr, MVPP2_BM_POOL_PTR_ALIGN)) {
                     ^
   include/linux/kernel.h:51:44: note: in definition of macro 'IS_ALIGNED'
    #define IS_ALIGNED(x, a)  (((x) & ((typeof(x))(a) - 1)) == 0)
                                               ^
   drivers/net/ethernet/marvell/mvpp2.c: In function 'mvpp2_bm_bufs_free':
   drivers/net/ethernet/marvell/mvpp2.c:3433:21: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]
      dev_kfree_skb_any((struct sk_buff *)vaddr);
                        ^
   drivers/net/ethernet/marvell/mvpp2.c: In function 'mvpp2_bm_bufs_add':
   drivers/net/ethernet/marvell/mvpp2.c:3647:47: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast]
      mvpp2_pool_refill(port, bm, (u32)phys_addr, (u32)skb);
                                                  ^
   drivers/net/ethernet/marvell/mvpp2.c: In function 'mvpp2_swf_bm_pool_init':
>> drivers/net/ethernet/marvell/mvpp2.c:384:2: warning: overflow in implicit constant conversion [-Woverflow]
     ((total_size) - NET_SKB_PAD - MVPP2_SKB_SHINFO_SIZE)
     ^
>> drivers/net/ethernet/marvell/mvpp2.c:619:34: note: in expansion of macro 'MVPP2_RX_MAX_PKT_SIZE'
    #define MVPP2_BM_SHORT_PKT_SIZE  MVPP2_RX_MAX_PKT_SIZE(512)
                                     ^~~~~~~~~~~~~~~~~~~~~
>> drivers/net/ethernet/marvell/mvpp2.c:3743:8: note: in expansion of macro 'MVPP2_BM_SHORT_PKT_SIZE'
           MVPP2_BM_SHORT_PKT_SIZE);
           ^~~~~~~~~~~~~~~~~~~~~~~
   drivers/net/ethernet/marvell/mvpp2.c: In function 'mvpp2_rx_refill':
   drivers/net/ethernet/marvell/mvpp2.c:5011:46: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast]
     mvpp2_pool_refill(port, bm, (u32)phys_addr, (u32)skb);
                                                 ^
   drivers/net/ethernet/marvell/mvpp2.c: In function 'mvpp2_buff_hdr_rx':
   drivers/net/ethernet/marvell/mvpp2.c:5066:9: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]
      skb = (struct sk_buff *)buff_virt_addr;
            ^
   drivers/net/ethernet/marvell/mvpp2.c: In function 'mvpp2_rx':
   drivers/net/ethernet/marvell/mvpp2.c:5136:9: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]
      skb = (struct sk_buff *)rx_desc->buf_cookie;
            ^

vim +384 drivers/net/ethernet/marvell/mvpp2.c

3f518509 Marcin Wojtas 2014-07-10  368  /* RX FIFO constants */
3f518509 Marcin Wojtas 2014-07-10  369  #define MVPP2_RX_FIFO_PORT_DATA_SIZE	0x2000
3f518509 Marcin Wojtas 2014-07-10  370  #define MVPP2_RX_FIFO_PORT_ATTR_SIZE	0x80
3f518509 Marcin Wojtas 2014-07-10  371  #define MVPP2_RX_FIFO_PORT_MIN_PKT	0x80
3f518509 Marcin Wojtas 2014-07-10  372  
3f518509 Marcin Wojtas 2014-07-10  373  /* RX buffer constants */
3f518509 Marcin Wojtas 2014-07-10  374  #define MVPP2_SKB_SHINFO_SIZE \
3f518509 Marcin Wojtas 2014-07-10  375  	SKB_DATA_ALIGN(sizeof(struct skb_shared_info))
3f518509 Marcin Wojtas 2014-07-10  376  
3f518509 Marcin Wojtas 2014-07-10  377  #define MVPP2_RX_PKT_SIZE(mtu) \
3f518509 Marcin Wojtas 2014-07-10  378  	ALIGN((mtu) + MVPP2_MH_SIZE + MVPP2_VLAN_TAG_LEN + \
4a0a12d2 Jisheng Zhang 2016-04-01  379  	      ETH_HLEN + ETH_FCS_LEN, cache_line_size())
3f518509 Marcin Wojtas 2014-07-10  380  
3f518509 Marcin Wojtas 2014-07-10  381  #define MVPP2_RX_BUF_SIZE(pkt_size)	((pkt_size) + NET_SKB_PAD)
3f518509 Marcin Wojtas 2014-07-10  382  #define MVPP2_RX_TOTAL_SIZE(buf_size)	((buf_size) + MVPP2_SKB_SHINFO_SIZE)
3f518509 Marcin Wojtas 2014-07-10  383  #define MVPP2_RX_MAX_PKT_SIZE(total_size) \
3f518509 Marcin Wojtas 2014-07-10 @384  	((total_size) - NET_SKB_PAD - MVPP2_SKB_SHINFO_SIZE)
3f518509 Marcin Wojtas 2014-07-10  385  
3f518509 Marcin Wojtas 2014-07-10  386  #define MVPP2_BIT_TO_BYTE(bit)		((bit) / 8)
3f518509 Marcin Wojtas 2014-07-10  387  
3f518509 Marcin Wojtas 2014-07-10  388  /* IPv6 max L3 address size */
3f518509 Marcin Wojtas 2014-07-10  389  #define MVPP2_MAX_L3_ADDR_SIZE		16
3f518509 Marcin Wojtas 2014-07-10  390  
3f518509 Marcin Wojtas 2014-07-10  391  /* Port flags */
3f518509 Marcin Wojtas 2014-07-10  392  #define MVPP2_F_LOOPBACK		BIT(0)

:::::: The code at line 384 was first introduced by commit
:::::: 3f518509dedc99f0b755d2ce68d24f610e3a005a ethernet: Add new driver for Marvell Armada 375 network unit

:::::: TO: Marcin Wojtas <mw@...ihalf.com>
:::::: 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" (43519 bytes)

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ