kernel-janitors.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: kbuild test robot <lkp@intel.com>
To: Colin King <colin.king@canonical.com>
Cc: kbuild-all@01.org, Jianyun Li <jyli@marvell.com>,
	"James E . J . Bottomley" <jejb@linux.ibm.com>,
	"Martin K . Petersen" <martin.petersen@oracle.com>,
	linux-scsi@vger.kernel.org, kernel-janitors@vger.kernel.org,
	linux-kernel@vger.kernel.org
Subject: Re: [PATCH] scsi: mvumi: fix 32 bit shift of a u32 value
Date: Wed, 14 Aug 2019 15:07:53 +0000	[thread overview]
Message-ID: <201908142241.jy9snlJz%lkp@intel.com> (raw)
In-Reply-To: <20190813180113.14245-1-colin.king@canonical.com>

[-- Attachment #1: Type: text/plain, Size: 2065 bytes --]

Hi Colin,

Thank you for the patch! Perhaps something to improve:

[auto build test WARNING on linus/master]
[cannot apply to v5.3-rc4 next-20190814]
[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/Colin-King/scsi-mvumi-fix-32-bit-shift-of-a-u32-value/20190814-214025
config: mips-allmodconfig (attached as .config)
compiler: mips-linux-gcc (GCC) 7.4.0
reproduce:
        wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross
        chmod +x ~/bin/make.cross
        # save the attached .config to linux build tree
        GCC_VERSION=7.4.0 make.cross ARCH=mips 

If you fix the issue, kindly add following tag
Reported-by: kbuild test robot <lkp@intel.com>

All warnings (new ones prefixed by >>):

   drivers/scsi/mvumi.c: In function 'mvumi_delete_internal_cmd':
>> drivers/scsi/mvumi.c:299:38: warning: left shift count >= width of type [-Wshift-count-overflow]
           (dma_addr_t) m_sg->baseaddr_h << 32;
                                         ^~

vim +299 drivers/scsi/mvumi.c

   285	
   286	static void mvumi_delete_internal_cmd(struct mvumi_hba *mhba,
   287							struct mvumi_cmd *cmd)
   288	{
   289		struct mvumi_sgl *m_sg;
   290		unsigned int size;
   291		dma_addr_t phy_addr;
   292	
   293		if (cmd && cmd->frame) {
   294			if (cmd->frame->sg_counts) {
   295				m_sg = (struct mvumi_sgl *) &cmd->frame->payload[0];
   296				sgd_getsz(mhba, m_sg, size);
   297	
   298				phy_addr = (dma_addr_t) m_sg->baseaddr_l |
 > 299					   (dma_addr_t) m_sg->baseaddr_h << 32;
   300	
   301				dma_free_coherent(&mhba->pdev->dev, size, cmd->data_buf,
   302									phy_addr);
   303			}
   304			dma_free_coherent(&mhba->pdev->dev, mhba->ib_max_size,
   305					cmd->frame, cmd->frame_phys);
   306			kfree(cmd);
   307		}
   308	}
   309	

---
0-DAY kernel test infrastructure                Open Source Technology Center
https://lists.01.org/pipermail/kbuild-all                   Intel Corporation

[-- Attachment #2: .config.gz --]
[-- Type: application/gzip, Size: 61472 bytes --]

      parent reply	other threads:[~2019-08-14 15:07 UTC|newest]

Thread overview: 12+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2019-02-16 14:44 [PATCH] scsi: mvumi: fix 32 bit shift of a 32 bit unsigned int Colin King
2019-02-16 16:27 ` Walter Harms
2019-02-18  9:37   ` Dan Carpenter
2019-02-18 15:32     ` James Bottomley
2019-02-18 15:47       ` Dan Carpenter
2019-02-18 12:42 ` Walter Harms
2019-02-18 14:24 ` Dan Carpenter
2019-02-18 16:52 ` Walter Harms
2019-08-13 18:01 ` [PATCH] scsi: mvumi: fix 32 bit shift of a u32 value Colin King
2019-08-14  7:17   ` walter harms
2019-08-14  8:07   ` Dan Carpenter
2019-08-14 15:07   ` kbuild test robot [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=201908142241.jy9snlJz%lkp@intel.com \
    --to=lkp@intel.com \
    --cc=colin.king@canonical.com \
    --cc=jejb@linux.ibm.com \
    --cc=jyli@marvell.com \
    --cc=kbuild-all@01.org \
    --cc=kernel-janitors@vger.kernel.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-scsi@vger.kernel.org \
    --cc=martin.petersen@oracle.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).