Message ID | 20221215164109.761427-1-arnd@kernel.org |
---|---|
State | New |
Headers |
Return-Path: <linux-kernel-owner@vger.kernel.org> Delivered-To: ouuuleilei@gmail.com Received: by 2002:adf:e747:0:0:0:0:0 with SMTP id c7csp477160wrn; Thu, 15 Dec 2022 08:56:11 -0800 (PST) X-Google-Smtp-Source: AA0mqf5NqBuMWBFUotJ/fCA9ors/RIrAUlOHryL2krBksNItGh22YnHyyxc6jFQBZlI2Wd/eBpi6 X-Received: by 2002:a17:907:a50d:b0:7c1:6344:84a with SMTP id vr13-20020a170907a50d00b007c16344084amr28374303ejc.5.1671123371692; Thu, 15 Dec 2022 08:56:11 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1671123371; cv=none; d=google.com; s=arc-20160816; b=zfDKb3xKONJa7pqLW6EE4TzQBsHj+l2azUbt2g7r6Qm/jiJUK7iq3hhK8Nj3PTKjvS huXTXQEy0vdvARvOtTetzla+kcKHdC/3WcVnJ/z9ii4RUp4XN6H502ksGVlLZqXiypVD rDLRwACz0CmYpfUbXyou0wM9WitoFKfzDQIURGjrRJAlduAHdZRLQJQUeIZglrDLJt3J jVkg8/NBa6SvaHbcGtIdQB8YjEF5wWqJsxkMhzOULyre5NBI4VVv0U5TkJcKalLnh+VP NdE/I02VzjyHN6apB0Dl4U7+HDFxTqXbiH+YMtkJhaVz7BHRYFGFOAVmaecYS5157PyK BzCA== 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=HzmVgVEIlyfIC0sM2a0QKn8i/A/25v4HjIchdcEVTks=; b=WtAKxuqU4MSUIVrW3t0TGkwQkfJWEfo6jFqFQWEafhxtt8KiOhO8Bs+i+5e8dcxrtV lDAu4rCDa/qglpknMQRO12qm80faiE5IpNQ3X17l1pAaY8Ymg/zc9jpkI/7UH+ppEvxT L3DONsyC3heSyKoH8MCxy2XeJsW27EyGMjQhnlQenybvHmVlRGQrng5uxS/M7EyOvh6/ NOuFKbYjnFlkB7bjuT6dcbPW4pTxRLOYFIqdaW5Yo7lCxUQnVawHjVL5C8typ/TuCQv7 2EfNzcd7ZJGXNXrJiFagSCRFsYKPzFk6l+k689cFyj1UxLPEPpr/tyZi9J+TVVZsioD3 eGVg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=BzFfFEie; 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: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id cs16-20020a170906dc9000b007adef1e3ba7si15250188ejc.587.2022.12.15.08.55.48; Thu, 15 Dec 2022 08:56:11 -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=BzFfFEie; 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 S230166AbiLOQlV (ORCPT <rfc822;jeantsuru.cumc.mandola@gmail.com> + 99 others); Thu, 15 Dec 2022 11:41:21 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:37462 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230159AbiLOQlS (ORCPT <rfc822;linux-kernel@vger.kernel.org>); Thu, 15 Dec 2022 11:41:18 -0500 Received: from ams.source.kernel.org (ams.source.kernel.org [IPv6:2604:1380:4601:e00::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 089FBDF12 for <linux-kernel@vger.kernel.org>; Thu, 15 Dec 2022 08:41:18 -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 ams.source.kernel.org (Postfix) with ESMTPS id BA8B4B81BA1 for <linux-kernel@vger.kernel.org>; Thu, 15 Dec 2022 16:41:16 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 10FA5C433F1; Thu, 15 Dec 2022 16:41:13 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1671122475; bh=B56jZ4GwXNxhvlUoyX2XvXatc24AC7epFPyOb5O+MA0=; h=From:To:Cc:Subject:Date:From; b=BzFfFEieMR+SMt6S/dei6SFTQVj8/YXpa6OIj53vpHCw38xgKhrP78DVIJYNHyDoX AHOZkO3zIQKppPi1AOIG5YIDfaXIphT4RisfC314Rklmtqnd7NJEIqjFm7nzp5PVV7 dGqmKpeP0N2oQT88VvhzC6LbdU4sd6JDbADMum8/ntm6apFawFX27zX9dusuoqimq+ Ui0oEHFPFoj1qkWHMxfTLmT+JJZoTk6u78tjJW0J8HIYGyp2nUcy/L/tDfqt03QJQh 3HEuJBOqXmlyBfcoJktdRb8BJECMRw/fxc5w5KgPAjh3m6JCJpttCI0NldPL3TfmE3 MK0436U3Xd3fw== From: Arnd Bergmann <arnd@kernel.org> To: Thomas Gleixner <tglx@linutronix.de>, Marc Zyngier <maz@kernel.org>, Geert Uytterhoeven <geert+renesas@glider.be> Cc: Arnd Bergmann <arnd@arndb.de>, Frank Li <Frank.Li@nxp.com>, linux-kernel@vger.kernel.org Subject: [PATCH] irqchip: build IMX_MU_MSI only on ARM Date: Thu, 15 Dec 2022 17:40:41 +0100 Message-Id: <20221215164109.761427-1-arnd@kernel.org> X-Mailer: git-send-email 2.35.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-7.1 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 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: <linux-kernel.vger.kernel.org> X-Mailing-List: linux-kernel@vger.kernel.org X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1752299860808192232?= X-GMAIL-MSGID: =?utf-8?q?1752299860808192232?= |
Series |
irqchip: build IMX_MU_MSI only on ARM
|
|
Commit Message
Arnd Bergmann
Dec. 15, 2022, 4:40 p.m. UTC
From: Arnd Bergmann <arnd@arndb.de> compile-testing IMX_MU_MSI on x86 without PCI_MSI support results in a build failure: arch/x86/kernel/hpet.c:520:46: error: 'msi_alloc_info_t' {aka 'struct irq_alloc_info'} has no member named 'hwirq' 520 | irq_domain_set_info(domain, virq, arg->hwirq, info->chip, NULL, | ^~ arch/x86/kernel/hpet.c:521:49: error: 'msi_alloc_info_t' {aka 'struct irq_alloc_info'} has no member named 'data' 521 | handle_edge_irq, arg->data, "edge"); | ^~ arch/x86/kernel/hpet.c: In function 'hpet_create_irq_domain': arch/x86/kernel/hpet.c:550:13: error: 'x86_vector_domain' undeclared (first use in this function) 550 | if (x86_vector_domain == NULL) | ^~~~~~~~~~~~~~~~~ arch/x86/kernel/hpet.c:550:13: note: each undeclared identifier is reported only once for each function it appears in arch/x86/kernel/hpet.c: In function 'hpet_assign_irq': arch/x86/kernel/hpet.c:600:9: error: implicit declaration of function 'init_irq_alloc_info' [-Werror=implicit-function-declaration] 600 | init_irq_alloc_info(&info, NULL); Tighten the dependency further to only allow compile testing on Arm. This could be refined further to allow certain x86 configs. Fixes: 6c9f7434159b ("irqchip: IMX_MU_MSI should depend on ARCH_MXC") Signed-off-by: Arnd Bergmann <arnd@arndb.de> --- drivers/irqchip/Kconfig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
Comments
Hi Arnd, On Thu, Dec 15, 2022 at 5:41 PM Arnd Bergmann <arnd@kernel.org> wrote: > From: Arnd Bergmann <arnd@arndb.de> > > compile-testing IMX_MU_MSI on x86 without PCI_MSI support results > in a build failure: > > arch/x86/kernel/hpet.c:520:46: error: 'msi_alloc_info_t' {aka 'struct irq_alloc_info'} has no member named 'hwirq' > 520 | irq_domain_set_info(domain, virq, arg->hwirq, info->chip, NULL, > | ^~ > arch/x86/kernel/hpet.c:521:49: error: 'msi_alloc_info_t' {aka 'struct irq_alloc_info'} has no member named 'data' > 521 | handle_edge_irq, arg->data, "edge"); > | ^~ > arch/x86/kernel/hpet.c: In function 'hpet_create_irq_domain': > arch/x86/kernel/hpet.c:550:13: error: 'x86_vector_domain' undeclared (first use in this function) > 550 | if (x86_vector_domain == NULL) > | ^~~~~~~~~~~~~~~~~ > arch/x86/kernel/hpet.c:550:13: note: each undeclared identifier is reported only once for each function it appears in > arch/x86/kernel/hpet.c: In function 'hpet_assign_irq': > arch/x86/kernel/hpet.c:600:9: error: implicit declaration of function 'init_irq_alloc_info' [-Werror=implicit-function-declaration] > 600 | init_irq_alloc_info(&info, NULL); > > Tighten the dependency further to only allow compile testing on Arm. > This could be refined further to allow certain x86 configs. Thanks for your patch! > Fixes: 6c9f7434159b ("irqchip: IMX_MU_MSI should depend on ARCH_MXC") This is not the commit that introduced the issue. Fixes: 70afdab904d2d1e6 ("irqchip: Add IMX MU MSI controller driver") > Signed-off-by: Arnd Bergmann <arnd@arndb.de> > --- > drivers/irqchip/Kconfig | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/drivers/irqchip/Kconfig b/drivers/irqchip/Kconfig > index caa952c40ff9..4ebf4d566e6f 100644 > --- a/drivers/irqchip/Kconfig > +++ b/drivers/irqchip/Kconfig > @@ -484,7 +484,7 @@ config IMX_INTMUX > config IMX_MU_MSI > tristate "i.MX MU used as MSI controller" > depends on OF && HAS_IOMEM > - depends on ARCH_MXC || COMPILE_TEST > + depends on ARCH_MXC || ((ARM || ARM64) && COMPILE_TEST) I think adding a separate line depends on ARM || ARM64 is easier to read (and easier to extend). > default m if ARCH_MXC > select IRQ_DOMAIN > select IRQ_DOMAIN_HIERARCHY Gr{oetje,eeting}s, Geert -- Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- geert@linux-m68k.org In personal conversations with technical people, I call myself a hacker. But when I'm talking to journalists I just say "programmer" or something like that. -- Linus Torvalds
diff --git a/drivers/irqchip/Kconfig b/drivers/irqchip/Kconfig index caa952c40ff9..4ebf4d566e6f 100644 --- a/drivers/irqchip/Kconfig +++ b/drivers/irqchip/Kconfig @@ -484,7 +484,7 @@ config IMX_INTMUX config IMX_MU_MSI tristate "i.MX MU used as MSI controller" depends on OF && HAS_IOMEM - depends on ARCH_MXC || COMPILE_TEST + depends on ARCH_MXC || ((ARM || ARM64) && COMPILE_TEST) default m if ARCH_MXC select IRQ_DOMAIN select IRQ_DOMAIN_HIERARCHY