[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <201607280024.Zi8nt6E1%fengguang.wu@intel.com>
Date: Thu, 28 Jul 2016 00:29:44 +0800
From: kbuild test robot <lkp@...el.com>
To: Serge Semin <fancer.lancer@...il.com>
Cc: kbuild-all@...org, jdmason@...zu.us, dave.jiang@...el.com,
Allen.Hubbe@....com, Xiangliang.Yu@....com,
Sergey.Semin@...latforms.ru, linux-ntb@...glegroups.com,
linux-kernel@...r.kernel.org, Serge Semin <fancer.lancer@...il.com>
Subject: Re: [PATCH 2/3] ntb: IDT 89HPES*NT* PCIe-switches NTB device driver
Hi,
[auto build test WARNING on ntb/ntb-next]
[cannot apply to v4.7 next-20160727]
[if your patch is applied to the wrong git tree, please drop us a note to help improve the system]
url: https://github.com/0day-ci/linux/commits/Serge-Semin/ntb-Asynchronous-NTB-devices-support/20160727-082033
base: https://github.com/jonmason/ntb ntb-next
config: sparc64-allmodconfig (attached as .config)
compiler: sparc64-linux-gnu-gcc (Debian 5.4.0-6) 5.4.0 20160609
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=sparc64
All warnings (new ones prefixed by >>):
drivers/ntb/hw/idt/ntb_hw_idt.c: In function 'idt_ntb_setmw':
>> drivers/ntb/hw/idt/ntb_hw_idt.c:1170:56: warning: right shift count >= width of type [-Wshift-count-overflow]
idt_ntb_writereg(cfg, IDT_NT_PCI_LUTMDATA, (u32)(addr >> 32));
^
vim +1170 drivers/ntb/hw/idt/ntb_hw_idt.c
1154
1155 /* Collect the Lookup table offset */
1156 idt_ntb_writefld_var(&lut_indxbar, IDT_NT_LUT_INDEX,
1157 ndev->mw_self_offset + mwindx);
1158 idt_ntb_writefld_var(&lut_indxbar, IDT_NT_LUT_BAR, BAR2);
1159
1160 /* Collect the Lookup table entry partition and valid bits */
1161 idt_ntb_writefld_var(&lut_partval, IDT_NT_LUT_PART, ndev->part);
1162 idt_ntb_writefld_var(&lut_partval, IDT_NT_LUT_VALID, ON);
1163
1164 /* Start critical section writing to the local port Lookup table */
1165 spin_lock_irqsave(&pdata->lut_lock, irqflags);
1166 /* Write the data to the Lookup table registers of the peer */
1167 idt_ntb_writereg(cfg, IDT_NT_PCI_LUTOFFSET, lut_indxbar);
1168 idt_ntb_writereg(cfg, IDT_NT_PCI_LUTLDATA, (u32)addr);
1169 #ifdef CONFIG_64BIT
> 1170 idt_ntb_writereg(cfg, IDT_NT_PCI_LUTMDATA, (u32)(addr >> 32));
1171 #else
1172 idt_ntb_writereg(cfg, IDT_NT_PCI_LUTMDATA, (u32)0);
1173 #endif /* !CONFIG_64BIT */
1174 idt_ntb_writereg(cfg, IDT_NT_PCI_LUTUDATA, lut_partval);
1175 /* Finally unlock the Lookup table */
1176 spin_unlock_irqrestore(&pdata->lut_lock, irqflags);
1177
1178 return SUCCESS;
---
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" (46369 bytes)
Powered by blists - more mailing lists