[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <202509110402.OHHgtxRA-lkp@intel.com>
Date: Thu, 11 Sep 2025 04:38:15 +0800
From: kernel test robot <lkp@...el.com>
To: "Herve Codina (Schneider Electric)" <herve.codina@...tlin.com>,
Wolfram Sang <wsa-dev@...g-engineering.com>,
Hoan Tran <hoan@...amperecomputing.com>,
Linus Walleij <linus.walleij@...aro.org>,
Bartosz Golaszewski <brgl@...ev.pl>, Rob Herring <robh@...nel.org>,
Krzysztof Kozlowski <krzk@...nel.org>,
Conor Dooley <conor+dt@...nel.org>,
Geert Uytterhoeven <geert+renesas@...der.be>,
Magnus Damm <magnus.damm@...il.com>,
Saravana Kannan <saravanak@...gle.com>,
Serge Semin <fancer.lancer@...il.com>
Cc: llvm@...ts.linux.dev, oe-kbuild-all@...ts.linux.dev,
Phil Edworthy <phil.edworthy@...esas.com>,
linux-gpio@...r.kernel.org, devicetree@...r.kernel.org,
linux-kernel@...r.kernel.org, linux-renesas-soc@...r.kernel.org,
Pascal Eberhard <pascal.eberhard@...com>,
Miquel Raynal <miquel.raynal@...tlin.com>,
Thomas Petazzoni <thomas.petazzoni@...tlin.com>
Subject: Re: [PATCH v2 3/8] of/irq: Introduce for_each_of_imap_item
Hi Herve,
kernel test robot noticed the following build warnings:
[auto build test WARNING on robh/for-next]
[also build test WARNING on tip/irq/core linus/master v6.17-rc5 next-20250910]
[cannot apply to geert-renesas-devel/next]
[If your patch is applied to the wrong git tree, kindly drop us a note.
And when submitting patch, we suggest to use '--base' as documented in
https://git-scm.com/docs/git-format-patch#_base_tree_information]
url: https://github.com/intel-lab-lkp/linux/commits/Herve-Codina-Schneider-Electric/ARM-dts-r9a06g032-Add-GPIO-controllers/20250909-200642
base: https://git.kernel.org/pub/scm/linux/kernel/git/robh/linux.git for-next
patch link: https://lore.kernel.org/r/20250909120041.154459-4-herve.codina%40bootlin.com
patch subject: [PATCH v2 3/8] of/irq: Introduce for_each_of_imap_item
config: x86_64-allnoconfig (https://download.01.org/0day-ci/archive/20250911/202509110402.OHHgtxRA-lkp@intel.com/config)
compiler: clang version 20.1.8 (https://github.com/llvm/llvm-project 87f0227cb60147a26a1eeb4fb06e3b505e9c7261)
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20250911/202509110402.OHHgtxRA-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@...el.com>
| Closes: https://lore.kernel.org/oe-kbuild-all/202509110402.OHHgtxRA-lkp@intel.com/
All warnings (new ones prefixed by >>):
In file included from drivers/base/platform.c:15:
>> include/linux/of_irq.h:123:29: warning: no previous prototype for function 'of_imap_parser_one' [-Wmissing-prototypes]
123 | extern struct of_imap_item *of_imap_parser_one(struct of_imap_parser *parser,
| ^
include/linux/of_irq.h:123:8: note: declare 'static' if the function is not intended to be used outside of this translation unit
123 | extern struct of_imap_item *of_imap_parser_one(struct of_imap_parser *parser,
| ^
1 warning generated.
vim +/of_imap_parser_one +123 include/linux/of_irq.h
58
59 extern int of_irq_parse_raw(const __be32 *addr, struct of_phandle_args *out_irq);
60 extern unsigned int irq_create_of_mapping(struct of_phandle_args *irq_data);
61 extern int of_irq_to_resource(struct device_node *dev, int index,
62 struct resource *r);
63
64 #ifdef CONFIG_OF_IRQ
65 extern void of_irq_init(const struct of_device_id *matches);
66 extern int of_irq_parse_one(struct device_node *device, int index,
67 struct of_phandle_args *out_irq);
68 extern int of_irq_count(struct device_node *dev);
69 extern int of_irq_get(struct device_node *dev, int index);
70 extern int of_irq_get_byname(struct device_node *dev, const char *name);
71 extern int of_irq_to_resource_table(struct device_node *dev,
72 struct resource *res, int nr_irqs);
73 extern struct device_node *of_irq_find_parent(struct device_node *child);
74 extern int of_imap_parser_init(struct of_imap_parser *parser,
75 struct device_node *node,
76 struct of_imap_item *item);
77 extern struct of_imap_item *of_imap_parser_one(struct of_imap_parser *parser,
78 struct of_imap_item *item);
79 extern struct irq_domain *of_msi_get_domain(struct device *dev,
80 const struct device_node *np,
81 enum irq_domain_bus_token token);
82 extern struct irq_domain *of_msi_map_get_device_domain(struct device *dev,
83 u32 id,
84 u32 bus_token);
85 extern void of_msi_configure(struct device *dev, const struct device_node *np);
86 extern u32 of_msi_xlate(struct device *dev, struct device_node **msi_np, u32 id_in);
87 #else
88 static inline void of_irq_init(const struct of_device_id *matches)
89 {
90 }
91 static inline int of_irq_parse_one(struct device_node *device, int index,
92 struct of_phandle_args *out_irq)
93 {
94 return -EINVAL;
95 }
96 static inline int of_irq_count(struct device_node *dev)
97 {
98 return 0;
99 }
100 static inline int of_irq_get(struct device_node *dev, int index)
101 {
102 return 0;
103 }
104 static inline int of_irq_get_byname(struct device_node *dev, const char *name)
105 {
106 return 0;
107 }
108 static inline int of_irq_to_resource_table(struct device_node *dev,
109 struct resource *res, int nr_irqs)
110 {
111 return 0;
112 }
113 static inline void *of_irq_find_parent(struct device_node *child)
114 {
115 return NULL;
116 }
117 static inline int of_imap_parser_init(struct of_imap_parser *parser,
118 struct device_node *node,
119 struct of_imap_item *item)
120 {
121 return -ENOSYS;
122 }
> 123 extern struct of_imap_item *of_imap_parser_one(struct of_imap_parser *parser,
124 struct of_imap_item *item)
125 {
126 return NULL;
127 }
128 static inline struct irq_domain *of_msi_get_domain(struct device *dev,
129 struct device_node *np,
130 enum irq_domain_bus_token token)
131 {
132 return NULL;
133 }
134 static inline struct irq_domain *of_msi_map_get_device_domain(struct device *dev,
135 u32 id, u32 bus_token)
136 {
137 return NULL;
138 }
139 static inline void of_msi_configure(struct device *dev, struct device_node *np)
140 {
141 }
142 static inline u32 of_msi_xlate(struct device *dev, struct device_node **msi_np, u32 id_in)
143 {
144 return id_in;
145 }
146 #endif
147
--
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki
Powered by blists - more mailing lists