[<prev] [next>] [day] [month] [year] [list]
Message-ID: <202111291855.ARueBRqf-lkp@intel.com>
Date: Mon, 29 Nov 2021 18:42:33 +0800
From: kernel test robot <lkp@...el.com>
To: Thomas Gleixner <tglx@...utronix.de>
Cc: kbuild-all@...ts.01.org, linux-kernel@...r.kernel.org
Subject: [tglx-devel:msi 84/100] kernel/irq/msi.c:782:16: error: 'struct
msi_device_data' has no member named 'num_descs'
tree: https://git.kernel.org/pub/scm/linux/kernel/git/tglx/devel.git msi
head: 76af424949030bcbbe874fc272e3cd7e388a6c7f
commit: 17095e2e663ae46ffdfe22111d6cca139d4da515 [84/100] platform-msi: Simplify platform device MSI code
config: x86_64-rhel-8.3-func (https://download.01.org/0day-ci/archive/20211129/202111291855.ARueBRqf-lkp@intel.com/config)
compiler: gcc-9 (Debian 9.3.0-22) 9.3.0
reproduce (this is a W=1 build):
# https://git.kernel.org/pub/scm/linux/kernel/git/tglx/devel.git/commit/?id=17095e2e663ae46ffdfe22111d6cca139d4da515
git remote add tglx-devel https://git.kernel.org/pub/scm/linux/kernel/git/tglx/devel.git
git fetch --no-tags tglx-devel msi
git checkout 17095e2e663ae46ffdfe22111d6cca139d4da515
# save the config file to linux build tree
mkdir build_dir
make W=1 O=build_dir ARCH=x86_64 SHELL=/bin/bash
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp@...el.com>
Note: the tglx-devel/msi HEAD 76af424949030bcbbe874fc272e3cd7e388a6c7f builds fine.
It only hurts bisectability.
All errors (new ones prefixed by >>):
kernel/irq/msi.c: In function 'msi_domain_populate_irqs':
>> kernel/irq/msi.c:782:16: error: 'struct msi_device_data' has no member named 'num_descs'
782 | dev->msi.data->num_descs++;
| ^~
vim +782 kernel/irq/msi.c
762
763 int msi_domain_populate_irqs(struct irq_domain *domain, struct device *dev,
764 int virq_base, int nvec, msi_alloc_info_t *arg)
765 {
766 struct msi_domain_info *info = domain->host_data;
767 struct msi_domain_ops *ops = info->ops;
768 struct msi_desc *desc;
769 int ret, virq;
770
771 msi_lock_descs(dev);
772 for (virq = virq_base; virq < virq_base + nvec; virq++) {
773 desc = alloc_msi_entry(dev, 1, NULL);
774 if (!desc) {
775 ret = -ENOMEM;
776 goto fail;
777 }
778
779 desc->msi_index = virq;
780 desc->irq = virq;
781 list_add_tail(&desc->list, &dev->msi.data->list);
> 782 dev->msi.data->num_descs++;
783
784 ops->set_desc(arg, desc);
785 ret = irq_domain_alloc_irqs_hierarchy(domain, virq, 1, arg);
786 if (ret)
787 goto fail;
788
789 irq_set_msi_desc(virq, desc);
790 }
791 msi_unlock_descs(dev);
792 return 0;
793
794 fail:
795 for (--virq; virq >= virq_base; virq--)
796 irq_domain_free_irqs_common(domain, virq, 1);
797 msi_free_msi_descs_range(dev, MSI_DESC_ALL, virq_base, nvec);
798 msi_unlock_descs(dev);
799 return ret;
800 }
801
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
Powered by blists - more mailing lists