linux-pci.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: kbuild test robot <lkp@intel.com>
To: Himanshu Madhani <himanshu.madhani@cavium.com>
Cc: kbuild-all@01.org, bhelgaas@google.com,
	linux-pci@vger.kernel.org, hch@lst.de,
	himanshu.madhani@cavium.com
Subject: Re: [PATCH] PCI/MSI: Only disable affinity settings if pre and post vector count is equal to max_vecs and not min_vecs
Date: Tue, 18 Apr 2017 08:01:20 +0800	[thread overview]
Message-ID: <201704180709.I3uMfpcx%fengguang.wu@intel.com> (raw)
In-Reply-To: <20170417212625.14309-1-himanshu.madhani@cavium.com>

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

Hi Himanshu,

[auto build test ERROR on linus/master]
[also build test ERROR on v4.11-rc7 next-20170413]
[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/Himanshu-Madhani/PCI-MSI-Only-disable-affinity-settings-if-pre-and-post-vector-count-is-equal-to-max_vecs-and-not-min_vecs/20170418-060342
config: x86_64-randconfig-x003-201716 (attached as .config)
compiler: gcc-6 (Debian 6.2.0-3) 6.2.0 20160901
reproduce:
        # save the attached .config to linux build tree
        make ARCH=x86_64 

All errors (new ones prefixed by >>):

   drivers/pci/msi.c: In function '__pci_enable_msi_range':
   drivers/pci/msi.c:1075:45: warning: passing argument 2 of 'irq_calc_affinity_vectors' makes pointer from integer without a cast [-Wint-conversion]
       nvec = irq_calc_affinity_vectors(minvec, nvec, affd);
                                                ^~~~
   In file included from drivers/pci/msi.c:13:0:
   include/linux/interrupt.h:334:1: note: expected 'const struct irq_affinity *' but argument is of type 'int'
    irq_calc_affinity_vectors(int maxvec, const struct irq_affinity *affd)
    ^~~~~~~~~~~~~~~~~~~~~~~~~
>> drivers/pci/msi.c:1075:11: error: too many arguments to function 'irq_calc_affinity_vectors'
       nvec = irq_calc_affinity_vectors(minvec, nvec, affd);
              ^~~~~~~~~~~~~~~~~~~~~~~~~
   In file included from drivers/pci/msi.c:13:0:
   include/linux/interrupt.h:334:1: note: declared here
    irq_calc_affinity_vectors(int maxvec, const struct irq_affinity *affd)
    ^~~~~~~~~~~~~~~~~~~~~~~~~
   drivers/pci/msi.c: In function '__pci_enable_msix_range':
   drivers/pci/msi.c:1114:45: warning: passing argument 2 of 'irq_calc_affinity_vectors' makes pointer from integer without a cast [-Wint-conversion]
       nvec = irq_calc_affinity_vectors(minvec, nvec, affd);
                                                ^~~~
   In file included from drivers/pci/msi.c:13:0:
   include/linux/interrupt.h:334:1: note: expected 'const struct irq_affinity *' but argument is of type 'int'
    irq_calc_affinity_vectors(int maxvec, const struct irq_affinity *affd)
    ^~~~~~~~~~~~~~~~~~~~~~~~~
   drivers/pci/msi.c:1114:11: error: too many arguments to function 'irq_calc_affinity_vectors'
       nvec = irq_calc_affinity_vectors(minvec, nvec, affd);
              ^~~~~~~~~~~~~~~~~~~~~~~~~
   In file included from drivers/pci/msi.c:13:0:
   include/linux/interrupt.h:334:1: note: declared here
    irq_calc_affinity_vectors(int maxvec, const struct irq_affinity *affd)
    ^~~~~~~~~~~~~~~~~~~~~~~~~

vim +/irq_calc_affinity_vectors +1075 drivers/pci/msi.c

  1069	
  1070		if (nvec > maxvec)
  1071			nvec = maxvec;
  1072	
  1073		for (;;) {
  1074			if (affd) {
> 1075				nvec = irq_calc_affinity_vectors(minvec, nvec, affd);
  1076				if (nvec < minvec)
  1077					return -ENOSPC;
  1078			}

---
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: 24054 bytes --]

  reply	other threads:[~2017-04-18  0:02 UTC|newest]

Thread overview: 19+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-04-17 21:26 [PATCH] PCI/MSI: Only disable affinity settings if pre and post vector count is equal to max_vecs and not min_vecs Himanshu Madhani
2017-04-18  0:01 ` kbuild test robot [this message]
  -- strict thread matches above, loose matches on Subject: below --
2017-04-18  1:19 Himanshu Madhani
2017-05-17 22:28 ` Bjorn Helgaas
2017-05-18 16:02   ` Himanshu Madhani
2017-03-01 23:31 Himanshu Madhani
2017-03-01 23:49 ` Christoph Hellwig
2017-03-07 19:00   ` Madhani, Himanshu
2017-03-07 21:08     ` Bjorn Helgaas
2017-03-23 17:29 ` Bjorn Helgaas
2017-03-30 23:21   ` Bjorn Helgaas
2017-03-30 23:25     ` Himanshu Madhani
2017-03-31  0:09       ` Bjorn Helgaas
2017-02-23 21:01 Himanshu Madhani
2017-02-28 22:05 ` Madhani, Himanshu
2017-03-01 15:20 ` Christoph Hellwig
2017-03-01 23:27   ` Madhani, Himanshu
2017-02-23  6:12 Himanshu Madhani
2017-02-23 10:30 ` Christoph Hellwig

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=201704180709.I3uMfpcx%fengguang.wu@intel.com \
    --to=lkp@intel.com \
    --cc=bhelgaas@google.com \
    --cc=hch@lst.de \
    --cc=himanshu.madhani@cavium.com \
    --cc=kbuild-all@01.org \
    --cc=linux-pci@vger.kernel.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 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).