Received: by 2002:a05:6358:51dd:b0:131:369:b2a3 with SMTP id 29csp1208843rwl; Thu, 10 Aug 2023 07:59:29 -0700 (PDT) X-Google-Smtp-Source: AGHT+IGVhukaMXVmT2WMtNkrZoBS4nScjN+natYm3KWMwfwkvjSmef+SUJSDRHKeEg8sgBEfV5fp X-Received: by 2002:a17:906:3083:b0:99c:e3b6:eafe with SMTP id 3-20020a170906308300b0099ce3b6eafemr2286325ejv.64.1691679568932; Thu, 10 Aug 2023 07:59:28 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1691679568; cv=none; d=google.com; s=arc-20160816; b=n5vOt/SkSE2Pj2lCPd7w0Rm1h3QbvSbzrcDbADlyKtp8oAsk0b9wAdWjzHD+dzTeAv fqyjdmz/V2eqblJDmw39sDDToxFW8Vg4WH84oFmIu06/G9a32WPrtiGzx+phooPnW0js JJNDqCgwpLhPoM8V+gk8hwfXoeDBswKwe/Sl/bn/wZRtyi9m5MmbThiIEHoMOjBUnsXs VXm+IsXBjmNC2HmBbBtT0GD4V45F64wjTEg4kPWqI4JIAdcsNyFecIygLtBp+rWL/xnZ wsWp4Q47z5LIp5nuuijArMzaia9KcS6DIJ3iloyHkK37irJTZTt6tVl8xwgY37JcfK0q lr4g== 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 :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=V6VWBM8G0ZhoiOTDyfFJ9dI3ZlR28G2UVjj98SvG4OA=; fh=5fu+HXT9NjXmg4JVf+nAkFDJ8hYTpQGYCi24vewPFwk=; b=cjsZv8jyRQ1XHI400cPIfC9HN2LQD6x3zhxWCIdwLQWJY1+AqhYgGzCAKAoz6vISgR fYOhlEPzyRSTGQb5dWZi5bnM2UtLyON9b/lEpOxqeFGiiJjZMpm6YzJy36MVCvnrnaqX feK5Bn9qfTAnICCD8FV125omNLSAnCZPHCHxoUTKLZUWsGFLC91nqvRWRpEWwy3o6+L3 FtmecN5aVVJhYpDK/uSzGb0HWqr19H241F+Tu2AjI0CzrzSXY93M6U/TZgYXS+9UtKUn MUCj9aZvs9dG3x/bg3jBJRyzy8k88YfIpkqHPB82FJ8VVgKFblWbiofJ4sc0XZcHySq4 9u2A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=L7R74EBA; 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 mh20-20020a170906eb9400b00992e21b04aasi1786011ejb.720.2023.08.10.07.59.02; Thu, 10 Aug 2023 07:59:28 -0700 (PDT) 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=L7R74EBA; 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 S234751AbjHJOVR (ORCPT + 99 others); Thu, 10 Aug 2023 10:21:17 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:41750 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229890AbjHJOVP (ORCPT ); Thu, 10 Aug 2023 10:21:15 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [139.178.84.217]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id C2AD626BD; Thu, 10 Aug 2023 07:21:14 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id 6053C65D8E; Thu, 10 Aug 2023 14:21:14 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id B2378C433C7; Thu, 10 Aug 2023 14:21:07 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1691677273; bh=eMg6b9hkzab2TjJ02F2dWzegmP1PyYO6iwxCLd51D7g=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=L7R74EBA2R9WBLHGAWy2nljV13705Iy/m7NIJ2X2632QjPkYqBgi8h9HuikbipJHj TiBvkxqlZNgA6IUVAtWVNsupcb+BfJmQKoE7clkXhdohH+f293R7UXxR64DPQOarXF 5D+AINqTp8fo+95gfX2HEAkY+/BuNfKyIsBYlWOf16iUh9OyeZE3wIjD0yJUAwBaSa xo5AT+Is9KC9/LJ1AXOnWX0OhUww/zZPuPwRmAMvppnIAHIeim1I0l3UYwPZiUhoMY wAWMO+N2VGUGp6GMc/btPL38UKiZ91eudUJnkwRJdTFVOzmo+H25YuaSP8fOhYOfZD lvJ/uDzaDGVRg== From: Arnd Bergmann To: Andrew Morton , linux-kernel@vger.kernel.org Cc: Arnd Bergmann , Catalin Marinas , Palmer Dabbelt , Guo Ren , Alexander Gordeev , Russell King , Will Deacon , Michael Ellerman , Nicholas Piggin , Christophe Leroy , Paul Walmsley , Palmer Dabbelt , Albert Ou , Heiko Carstens , Vasily Gorbik , Christian Borntraeger , Sven Schnelle , Thomas Gleixner , Ingo Molnar , Borislav Petkov , Dave Hansen , x86@kernel.org, "H. Peter Anvin" , linux-arm-kernel@lists.infradead.org, linux-csky@vger.kernel.org, linuxppc-dev@lists.ozlabs.org, linux-riscv@lists.infradead.org, linux-s390@vger.kernel.org Subject: [PATCH 02/17] [RESEND] irq_work: consolidate arch_irq_work_raise prototypes Date: Thu, 10 Aug 2023 16:19:20 +0200 Message-Id: <20230810141947.1236730-3-arnd@kernel.org> X-Mailer: git-send-email 2.39.2 In-Reply-To: <20230810141947.1236730-1-arnd@kernel.org> References: <20230810141947.1236730-1-arnd@kernel.org> 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: X-Mailing-List: linux-kernel@vger.kernel.org From: Arnd Bergmann The prototype was hidden on x86, which causes a warning: kernel/irq_work.c:72:13: error: no previous prototype for 'arch_irq_work_raise' [-Werror=missing-prototypes] Fix this by providing it in only one place that is always visible. Acked-by: Catalin Marinas Acked-by: Palmer Dabbelt Acked-by: Guo Ren Reviewed-by: Alexander Gordeev Signed-off-by: Arnd Bergmann --- arch/arm/include/asm/irq_work.h | 2 -- arch/arm64/include/asm/irq_work.h | 2 -- arch/csky/include/asm/irq_work.h | 2 +- arch/powerpc/include/asm/irq_work.h | 1 - arch/riscv/include/asm/irq_work.h | 2 +- arch/s390/include/asm/irq_work.h | 2 -- arch/x86/include/asm/irq_work.h | 1 - include/linux/irq_work.h | 3 +++ 8 files changed, 5 insertions(+), 10 deletions(-) diff --git a/arch/arm/include/asm/irq_work.h b/arch/arm/include/asm/irq_work.h index 3149e4dc1b540..8895999834cc0 100644 --- a/arch/arm/include/asm/irq_work.h +++ b/arch/arm/include/asm/irq_work.h @@ -9,6 +9,4 @@ static inline bool arch_irq_work_has_interrupt(void) return is_smp(); } -extern void arch_irq_work_raise(void); - #endif /* _ASM_ARM_IRQ_WORK_H */ diff --git a/arch/arm64/include/asm/irq_work.h b/arch/arm64/include/asm/irq_work.h index 81bbfa3a035bd..a1020285ea750 100644 --- a/arch/arm64/include/asm/irq_work.h +++ b/arch/arm64/include/asm/irq_work.h @@ -2,8 +2,6 @@ #ifndef __ASM_IRQ_WORK_H #define __ASM_IRQ_WORK_H -extern void arch_irq_work_raise(void); - static inline bool arch_irq_work_has_interrupt(void) { return true; diff --git a/arch/csky/include/asm/irq_work.h b/arch/csky/include/asm/irq_work.h index 33aaf39d6f94f..d39fcc1f5395f 100644 --- a/arch/csky/include/asm/irq_work.h +++ b/arch/csky/include/asm/irq_work.h @@ -7,5 +7,5 @@ static inline bool arch_irq_work_has_interrupt(void) { return true; } -extern void arch_irq_work_raise(void); + #endif /* __ASM_CSKY_IRQ_WORK_H */ diff --git a/arch/powerpc/include/asm/irq_work.h b/arch/powerpc/include/asm/irq_work.h index b8b0be8f1a07e..c6d3078bd8c3b 100644 --- a/arch/powerpc/include/asm/irq_work.h +++ b/arch/powerpc/include/asm/irq_work.h @@ -6,6 +6,5 @@ static inline bool arch_irq_work_has_interrupt(void) { return true; } -extern void arch_irq_work_raise(void); #endif /* _ASM_POWERPC_IRQ_WORK_H */ diff --git a/arch/riscv/include/asm/irq_work.h b/arch/riscv/include/asm/irq_work.h index b53891964ae03..b27a4d64fc6a0 100644 --- a/arch/riscv/include/asm/irq_work.h +++ b/arch/riscv/include/asm/irq_work.h @@ -6,5 +6,5 @@ static inline bool arch_irq_work_has_interrupt(void) { return IS_ENABLED(CONFIG_SMP); } -extern void arch_irq_work_raise(void); + #endif /* _ASM_RISCV_IRQ_WORK_H */ diff --git a/arch/s390/include/asm/irq_work.h b/arch/s390/include/asm/irq_work.h index 603783766d0ab..f00c9f610d5a8 100644 --- a/arch/s390/include/asm/irq_work.h +++ b/arch/s390/include/asm/irq_work.h @@ -7,6 +7,4 @@ static inline bool arch_irq_work_has_interrupt(void) return true; } -void arch_irq_work_raise(void); - #endif /* _ASM_S390_IRQ_WORK_H */ diff --git a/arch/x86/include/asm/irq_work.h b/arch/x86/include/asm/irq_work.h index 800ffce0db29e..6b4d36c951655 100644 --- a/arch/x86/include/asm/irq_work.h +++ b/arch/x86/include/asm/irq_work.h @@ -9,7 +9,6 @@ static inline bool arch_irq_work_has_interrupt(void) { return boot_cpu_has(X86_FEATURE_APIC); } -extern void arch_irq_work_raise(void); #else static inline bool arch_irq_work_has_interrupt(void) { diff --git a/include/linux/irq_work.h b/include/linux/irq_work.h index 8cd11a2232605..136f2980cba30 100644 --- a/include/linux/irq_work.h +++ b/include/linux/irq_work.h @@ -66,6 +66,9 @@ void irq_work_sync(struct irq_work *work); void irq_work_run(void); bool irq_work_needs_cpu(void); void irq_work_single(void *arg); + +void arch_irq_work_raise(void); + #else static inline bool irq_work_needs_cpu(void) { return false; } static inline void irq_work_run(void) { } -- 2.39.2