Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp1538906rwd; Tue, 16 May 2023 19:54:09 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ5l3jpOuEpTA5cZ1zd99Cs9jBh4k+77zfR7rXtZxAeI8YNFeG1TF1sVMcNTnOsLDuAVvLCl X-Received: by 2002:a05:6a21:7895:b0:103:cb74:ca09 with SMTP id bf21-20020a056a21789500b00103cb74ca09mr25453137pzc.22.1684292049294; Tue, 16 May 2023 19:54:09 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1684292049; cv=none; d=google.com; s=arc-20160816; b=KQh0mqn03iiCSq7kON+RDmwmRazm07U6JFI1jX2+5zmYiegh+o4BI0XErNhkU/lw7z vvJje2uoDCGnFGPZ7jUCGsXSj7FDmCUqh4NcAjQNXnAw4xEYyIBQJkOybk2ijn822yX1 YB5DXA/u9QloTeF4u4J+l5lywmFOt+nCV6bbv5j8SH6Lwmwmf6Um1yI+gwfEFS21l7yW q20Cesqu1zEwRbv9LtnWZA9eLcWg4TUexoV6F/fvAN2bBsSMCNv3fsLmCH5VFmzT/ZaM f3TAZk6f2vlmvrCVXVQ/QwFr9TFJ0YYy2KoAPfGnfsHjfdYggCXGbPevxdEXqtauseaY 44Tw== 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:to:from:cc:in-reply-to:subject:date:dkim-signature; bh=Oik51JQPg85IaF6uQeKdpJKlei3j8iZDbRMg5rmmh7k=; b=i94mudqCICVYjINmXv2yW946BBy60VNpEsOCkX90gkIoYBBi9TMDQlrLSYcXrkHt0k vO7FLXODTELMPG8lC/CYTR0au+dSFTQ4fNTeS2n07/voimrezTwoYYQzDWWkiACHPAxB n+ELp/nX3ZpVhf0YAsj4JQqr9JnAnpOvGwbUuR1o67iIhbD6pxjzWQoAV4TbUaP5IZAN d6UdkFbSdgWZducJolR/0gmYZ9vO1fO5zJSrdy0EefZcCPQWW0achBBx410+p0FciDMn neD4O5wcp9oT6Try5Jf6msbFswPNAYFeOgZJLGNZhHWjZemKP7H4G0q3lXTm0F18vjfb PxHw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@dabbelt-com.20221208.gappssmtp.com header.s=20221208 header.b=4691vsRS; 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 Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id e30-20020a63745e000000b0053075167160si14485025pgn.329.2023.05.16.19.53.57; Tue, 16 May 2023 19:54:09 -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=@dabbelt-com.20221208.gappssmtp.com header.s=20221208 header.b=4691vsRS; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232108AbjEQC2K (ORCPT + 99 others); Tue, 16 May 2023 22:28:10 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:51214 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232099AbjEQC2D (ORCPT ); Tue, 16 May 2023 22:28:03 -0400 Received: from mail-pl1-x633.google.com (mail-pl1-x633.google.com [IPv6:2607:f8b0:4864:20::633]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 1C7892108 for ; Tue, 16 May 2023 19:27:35 -0700 (PDT) Received: by mail-pl1-x633.google.com with SMTP id d9443c01a7336-1aaef97652fso2798095ad.0 for ; Tue, 16 May 2023 19:27:35 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=dabbelt-com.20221208.gappssmtp.com; s=20221208; t=1684290453; x=1686882453; h=content-transfer-encoding:mime-version:message-id:to:from:cc :in-reply-to:subject:date:from:to:cc:subject:date:message-id :reply-to; bh=Oik51JQPg85IaF6uQeKdpJKlei3j8iZDbRMg5rmmh7k=; b=4691vsRStUZ7cla3scMb5+DYblLYZHI2qzQdQ7ryAOhVme9mLgXdr/vtIhW4wKJdja xQzJkktyr0YEtUZ4hTIVD+WSm5WaAk3m3job4GFjtqz1TDVyAEXrAmWJQ2ihY8ehxgus effhTMZSad7it1ApK89y5nZKghAvnfBCNDw7Q0/+b4+tJQk1z2QIRypYA+kQl9Cxz82X EcxIVKlDJFuQmlSggPt7kgKUmNO88M7rNxFgPDb+9Gg1ZZizRuxD0tvQspPJBStTRBAT XrUXxw3poKeqi8kQCFkCHGbFN9bngnXvpnGiGAdgdt9/VKXaDF2vKhlrJ2e0RwJsyC9B nLnQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1684290453; x=1686882453; h=content-transfer-encoding:mime-version:message-id:to:from:cc :in-reply-to:subject:date:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to; bh=Oik51JQPg85IaF6uQeKdpJKlei3j8iZDbRMg5rmmh7k=; b=Niu4F9HUMqY417Bd2CxUUpmxqTIZeB/Q/GNuSQqKmoW8Rw9kZoeLvZqrYkiWSJxg9+ Z+VNTK5ELSWko8UJr2yIaeitVi/9aj5SHy5JKaEej7u+QLute4fjEWAXbdyj1XBeLf2w ht+jji2gOIYRAsa3g/ErO3NEM8P0E67uRfsDiqrkh6O7T9Wc8v4YWXLKyyxi0tvwpni7 UoDYi7U9y9cQ0duZhjhtkJI1GWXwYSXiJ2dYvH5l6R54w6tUXi3UpgXZCQVHTq7LT85B n664RqmrDbq1jF/AA5r8RLHiXcxp2MV3rLGAWNY+EX1VypfgMHOPWl7n2Nfg8ixQL5Tw YS/w== X-Gm-Message-State: AC+VfDxhbO1H8NNZZTQ8WkpBgbdEo2t7ApP+rsOadJZYdKq3X7btOyTa 6kqe5HjP6bBNIeIiFvym7I0ayQ== X-Received: by 2002:a17:903:1103:b0:1ab:d89:5ef6 with SMTP id n3-20020a170903110300b001ab0d895ef6mr48820751plh.68.1684290452671; Tue, 16 May 2023 19:27:32 -0700 (PDT) Received: from localhost ([50.221.140.188]) by smtp.gmail.com with ESMTPSA id u14-20020a170902e80e00b001a6388ce38bsm16192479plg.240.2023.05.16.19.27.32 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 16 May 2023 19:27:32 -0700 (PDT) Date: Tue, 16 May 2023 19:27:32 -0700 (PDT) X-Google-Original-Date: Tue, 16 May 2023 19:27:05 PDT (-0700) Subject: Re: [PATCH] irq_work: consolidate arch_irq_work_raise prototypes In-Reply-To: <20230516200341.553413-1-arnd@kernel.org> CC: mingo@kernel.org, Arnd Bergmann , linux@armlinux.org.uk, Catalin Marinas , Will Deacon , guoren@kernel.org, mpe@ellerman.id.au, christophe.leroy@csgroup.eu, Paul Walmsley , aou@eecs.berkeley.edu, hca@linux.ibm.com, tglx@linutronix.de, mingo@redhat.com, bp@alien8.de, 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 From: Palmer Dabbelt To: arnd@kernel.org Message-ID: Mime-Version: 1.0 (MHng) Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,RCVD_IN_DNSWL_NONE,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 On Tue, 16 May 2023 13:02:31 PDT (-0700), arnd@kernel.org wrote: > 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 +- Acked-by: Palmer Dabbelt > 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) { }