From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mga06.intel.com (mga06b.intel.com [134.134.136.31]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id DE5F233D9 for ; Sun, 9 Jul 2023 14:51:53 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1688914313; x=1720450313; h=date:from:to:cc:subject:message-id:mime-version; bh=tOeqG0UGFhOu7RoQm3L79/CTvI0HJMCNVi270xeMGcs=; b=Iwir0bcVsLb8/QEokbY7YqovEhOkgRM2PEwpXuh28V4x2Pk8AfGu8wix TdU9TxazrPMOhhCQt1rVL9usp4JSLqXhUa1i/GRiPwhHvK7HT4WmuMRje JwitUr0/DChsDkK1AZKyfSxM2urX7h9GgyQxMs7/kxq5e49TJVncn8jQ2 vcwzrfUlMob7d/w2ewKjMd2njMQ5qmu9vRAM+KwwlfUUWy2P5C5Leoei8 IqUJSaFxhaKhCH61TpSi/QcaemVWglFhi2Dcfk4IggqEqxj5STEM10T8A V3lw8EHLdtvSEdSuNDehT9bnJu3gSDdiA4u8ysRCoFSCLlnPRuqmxHmKZ w==; X-IronPort-AV: E=McAfee;i="6600,9927,10766"; a="427863009" X-IronPort-AV: E=Sophos;i="6.01,192,1684825200"; d="scan'208";a="427863009" Received: from fmsmga004.fm.intel.com ([10.253.24.48]) by orsmga104.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 09 Jul 2023 07:51:50 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6600,9927,10766"; a="790526934" X-IronPort-AV: E=Sophos;i="6.01,192,1684825200"; d="scan'208";a="790526934" Received: from lkp-server01.sh.intel.com (HELO c544d7fc5005) ([10.239.97.150]) by fmsmga004.fm.intel.com with ESMTP; 09 Jul 2023 07:51:48 -0700 Received: from kbuild by c544d7fc5005 with local (Exim 4.96) (envelope-from ) id 1qIVlL-0003Fw-2n; Sun, 09 Jul 2023 14:51:47 +0000 Date: Sun, 9 Jul 2023 22:51:33 +0800 From: kernel test robot To: Linus Walleij Cc: oe-kbuild-all@lists.linux.dev, Greg Kroah-Hartman , Sasha Levin 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' Message-ID: <202307092232.U06RY8d1-lkp@intel.com> Precedence: bulk X-Mailing-List: oe-kbuild-all@lists.linux.dev List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline 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 | 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 :::::: CC: Tony Lindgren -- 0-DAY CI Kernel Test Service https://github.com/intel/lkp-tests/wiki