llvm.lists.linux.dev archive mirror
 help / color / mirror / Atom feed
From: kernel test robot <lkp@intel.com>
To: Thomas Gleixner <tglx@linutronix.de>
Cc: llvm@lists.linux.dev, oe-kbuild-all@lists.linux.dev,
	Anna-Maria Behnsen <anna-maria@linutronix.de>,
	Shivamurthy Shastri <shivamurthy.shastri@linutronix.de>
Subject: [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
Date: Tue, 11 Jun 2024 07:18:14 +0800	[thread overview]
Message-ID: <202406110704.R8AnGe0q-lkp@intel.com> (raw)

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

                 reply	other threads:[~2024-06-10 23:18 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

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=202406110704.R8AnGe0q-lkp@intel.com \
    --to=lkp@intel.com \
    --cc=anna-maria@linutronix.de \
    --cc=llvm@lists.linux.dev \
    --cc=oe-kbuild-all@lists.linux.dev \
    --cc=shivamurthy.shastri@linutronix.de \
    --cc=tglx@linutronix.de \
    /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).