All of lore.kernel.org
 help / color / mirror / Atom feed
* [arm-platforms:irq/affinity-nosmp 7/8] drivers/pci/controller/pci-hyperv.c:1654:42: warning: passing argument 1 of 'hv_compose_msi_req_get_cpu' discards 'const' qualifier from pointer target type
@ 2022-07-08  1:44 kernel test robot
  0 siblings, 0 replies; only message in thread
From: kernel test robot @ 2022-07-08  1:44 UTC (permalink / raw)
  To: Samuel Holland; +Cc: kbuild-all, linux-arm-kernel, Marc Zyngier, Michael Kelley

tree:   https://git.kernel.org/pub/scm/linux/kernel/git/maz/arm-platforms.git irq/affinity-nosmp
head:   aa0813581b8d37bdd91cd40b67ef79ffa45104b2
commit: 4d0b8298818b623f5fa51d5c49e1a142d3618ac9 [7/8] genirq: Return a const cpumask from irq_data_get_affinity_mask
config: x86_64-allyesconfig (https://download.01.org/0day-ci/archive/20220708/202207080943.Dm1V3kIf-lkp@intel.com/config)
compiler: gcc-11 (Debian 11.3.0-3) 11.3.0
reproduce (this is a W=1 build):
        # https://git.kernel.org/pub/scm/linux/kernel/git/maz/arm-platforms.git/commit/?id=4d0b8298818b623f5fa51d5c49e1a142d3618ac9
        git remote add arm-platforms https://git.kernel.org/pub/scm/linux/kernel/git/maz/arm-platforms.git
        git fetch --no-tags arm-platforms irq/affinity-nosmp
        git checkout 4d0b8298818b623f5fa51d5c49e1a142d3618ac9
        # save the config file
        mkdir build_dir && cp config build_dir/.config
        make W=1 O=build_dir ARCH=x86_64 SHELL=/bin/bash drivers/pci/controller/ drivers/rtc/

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

All warnings (new ones prefixed by >>):

   drivers/pci/controller/pci-hyperv.c: In function 'hv_compose_msi_req_v2':
>> drivers/pci/controller/pci-hyperv.c:1654:42: warning: passing argument 1 of 'hv_compose_msi_req_get_cpu' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers]
    1654 |         cpu = hv_compose_msi_req_get_cpu(affinity);
         |                                          ^~~~~~~~
   drivers/pci/controller/pci-hyperv.c:1638:55: note: expected 'struct cpumask *' but argument is of type 'const struct cpumask *'
    1638 | static int hv_compose_msi_req_get_cpu(struct cpumask *affinity)
         |                                       ~~~~~~~~~~~~~~~~^~~~~~~~
   drivers/pci/controller/pci-hyperv.c: In function 'hv_compose_msi_req_v3':
   drivers/pci/controller/pci-hyperv.c:1674:42: warning: passing argument 1 of 'hv_compose_msi_req_get_cpu' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers]
    1674 |         cpu = hv_compose_msi_req_get_cpu(affinity);
         |                                          ^~~~~~~~
   drivers/pci/controller/pci-hyperv.c:1638:55: note: expected 'struct cpumask *' but argument is of type 'const struct cpumask *'
    1638 | static int hv_compose_msi_req_get_cpu(struct cpumask *affinity)
         |                                       ~~~~~~~~~~~~~~~~^~~~~~~~


vim +1654 drivers/pci/controller/pci-hyperv.c

8f6a6b3c50ce1ca drivers/pci/controller/pci-hyperv.c Sunil Muthuswamy 2021-07-12  1642  
7dcf90e9e032432 drivers/pci/host/pci-hyperv.c       Jork Loeser      2017-05-24  1643  static u32 hv_compose_msi_req_v2(
4d0b8298818b623 drivers/pci/controller/pci-hyperv.c Samuel Holland   2022-07-01  1644  	struct pci_create_interrupt2 *int_pkt, const struct cpumask *affinity,
a2bad844a67b1c7 drivers/pci/controller/pci-hyperv.c Jeffrey Hugo     2022-05-11  1645  	u32 slot, u8 vector, u8 vector_count)
7dcf90e9e032432 drivers/pci/host/pci-hyperv.c       Jork Loeser      2017-05-24  1646  {
7dcf90e9e032432 drivers/pci/host/pci-hyperv.c       Jork Loeser      2017-05-24  1647  	int cpu;
7dcf90e9e032432 drivers/pci/host/pci-hyperv.c       Jork Loeser      2017-05-24  1648  
7dcf90e9e032432 drivers/pci/host/pci-hyperv.c       Jork Loeser      2017-05-24  1649  	int_pkt->message_type.type = PCI_CREATE_INTERRUPT_MESSAGE2;
7dcf90e9e032432 drivers/pci/host/pci-hyperv.c       Jork Loeser      2017-05-24  1650  	int_pkt->wslot.slot = slot;
7dcf90e9e032432 drivers/pci/host/pci-hyperv.c       Jork Loeser      2017-05-24  1651  	int_pkt->int_desc.vector = vector;
a2bad844a67b1c7 drivers/pci/controller/pci-hyperv.c Jeffrey Hugo     2022-05-11  1652  	int_pkt->int_desc.vector_count = vector_count;
831c1ae725f7d2f drivers/pci/controller/pci-hyperv.c Sunil Muthuswamy 2022-01-05  1653  	int_pkt->int_desc.delivery_mode = DELIVERY_MODE;
8f6a6b3c50ce1ca drivers/pci/controller/pci-hyperv.c Sunil Muthuswamy 2021-07-12 @1654  	cpu = hv_compose_msi_req_get_cpu(affinity);
8f6a6b3c50ce1ca drivers/pci/controller/pci-hyperv.c Sunil Muthuswamy 2021-07-12  1655  	int_pkt->int_desc.processor_array[0] =
8f6a6b3c50ce1ca drivers/pci/controller/pci-hyperv.c Sunil Muthuswamy 2021-07-12  1656  		hv_cpu_number_to_vp_number(cpu);
8f6a6b3c50ce1ca drivers/pci/controller/pci-hyperv.c Sunil Muthuswamy 2021-07-12  1657  	int_pkt->int_desc.processor_count = 1;
7dcf90e9e032432 drivers/pci/host/pci-hyperv.c       Jork Loeser      2017-05-24  1658  
8f6a6b3c50ce1ca drivers/pci/controller/pci-hyperv.c Sunil Muthuswamy 2021-07-12  1659  	return sizeof(*int_pkt);
8f6a6b3c50ce1ca drivers/pci/controller/pci-hyperv.c Sunil Muthuswamy 2021-07-12  1660  }
8f6a6b3c50ce1ca drivers/pci/controller/pci-hyperv.c Sunil Muthuswamy 2021-07-12  1661  

:::::: The code at line 1654 was first introduced by commit
:::::: 8f6a6b3c50ce1caa81c47bb5855be02050c0eff7 PCI: hv: Support for create interrupt v3

:::::: TO: Sunil Muthuswamy <sunilmut@microsoft.com>
:::::: CC: Lorenzo Pieralisi <lorenzo.pieralisi@arm.com>

-- 
0-DAY CI Kernel Test Service
https://01.org/lkp

_______________________________________________
linux-arm-kernel mailing list
linux-arm-kernel@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2022-07-08  1:47 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-07-08  1:44 [arm-platforms:irq/affinity-nosmp 7/8] drivers/pci/controller/pci-hyperv.c:1654:42: warning: passing argument 1 of 'hv_compose_msi_req_get_cpu' discards 'const' qualifier from pointer target 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.