From: kernel test robot <lkp@intel.com>
To: kbuild@lists.01.org
Subject: drivers/pci/msi/msi.c:646:4: warning: Assignment of function parameter has no effect outside the function. Did you forget dereferencing it? [uselessAssignmentPtrArg]
Date: Mon, 14 Feb 2022 21:25:20 +0800 [thread overview]
Message-ID: <202202142143.51C8EXel-lkp@intel.com> (raw)
[-- Attachment #1: Type: text/plain, Size: 2458 bytes --]
CC: kbuild-all(a)lists.01.org
CC: linux-kernel(a)vger.kernel.org
TO: Thomas Gleixner <tglx@linutronix.de>
CC: Jason Gunthorpe <jgg@nvidia.com>
CC: "Greg Kroah-Hartman" <gregkh@linuxfoundation.org>
tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master
head: 754e0b0e35608ed5206d6a67a791563c631cec07
commit: 54324c2f3d728f451d9053fcc7859b26fc9cecb4 PCI/MSI: Split out CONFIG_PCI_MSI independent part
date: 10 weeks ago
:::::: branch date: 17 hours ago
:::::: commit date: 10 weeks ago
compiler: s390-linux-gcc (GCC) 11.2.0
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp@intel.com>
cppcheck possible warnings: (new ones prefixed by >>, may not real problems)
>> drivers/pci/msi/msi.c:646:4: warning: Assignment of function parameter has no effect outside the function. Did you forget dereferencing it? [uselessAssignmentPtrArg]
entries++;
^
vim +646 drivers/pci/msi/msi.c
d9d7070e611765 drivers/pci/msi.c Hidetoshi Seto 2009-08-06 638
7d5ec3d3612396 drivers/pci/msi.c Thomas Gleixner 2021-07-29 639 static void msix_update_entries(struct pci_dev *dev, struct msix_entry *entries)
75cb3426878d47 drivers/pci/msi.c Hidetoshi Seto 2009-08-06 640 {
75cb3426878d47 drivers/pci/msi.c Hidetoshi Seto 2009-08-06 641 struct msi_desc *entry;
75cb3426878d47 drivers/pci/msi.c Hidetoshi Seto 2009-08-06 642
7d5ec3d3612396 drivers/pci/msi.c Thomas Gleixner 2021-07-29 643 if (entries) {
7112158d97a153 drivers/pci/msi.c Thomas Gleixner 2021-12-06 644 for_each_pci_msi_entry(entry, dev) {
7d5ec3d3612396 drivers/pci/msi.c Thomas Gleixner 2021-07-29 645 entries->vector = entry->irq;
7d5ec3d3612396 drivers/pci/msi.c Thomas Gleixner 2021-07-29 @646 entries++;
7d5ec3d3612396 drivers/pci/msi.c Thomas Gleixner 2021-07-29 647 }
7d5ec3d3612396 drivers/pci/msi.c Thomas Gleixner 2021-07-29 648 }
7d5ec3d3612396 drivers/pci/msi.c Thomas Gleixner 2021-07-29 649 }
d7cc609fb679e1 drivers/pci/msi.c Logan Gunthorpe 2019-05-23 650
:::::: The code at line 646 was first introduced by commit
:::::: 7d5ec3d3612396dc6d4b76366d20ab9fc06f399f PCI/MSI: Mask all unused MSI-X entries
:::::: TO: Thomas Gleixner <tglx@linutronix.de>
:::::: CC: Thomas Gleixner <tglx@linutronix.de>
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all(a)lists.01.org
next reply other threads:[~2022-02-14 13:25 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-02-14 13:25 kernel test robot [this message]
-- strict thread matches above, loose matches on Subject: below --
2022-03-09 3:56 drivers/pci/msi/msi.c:646:4: warning: Assignment of function parameter has no effect outside the function. Did you forget dereferencing it? [uselessAssignmentPtrArg] kernel test robot
2022-01-22 4:37 kernel test robot
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=202202142143.51C8EXel-lkp@intel.com \
--to=lkp@intel.com \
--cc=kbuild@lists.01.org \
/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 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.