From patchwork Tue May 16 20:02:31 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Arnd Bergmann X-Patchwork-Id: 94909 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:b0ea:0:b0:3b6:4342:cba0 with SMTP id b10csp677398vqo; Tue, 16 May 2023 13:15:58 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ4p+sKeRTYJ+hYrAgyLs0LOaLzscVxhTQLUmTiebiOC9muc5ZHzsgURvGa5mQSXAScCaL8J X-Received: by 2002:a05:6a00:2313:b0:641:3bf8:6514 with SMTP id h19-20020a056a00231300b006413bf86514mr53697589pfh.10.1684268157731; Tue, 16 May 2023 13:15:57 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1684268157; cv=none; d=google.com; s=arc-20160816; b=XdHfvOmYlZmbdpAjhQpo7R0SAKnRAsb/9lBhhsqQjc6WtCKo0pGyNzFLEJaMHVztMr +Y7ZIiBLfMYAigAEWTNOLYYOzLjnKDGaaTO4wr3thj3vIbRxlnoxQP+cm0ZObC6AHamb 5pU9fLCQ6eSVboeMJLqsKkrSBM30GokQS89CUo7TMQWIeT99l/gMpoHix7pt/kNDrsBq mnfe0QexNaJmTI+/BPuFp9dfSkbLPR5y4rTB4WgxUyhATlSvK4SdzVkuyriJ/rk9Tj4A veIrBI4XYM8R1nCr00ziHfyGFSYRCxaXFi/5SEp0cqeyJc0ASPte1TexVruF5hrM3Oe0 t4kw== 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 Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id z11-20020a6552cb000000b005307ce6fd07si13479107pgp.850.2023.05.16.13.15.21; Tue, 16 May 2023 13:15:57 -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 S230092AbjEPUEE (ORCPT + 99 others); Tue, 16 May 2023 16:04:04 -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 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 X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1766083167626881222?= X-GMAIL-MSGID: =?utf-8?q?1766083167626881222?= 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 Acked-by: Palmer Dabbelt Reviewed-by: Alexander Gordeev Acked-by: Guo Ren Acked-by: Catalin Marinas --- 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) { }