Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp1192721rwd; Tue, 16 May 2023 13:14:34 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ5M55S0CxmmlA+E44slDChawjMcXdOt163xVgn1uapopBYAHC0X5ICs0xtzgHGXe8QrvJs4 X-Received: by 2002:a05:6a20:6a2a:b0:f4:d4a8:9c82 with SMTP id p42-20020a056a206a2a00b000f4d4a89c82mr43858607pzk.47.1684268074606; Tue, 16 May 2023 13:14:34 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1684268074; cv=none; d=google.com; s=arc-20160816; b=IsGIcS1berOaooJotT+cJeM2FWBIex4EiEtq7Vk344eHmhGjapjuU9/+45x34wsltI Ib/kZdeIiDUojcI6NNQ4dAbVZCz03YkTlUDm148Cakb7lVmTeA3Euo2HtwlquUVCsq7O 5EEfX3H7qNIGyN+bVFYmStBlEkvw7XHYCwDBvTOYE9DtmNJANe5Hus22TGJmn+XC0dAa DbzUuonDPd7LVyszK1lYqwTiZ2vL0YoEfcPgiwm6d5yJtI/r00r3oWt/45jv5SC2Pk0x DIMGiRIO9lDstUW+Twt5YdxaA6zTExbZ6TZt/jN4CS2RdQnNUZb2kmyNtcVt+Hmje/7+ N6mA== 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=mNKSs/dsOphDtKAQsaEmguZgZxtUKtiJi33xcOXD2dw=; b=mefwNpSBJb15b73uwrrOGaAUtUOokjSdJr+joy7bSSm8vWO1+O+9fPqhCZiZChLdSr IJrmHZDJYnwwBXR2j9RWHZdn+Q+r3YetJbCjwjdP/kLr/oy5gcxjmqr01wazK5BzNmtW QOHhF23y8J/9B2LbCpoLd/ojK/tpb3Q/yyg6vL89MQAXgfMAVkObcNbVZQ98GWg4Rxjb CUZJsM0vEQN37ozHMNxpKZy5HGFGrtUbnZmCTJTAz4BnkTjCanMqU9TRRTDf6WVyWJK1 o9p+82+H44kX0ACWSSWl58BKY+Ly/gG5fc6Za2f66EW1MYiuy+KJNL5NrqSkm0aD/0si U14w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=s98Y7KQQ; 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 lt3-20020a17090b354300b00251e16303f2si198507pjb.86.2023.05.16.13.14.21; Tue, 16 May 2023 13:14:34 -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=s98Y7KQQ; 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 S230062AbjEPUED (ORCPT + 99 others); Tue, 16 May 2023 16:04:03 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:53548 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230050AbjEPUEC (ORCPT ); Tue, 16 May 2023 16:04:02 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [IPv6:2604:1380:4641:c500::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 605B66EA6; Tue, 16 May 2023 13:03:53 -0700 (PDT) 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 dfw.source.kernel.org (Postfix) with ESMTPS id C574263297; Tue, 16 May 2023 20:03:52 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id D7543C433D2; Tue, 16 May 2023 20:03:47 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1684267432; bh=IBUq0YcMljnyZhB2wJxVNSnFrVQQUd7H+bkGKtC45kU=; h=From:To:Cc:Subject:Date:From; b=s98Y7KQQjV446N34ClP52dJ3bMcEazV0ZdMQzoV2DXbPiMRARfFf4FjNG3MWHkyHZ 8AYoOcW2/aRiaOfeDlucPmMPN9aStUxZjukaTS26EF+meqNOl0OUyQ1O6wlzOxImq6 B/LNbszFqSNgjoeCKyKCfqt0uJvTA5CMaMsvNR6jtacdBVjHB68lvbwbIhnWAdXK1/ lYyCdRs8t4rQoEHo66QNTItB4PBbY0A8Qhz5jbcWWFRXAZ1U+VszfbSaYy4u+zmlwe YMcByiOFPnkTFIL59f7AV8KpwLG5Lblp9L8FA/j6o/bm7Ay0VUYHfUBIo8habKY5gH htPYjVTzIpzUA== From: Arnd Bergmann To: Ingo Molnar Cc: Arnd Bergmann , Russell King , Catalin Marinas , Will Deacon , Guo Ren , Michael Ellerman , Christophe Leroy , Paul Walmsley , Albert Ou , Heiko Carstens , Thomas Gleixner , Ingo Molnar , Borislav Petkov , x86@kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, linux-csky@vger.kernel.org, linuxppc-dev@lists.ozlabs.org, linux-riscv@lists.infradead.org, linux-s390@vger.kernel.org Subject: [PATCH] irq_work: consolidate arch_irq_work_raise prototypes Date: Tue, 16 May 2023 22:02:31 +0200 Message-Id: <20230516200341.553413-1-arnd@kernel.org> X-Mailer: git-send-email 2.39.2 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-4.4 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_MED, 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 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. 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 3149e4dc1b54..8895999834cc 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 81bbfa3a035b..a1020285ea75 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 33aaf39d6f94..d39fcc1f5395 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 b8b0be8f1a07..c6d3078bd8c3 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 b53891964ae0..b27a4d64fc6a 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 603783766d0a..f00c9f610d5a 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 800ffce0db29..6b4d36c95165 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 8cd11a223260..136f2980cba3 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