From: kernel test robot <lkp@intel.com>
To: Linus Walleij <linus.walleij@linaro.org>
Cc: oe-kbuild-all@lists.linux.dev,
Greg Kroah-Hartman <gregkh@linuxfoundation.org>,
Sasha Levin <sashal@kernel.org>
Subject: [linux-stable-rc:linux-6.3.y 2593/2805] arch/arm/mach-omap1/irq.c:221:18: error: implicit declaration of function 'irq_domain_add_legacy'
Date: Sun, 9 Jul 2023 22:51:33 +0800 [thread overview]
Message-ID: <202307092232.U06RY8d1-lkp@intel.com> (raw)
tree: https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux-stable-rc.git linux-6.3.y
head: c36188cdbe803adfeea94f8b4b1d2c5ebf1f0793
commit: 337771c7d078a130c6bc1bfe4878d04f67758a91 [2593/2805] ARM: omap1: Exorcise the legacy GPIO header
config: arm-randconfig-r023-20230709 (https://download.01.org/0day-ci/archive/20230709/202307092232.U06RY8d1-lkp@intel.com/config)
compiler: arm-linux-gnueabi-gcc (GCC) 12.3.0
reproduce: (https://download.01.org/0day-ci/archive/20230709/202307092232.U06RY8d1-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/202307092232.U06RY8d1-lkp@intel.com/
All errors (new ones prefixed by >>):
arch/arm/mach-omap1/irq.c: In function 'omap1_init_irq':
>> arch/arm/mach-omap1/irq.c:221:18: error: implicit declaration of function 'irq_domain_add_legacy' [-Werror=implicit-function-declaration]
221 | domain = irq_domain_add_legacy(NULL, nr_irqs, irq_base, 0,
| ^~~~~~~~~~~~~~~~~~~~~
>> arch/arm/mach-omap1/irq.c:222:41: error: 'irq_domain_simple_ops' undeclared (first use in this function)
222 | &irq_domain_simple_ops, NULL);
| ^~~~~~~~~~~~~~~~~~~~~
arch/arm/mach-omap1/irq.c:222:41: note: each undeclared identifier is reported only once for each function it appears in
>> arch/arm/mach-omap1/irq.c:250:30: error: implicit declaration of function 'irq_find_mapping' [-Werror=implicit-function-declaration]
250 | d = irq_get_irq_data(irq_find_mapping(domain, omap_l2_irq));
| ^~~~~~~~~~~~~~~~
cc1: some warnings being treated as errors
vim +/irq_domain_add_legacy +221 arch/arm/mach-omap1/irq.c
55b44774438959 arch/arm/mach-omap1/irq.c Tony Lindgren 2015-05-20 204
55b44774438959 arch/arm/mach-omap1/irq.c Tony Lindgren 2015-05-20 205 for (i = 0; i < irq_bank_count; i++) {
55b44774438959 arch/arm/mach-omap1/irq.c Tony Lindgren 2015-05-20 206 irq_banks[i].va = ioremap(irq_banks[i].base_reg, 0xff);
55b44774438959 arch/arm/mach-omap1/irq.c Tony Lindgren 2015-05-20 207 if (WARN_ON(!irq_banks[i].va))
55b44774438959 arch/arm/mach-omap1/irq.c Tony Lindgren 2015-05-20 208 return;
55b44774438959 arch/arm/mach-omap1/irq.c Tony Lindgren 2015-05-20 209 }
55b44774438959 arch/arm/mach-omap1/irq.c Tony Lindgren 2015-05-20 210
55b44774438959 arch/arm/mach-omap1/irq.c Tony Lindgren 2015-05-20 211 nr_irqs = irq_bank_count * 32;
55b44774438959 arch/arm/mach-omap1/irq.c Tony Lindgren 2015-05-20 212
55b44774438959 arch/arm/mach-omap1/irq.c Tony Lindgren 2015-05-20 213 irq_base = irq_alloc_descs(-1, 0, nr_irqs, 0);
55b44774438959 arch/arm/mach-omap1/irq.c Tony Lindgren 2015-05-20 214 if (irq_base < 0) {
55b44774438959 arch/arm/mach-omap1/irq.c Tony Lindgren 2015-05-20 215 pr_warn("Couldn't allocate IRQ numbers\n");
55b44774438959 arch/arm/mach-omap1/irq.c Tony Lindgren 2015-05-20 216 irq_base = 0;
55b44774438959 arch/arm/mach-omap1/irq.c Tony Lindgren 2015-05-20 217 }
8825acd7cc8a13 arch/arm/mach-omap1/irq.c Arnd Bergmann 2022-09-29 218 omap_l2_irq = irq_base;
685e2d08c54b1a arch/arm/mach-omap1/irq.c Tony Lindgren 2015-05-20 219 omap_l2_irq -= NR_IRQS_LEGACY;
55b44774438959 arch/arm/mach-omap1/irq.c Tony Lindgren 2015-05-20 220
55b44774438959 arch/arm/mach-omap1/irq.c Tony Lindgren 2015-05-20 @221 domain = irq_domain_add_legacy(NULL, nr_irqs, irq_base, 0,
55b44774438959 arch/arm/mach-omap1/irq.c Tony Lindgren 2015-05-20 @222 &irq_domain_simple_ops, NULL);
55b44774438959 arch/arm/mach-omap1/irq.c Tony Lindgren 2015-05-20 223
55b44774438959 arch/arm/mach-omap1/irq.c Tony Lindgren 2015-05-20 224 pr_info("Total of %lu interrupts in %i interrupt banks\n",
55b44774438959 arch/arm/mach-omap1/irq.c Tony Lindgren 2015-05-20 225 nr_irqs, irq_bank_count);
^1da177e4c3f41 arch/arm/mach-omap/irq.c Linus Torvalds 2005-04-16 226
^1da177e4c3f41 arch/arm/mach-omap/irq.c Linus Torvalds 2005-04-16 227 /* Mask and clear all interrupts */
^1da177e4c3f41 arch/arm/mach-omap/irq.c Linus Torvalds 2005-04-16 228 for (i = 0; i < irq_bank_count; i++) {
^1da177e4c3f41 arch/arm/mach-omap/irq.c Linus Torvalds 2005-04-16 229 irq_bank_writel(~0x0, i, IRQ_MIR_REG_OFFSET);
^1da177e4c3f41 arch/arm/mach-omap/irq.c Linus Torvalds 2005-04-16 230 irq_bank_writel(0x0, i, IRQ_ITR_REG_OFFSET);
^1da177e4c3f41 arch/arm/mach-omap/irq.c Linus Torvalds 2005-04-16 231 }
^1da177e4c3f41 arch/arm/mach-omap/irq.c Linus Torvalds 2005-04-16 232
^1da177e4c3f41 arch/arm/mach-omap/irq.c Linus Torvalds 2005-04-16 233 /* Clear any pending interrupts */
^1da177e4c3f41 arch/arm/mach-omap/irq.c Linus Torvalds 2005-04-16 234 irq_bank_writel(0x03, 0, IRQ_CONTROL_REG_OFFSET);
^1da177e4c3f41 arch/arm/mach-omap/irq.c Linus Torvalds 2005-04-16 235 irq_bank_writel(0x03, 1, IRQ_CONTROL_REG_OFFSET);
^1da177e4c3f41 arch/arm/mach-omap/irq.c Linus Torvalds 2005-04-16 236
^1da177e4c3f41 arch/arm/mach-omap/irq.c Linus Torvalds 2005-04-16 237 /* Install the interrupt handlers for each bank */
^1da177e4c3f41 arch/arm/mach-omap/irq.c Linus Torvalds 2005-04-16 238 for (i = 0; i < irq_bank_count; i++) {
^1da177e4c3f41 arch/arm/mach-omap/irq.c Linus Torvalds 2005-04-16 239 for (j = i * 32; j < (i + 1) * 32; j++) {
^1da177e4c3f41 arch/arm/mach-omap/irq.c Linus Torvalds 2005-04-16 240 int irq_trigger;
^1da177e4c3f41 arch/arm/mach-omap/irq.c Linus Torvalds 2005-04-16 241
^1da177e4c3f41 arch/arm/mach-omap/irq.c Linus Torvalds 2005-04-16 242 irq_trigger = irq_banks[i].trigger_map >> IRQ_BIT(j);
^1da177e4c3f41 arch/arm/mach-omap/irq.c Linus Torvalds 2005-04-16 243 omap_irq_set_cfg(j, 0, 0, irq_trigger);
e8d36d5dbb6a6e arch/arm/mach-omap1/irq.c Rob Herring 2015-07-27 244 irq_clear_status_flags(j, IRQ_NOREQUEST);
^1da177e4c3f41 arch/arm/mach-omap/irq.c Linus Torvalds 2005-04-16 245 }
55b44774438959 arch/arm/mach-omap1/irq.c Tony Lindgren 2015-05-20 246 omap_alloc_gc(irq_banks[i].va, irq_base + i * 32, 32);
^1da177e4c3f41 arch/arm/mach-omap/irq.c Linus Torvalds 2005-04-16 247 }
^1da177e4c3f41 arch/arm/mach-omap/irq.c Linus Torvalds 2005-04-16 248
^1da177e4c3f41 arch/arm/mach-omap/irq.c Linus Torvalds 2005-04-16 249 /* Unmask level 2 handler */
b694331cfb2ec3 arch/arm/mach-omap1/irq.c Tony Lindgren 2015-05-20 @250 d = irq_get_irq_data(irq_find_mapping(domain, omap_l2_irq));
:::::: The code at line 221 was first introduced by commit
:::::: 55b44774438959a957e717ecbdd9f2874b07ab31 ARM: OMAP1: Switch to use generic irqchip in preparation for sparse IRQ
:::::: TO: Tony Lindgren <tony@atomide.com>
:::::: CC: Tony Lindgren <tony@atomide.com>
--
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki
reply other threads:[~2023-07-09 14:51 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=202307092232.U06RY8d1-lkp@intel.com \
--to=lkp@intel.com \
--cc=gregkh@linuxfoundation.org \
--cc=linus.walleij@linaro.org \
--cc=oe-kbuild-all@lists.linux.dev \
--cc=sashal@kernel.org \
/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 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.