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  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [day] [month] [year] [list]
Date:	Sat, 4 Jun 2016 10:02:28 +0800
From:	kbuild test robot <fengguang.wu@...el.com>
To:	unlisted-recipients:; (no To-header on input)
Cc:	kbuild-all@...org, netdev@...r.kernel.org,
	Yuval Mintz <Yuval.Mintz@...gic.com>
Subject: [net-next:master 25/29] include/linux/qed/qed_chain.h:27:48:
 warning: left shift count >= width of type

tree:   https://git.kernel.org/pub/scm/linux/kernel/git/davem/net-next.git master
head:   03c7f70beee4c5d34881e5d3dd2b6f3e848047ef
commit: a91eb52abb504a1dd3248a5d07b54e7f95d5fcf1 [25/29] qed: Revisit chain implementation
config: i386-allmodconfig (attached as .config)
compiler: gcc-6 (Debian 6.1.1-1) 6.1.1 20160430
reproduce:
        git checkout a91eb52abb504a1dd3248a5d07b54e7f95d5fcf1
        # save the attached .config to linux build tree
        make ARCH=i386 

All warnings (new ones prefixed by >>):

   In file included from drivers/net/ethernet/qlogic/qed/qed_dev.c:22:0:
   drivers/net/ethernet/qlogic/qed/qed_dev.c: In function 'qed_chain_free_next_ptr':
>> include/linux/qed/qed_chain.h:27:48: warning: left shift count >= width of type [-Wshift-count-overflow]
    #define HILO_GEN(hi, lo, type)  ((((type)(hi)) << 32) + (lo))
                                                   ^
>> include/linux/qed/qed_chain.h:28:33: note: in expansion of macro 'HILO_GEN'
    #define HILO_DMA(hi, lo)        HILO_GEN(hi, lo, dma_addr_t)
                                    ^~~~~~~~
>> include/linux/qed/qed_chain.h:30:42: note: in expansion of macro 'HILO_DMA'
    #define HILO_DMA_REGPAIR(regpair)       (HILO_DMA(regpair.hi, regpair.lo))
                                             ^~~~~~~~
>> drivers/net/ethernet/qlogic/qed/qed_dev.c:1802:17: note: in expansion of macro 'HILO_DMA_REGPAIR'
      p_phys_next = HILO_DMA_REGPAIR(p_next->next_phys);
                    ^~~~~~~~~~~~~~~~

vim +27 include/linux/qed/qed_chain.h

fe56b9e6 Yuval Mintz 2015-10-26  21  #define DMA_HI_LE(x)            cpu_to_le32(upper_32_bits(x))
94494598 Yuval Mintz 2016-02-21  22  #define DMA_REGPAIR_LE(x, val)  do { \
94494598 Yuval Mintz 2016-02-21  23  					(x).hi = DMA_HI_LE((val)); \
94494598 Yuval Mintz 2016-02-21  24  					(x).lo = DMA_LO_LE((val)); \
94494598 Yuval Mintz 2016-02-21  25  				} while (0)
fe56b9e6 Yuval Mintz 2015-10-26  26  
fe56b9e6 Yuval Mintz 2015-10-26 @27  #define HILO_GEN(hi, lo, type)  ((((type)(hi)) << 32) + (lo))
fe56b9e6 Yuval Mintz 2015-10-26 @28  #define HILO_DMA(hi, lo)        HILO_GEN(hi, lo, dma_addr_t)
fe56b9e6 Yuval Mintz 2015-10-26  29  #define HILO_64(hi, lo) HILO_GEN((le32_to_cpu(hi)), (le32_to_cpu(lo)), u64)
fe56b9e6 Yuval Mintz 2015-10-26 @30  #define HILO_DMA_REGPAIR(regpair)       (HILO_DMA(regpair.hi, regpair.lo))
fe56b9e6 Yuval Mintz 2015-10-26  31  #define HILO_64_REGPAIR(regpair)        (HILO_64(regpair.hi, regpair.lo))
fe56b9e6 Yuval Mintz 2015-10-26  32  
fe56b9e6 Yuval Mintz 2015-10-26  33  enum qed_chain_mode {

:::::: The code at line 27 was first introduced by commit
:::::: fe56b9e6a8d957d6a20729d626027f800c17a2da qed: Add module with basic common support

:::::: TO: Yuval Mintz <Yuval.Mintz@...gic.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/octet-stream" (55052 bytes)

Powered by blists - more mailing lists