[<prev] [next>] [day] [month] [year] [list]
Message-ID: <201606041112.n8P5D3lj%fengguang.wu@intel.com>
Date: Sat, 4 Jun 2016 11:31:13 +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]
drivers/net/ethernet/qlogic/qed/qed_dev.c:1802:57: 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-allyesconfig (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 >>):
drivers/net/ethernet/qlogic/qed/qed_dev.c: In function 'qed_chain_free_next_ptr':
>> drivers/net/ethernet/qlogic/qed/qed_dev.c:1802:57: warning: left shift count >= width of type [-Wshift-count-overflow]
p_phys_next = HILO_DMA_REGPAIR(p_next->next_phys);
^
vim +1802 drivers/net/ethernet/qlogic/qed/qed_dev.c
1786 void *p_virt = p_chain->p_virt_addr, *p_virt_next = NULL;
1787 dma_addr_t p_phys = p_chain->p_phys_addr, p_phys_next = 0;
1788 struct qed_chain_next *p_next;
1789 u32 size, i;
1790
1791 if (!p_virt)
1792 return;
1793
1794 size = p_chain->elem_size * p_chain->usable_per_page;
1795
1796 for (i = 0; i < p_chain->page_cnt; i++) {
1797 if (!p_virt)
1798 break;
1799
1800 p_next = (struct qed_chain_next *)((u8 *)p_virt + size);
1801 p_virt_next = p_next->next_virt;
> 1802 p_phys_next = HILO_DMA_REGPAIR(p_next->next_phys);
1803
1804 dma_free_coherent(&cdev->pdev->dev,
1805 QED_CHAIN_PAGE_SIZE, p_virt, p_phys);
1806
1807 p_virt = p_virt_next;
1808 p_phys = p_phys_next;
1809 }
1810 }
---
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" (54406 bytes)
Powered by blists - more mailing lists