Received: by 2002:a05:6a10:413:0:0:0:0 with SMTP id 19csp574151pxp; Wed, 9 Mar 2022 08:25:07 -0800 (PST) X-Google-Smtp-Source: ABdhPJx9/aBRwJ4J4vKhkA/5Usc0M8Xb/L0Blr+nC4qf63lnYl+F0HN01bA2E6T20lqydYQOIYrA X-Received: by 2002:a17:907:72c1:b0:6da:b844:3dd5 with SMTP id du1-20020a17090772c100b006dab8443dd5mr518085ejc.244.1646843107266; Wed, 09 Mar 2022 08:25:07 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1646843107; cv=none; d=google.com; s=arc-20160816; b=KXHS8qjG/id8GSxHTNNygyfHwXWnfGW9VNt0Dpf4GC0k/BRuxoHRolxyWjrXMQAQh5 p1touDqu+rfKYDrAS6R8kfABO95Fsv2LUDSYdP+CwYPcBXDr9MJ7n5V/n988pOC+/hoK qf1lDUbV4KRIxXQRQI+Tf9pJ39TWW1zMwSKbknuGvgOU/GgEUcUCtkbZGR8aQoXcVWgp BNdZcrHhWaDJcZm3A6zufdb1zG6XJdfhnd7Bpbtl2HTgEQIAlkC/GiWOjGfXOB3CkQb6 ACNc9AoLAP2WLvHQ3nr/PD7P3u6dSOarKMZQD3Gwwi248wHAueTvPXO+11i197FG6ZA4 fIcA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from:dkim-signature; bh=Lt1UnSduEGPiXZ6NNKQcvLXGhMm9B3+j/htzoBebkas=; b=0KAbJtd1wbISnRaIBINfrH0cJYSUQk1xUiS+u9kE7r2VSjzcyfeOt+LS6hnjECsCLA /ePwD/Og+0UgeeRLa5sxl5qg26o7xbnduMGlYmmGEqx6Al8MLyZTYIn6Spo8WTFSkqgp fzyT7KKfbi2654Kyr4U2vqEjwQ4oVq92Sdww8YXh9nFE7AjYzU0FCR//hNNzhocfeW69 N1B3w+Zp1hA+RnIRw5JkwibrVqBctivhK0WQwQ5GcXM4qK0zMkmE1NHR29cakcxWdqVe M5cDYPK+SACVSJ87ThVka55RqS3vmST2sLWybgpNdVL/t9KM88YbSIzgCvt+5mS3v57s BfqQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=S1k0sVmK; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id qw23-20020a1709066a1700b006d0cc8f7418si1395436ejc.35.2022.03.09.08.24.38; Wed, 09 Mar 2022 08:25:07 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=S1k0sVmK; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233601AbiCIOm5 (ORCPT + 99 others); Wed, 9 Mar 2022 09:42:57 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:60298 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231469AbiCIOmz (ORCPT ); Wed, 9 Mar 2022 09:42:55 -0500 Received: from sin.source.kernel.org (sin.source.kernel.org [IPv6:2604:1380:40e1:4800::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 08DF517DBB7 for ; Wed, 9 Mar 2022 06:41:56 -0800 (PST) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sin.source.kernel.org (Postfix) with ESMTPS id C5994CE1F08 for ; Wed, 9 Mar 2022 14:41:54 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 6B581C340E8; Wed, 9 Mar 2022 14:41:50 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1646836913; bh=GFoS6bPRq7lzudSutkAFe2brQro/Mh9slsno9R8y1vM=; h=From:To:Cc:Subject:Date:From; b=S1k0sVmKPBTacVmbx8BTwfhZZcpPblrE6SH1a/uxzCxYq14PNXGrpZQEyM2z+ymhi +nbO79UQkBDUch83CsQfxb2ami/ek/9xKZnn/TnXFSYZB5wVtum/cij0qGU7FKQpjl SrkMDT3vi6Tj916Ae2C0l6h/qk9isYlEu/u34CjyY41QCvTOIOAfdlwtkwzevpnjWC ILfnx0IhHs4mNWFrOGiaATGwlNaggIHKFh+nLIkAWdePKFb0aqOksidIivwgzD5Bfl VWRqpI59/MvApv85jdudgz5r2lXpoNhSMvRP+NEUX7fca6UW229qHJSEjaq/9mcvlO E8DfKyRzRz/9Q== From: Arnd Bergmann To: Russell King Cc: Arnd Bergmann , kernel test robot , Thomas Gleixner , Marc Zyngier , Linus Walleij , Ard Biesheuvel , Andrew Morton , Mark Rutland , Vladimir Murzin , linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org Subject: [PATCH 1/2] ARM: fix building NOMMU ARMv4/v5 kernels Date: Wed, 9 Mar 2022 15:40:47 +0100 Message-Id: <20220309144138.360482-1-arnd@kernel.org> X-Mailer: git-send-email 2.29.2 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-7.6 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_HI, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Arnd Bergmann The removal of the old-style irq entry broke obscure NOMMU configurations on machines that have an MMU: ld.lld: error: undefined symbol: generic_handle_arch_irq referenced by kernel/entry-armv.o:(__irq_svc) in archive arch/arm/built-in.a A follow-up patch to convert nvic to the generic_handle_arch_irq() could have fixed this by removing the Kconfig conditional, but did it differently. Change the Kconfig logic so ARM machines now unconditionally enable the feature. I have also submitted a patch to remove support for the configurations that broke, but fixing the regression first is a trivial and correct change. Reported-by: kernel test robot Fixes: 54f481a2308e ("ARM: remove old-style irq entry") Fixes: 52d240871760 ("irqchip: nvic: Use GENERIC_IRQ_MULTI_HANDLER") Signed-off-by: Arnd Bergmann --- This patch should go into the arm/devel-stable branch that has the arm-irq-and-vmap-stacks-for-rmk patches from Ard --- arch/arm/Kconfig | 2 +- drivers/irqchip/Kconfig | 1 - 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/arch/arm/Kconfig b/arch/arm/Kconfig index e9975ddd5034..5f0b40bab4fb 100644 --- a/arch/arm/Kconfig +++ b/arch/arm/Kconfig @@ -60,7 +60,7 @@ config ARM select GENERIC_CPU_AUTOPROBE select GENERIC_EARLY_IOREMAP select GENERIC_IDLE_POLL_SETUP - select GENERIC_IRQ_MULTI_HANDLER if MMU + select GENERIC_IRQ_MULTI_HANDLER select GENERIC_IRQ_PROBE select GENERIC_IRQ_SHOW select GENERIC_IRQ_SHOW_LEVEL diff --git a/drivers/irqchip/Kconfig b/drivers/irqchip/Kconfig index 488eaa14d3a7..7038957f4a77 100644 --- a/drivers/irqchip/Kconfig +++ b/drivers/irqchip/Kconfig @@ -58,7 +58,6 @@ config ARM_NVIC bool select IRQ_DOMAIN_HIERARCHY select GENERIC_IRQ_CHIP - select GENERIC_IRQ_MULTI_HANDLER config ARM_VIC bool -- 2.29.2