All of lore.kernel.org
 help / color / mirror / Atom feed
* [tglx-devel:devmsi-arm 3/25] include/linux/acpi_iort.h:53:19: error: static declaration of 'iort_pmsi_get_dev_id' follows non-static declaration
@ 2024-06-10 23:18 kernel test robot
  0 siblings, 0 replies; only message in thread
From: kernel test robot @ 2024-06-10 23:18 UTC (permalink / raw)
  To: Thomas Gleixner
  Cc: llvm, oe-kbuild-all, Anna-Maria Behnsen, Shivamurthy Shastri

tree:   https://git.kernel.org/pub/scm/linux/kernel/git/tglx/devel.git devmsi-arm
head:   c0f9480169244284eb4f7bc656ab52d03a5badd4
commit: f2082cdb1e418911969043dda100eaaab513e531 [3/25] ACPI/IORT: Make iort_pmsi_get_dev_id() available for !CONFIG_ACPI_IORT
config: riscv-defconfig (https://download.01.org/0day-ci/archive/20240611/202406110704.R8AnGe0q-lkp@intel.com/config)
compiler: clang version 19.0.0git (https://github.com/llvm/llvm-project 4403cdbaf01379de96f8d0d6ea4f51a085e37766)
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20240611/202406110704.R8AnGe0q-lkp@intel.com/reproduce)

If you fix the issue in a separate patch/commit (i.e. not just a new version of
the same patch/commit), kindly add following tags
| Reported-by: kernel test robot <lkp@intel.com>
| Closes: https://lore.kernel.org/oe-kbuild-all/202406110704.R8AnGe0q-lkp@intel.com/

All errors (new ones prefixed by >>):

   In file included from drivers/acpi/glue.c:11:
>> include/linux/acpi_iort.h:53:19: error: static declaration of 'iort_pmsi_get_dev_id' follows non-static declaration
      53 | static inline int iort_pmsi_get_dev_id(struct device *dev, u32 *dev_id)
         |                   ^
   include/linux/acpi_iort.h:30:5: note: previous declaration is here
      30 | int iort_pmsi_get_dev_id(struct device *dev, u32 *dev_id);
         |     ^
   In file included from drivers/acpi/glue.c:19:
   In file included from include/linux/dma-mapping.h:11:
   In file included from include/linux/scatterlist.h:8:
   In file included from include/linux/mm.h:2253:
   include/linux/vmstat.h:514:36: warning: arithmetic between different enumeration types ('enum node_stat_item' and 'enum lru_list') [-Wenum-enum-conversion]
     514 |         return node_stat_name(NR_LRU_BASE + lru) + 3; // skip "nr_"
         |                               ~~~~~~~~~~~ ^ ~~~
   1 warning and 1 error generated.


vim +/iort_pmsi_get_dev_id +53 include/linux/acpi_iort.h

    31	
    32	#ifdef CONFIG_ACPI_IORT
    33	u32 iort_msi_map_id(struct device *dev, u32 id);
    34	struct irq_domain *iort_get_device_domain(struct device *dev, u32 id,
    35						  enum irq_domain_bus_token bus_token);
    36	void acpi_configure_pmsi_domain(struct device *dev);
    37	void iort_get_rmr_sids(struct fwnode_handle *iommu_fwnode,
    38			       struct list_head *head);
    39	void iort_put_rmr_sids(struct fwnode_handle *iommu_fwnode,
    40			       struct list_head *head);
    41	/* IOMMU interface */
    42	int iort_dma_get_ranges(struct device *dev, u64 *limit);
    43	int iort_iommu_configure_id(struct device *dev, const u32 *id_in);
    44	void iort_iommu_get_resv_regions(struct device *dev, struct list_head *head);
    45	phys_addr_t acpi_iort_dma_get_max_cpu_address(void);
    46	#else
    47	static inline u32 iort_msi_map_id(struct device *dev, u32 id)
    48	{ return id; }
    49	static inline struct irq_domain *iort_get_device_domain(
    50		struct device *dev, u32 id, enum irq_domain_bus_token bus_token)
    51	{ return NULL; }
    52	static inline void acpi_configure_pmsi_domain(struct device *dev) { }
  > 53	static inline int iort_pmsi_get_dev_id(struct device *dev, u32 *dev_id)
    54	{ return -ENODEV; }
    55	static inline
    56	void iort_get_rmr_sids(struct fwnode_handle *iommu_fwnode, struct list_head *head) { }
    57	static inline
    58	void iort_put_rmr_sids(struct fwnode_handle *iommu_fwnode, struct list_head *head) { }
    59	/* IOMMU interface */
    60	static inline int iort_dma_get_ranges(struct device *dev, u64 *limit)
    61	{ return -ENODEV; }
    62	static inline int iort_iommu_configure_id(struct device *dev, const u32 *id_in)
    63	{ return -ENODEV; }
    64	static inline
    65	void iort_iommu_get_resv_regions(struct device *dev, struct list_head *head)
    66	{ }
    67	

-- 
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki

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

only message in thread, other threads:[~2024-06-10 23:18 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-06-10 23:18 [tglx-devel:devmsi-arm 3/25] include/linux/acpi_iort.h:53:19: error: static declaration of 'iort_pmsi_get_dev_id' follows non-static declaration 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.