* [mkp-scsi:for-next 223/231] drivers/scsi/arcmsr/arcmsr_hba.c:658:36: warning: right shift count >= width of type
@ 2020-10-03 7:49 kernel test robot
0 siblings, 0 replies; only message in thread
From: kernel test robot @ 2020-10-03 7:49 UTC (permalink / raw)
To: kbuild-all
[-- Attachment #1: Type: text/plain, Size: 3092 bytes --]
tree: https://git.kernel.org/pub/scm/linux/kernel/git/mkp/scsi.git for-next
head: eb382d70a334947948787bd8f1a7f8f023cf6d1c
commit: aae7fa9246c9ae81294c862704d6602214eb267a [223/231] scsi: arcmsr: Add support for ARC-1886 series RAID controllers
config: xtensa-allyesconfig (attached as .config)
compiler: xtensa-linux-gcc (GCC) 9.3.0
reproduce (this is a W=1 build):
wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross
chmod +x ~/bin/make.cross
# https://git.kernel.org/pub/scm/linux/kernel/git/mkp/scsi.git/commit/?id=aae7fa9246c9ae81294c862704d6602214eb267a
git remote add mkp-scsi https://git.kernel.org/pub/scm/linux/kernel/git/mkp/scsi.git
git fetch --no-tags mkp-scsi for-next
git checkout aae7fa9246c9ae81294c862704d6602214eb267a
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-9.3.0 make.cross ARCH=xtensa
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp@intel.com>
All warnings (new ones prefixed by >>):
drivers/scsi/arcmsr/arcmsr_hba.c: In function 'arcmsr_hbaF_assign_regAddr':
>> drivers/scsi/arcmsr/arcmsr_hba.c:658:36: warning: right shift count >= width of type [-Wshift-count-overflow]
658 | writel((uint32_t)(host_buffer_dma >> 32), &pmuF->inbound_msgaddr1);
| ^~
drivers/scsi/arcmsr/arcmsr_hba.c: In function 'arcmsr_iop_confirm':
drivers/scsi/arcmsr/arcmsr_hba.c:4086:53: warning: right shift count >= width of type [-Wshift-count-overflow]
4086 | cdb_phyaddr_hi32 = (uint32_t)(dma_coherent_handle >> 32);
| ^~
vim +658 drivers/scsi/arcmsr/arcmsr_hba.c
640
641 static void arcmsr_hbaF_assign_regAddr(struct AdapterControlBlock *acb)
642 {
643 dma_addr_t host_buffer_dma;
644 struct MessageUnit_F __iomem *pmuF;
645
646 memset(acb->dma_coherent2, 0xff, acb->completeQ_size);
647 acb->message_wbuffer = (uint32_t *)((((unsigned long)acb->dma_coherent2 +
648 acb->completeQ_size + 3) >> 2) << 2);
649 acb->message_rbuffer = ((void *)acb->message_wbuffer) + 0x100;
650 acb->msgcode_rwbuffer = ((void *)acb->message_wbuffer) + 0x200;
651 memset((void *)acb->message_wbuffer, 0, MESG_RW_BUFFER_SIZE);
652 host_buffer_dma = ((acb->dma_coherent_handle2 + acb->completeQ_size +
653 3) >> 2) << 2;
654 pmuF = acb->pmuF;
655 /* host buffer low address, bit0:1 all buffer active */
656 writel((uint32_t)(host_buffer_dma | 1), &pmuF->inbound_msgaddr0);
657 /* host buffer high address */
> 658 writel((uint32_t)(host_buffer_dma >> 32), &pmuF->inbound_msgaddr1);
659 /* set host buffer physical address */
660 writel(ARCMSR_HBFMU_DOORBELL_SYNC1, &pmuF->iobound_doorbell);
661 }
662
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all(a)lists.01.org
[-- Attachment #2: config.gz --]
[-- Type: application/gzip, Size: 65073 bytes --]
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2020-10-03 7:49 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-10-03 7:49 [mkp-scsi:for-next 223/231] drivers/scsi/arcmsr/arcmsr_hba.c:658:36: warning: right shift count >= width of type kernel test robot
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.