Received: by 2002:a05:7412:8d09:b0:fa:4c10:6cad with SMTP id bj9csp183124rdb; Mon, 15 Jan 2024 17:36:53 -0800 (PST) X-Google-Smtp-Source: AGHT+IHGefSYjNWeFwXQDrMBz3dN1svi6G0lEf9YFPcv5inZqEnaN6ML7s5bkegUZYacYvnqL5hL X-Received: by 2002:a05:6512:2253:b0:50e:c82b:3637 with SMTP id i19-20020a056512225300b0050ec82b3637mr1643523lfu.74.1705369013087; Mon, 15 Jan 2024 17:36:53 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1705369013; cv=none; d=google.com; s=arc-20160816; b=NmHPQZpYcYCdZdQXvwClC/za/BfpXGuAeDtwvyxnNICgcTvSgPEWvHZQOYRx+SnOBC 2Gn4qQWZ3bcCggpa+LlhAeA9Frf8a3egM1p5LK85yhcZjjJnomGWbwuBg+KES61sGkEi IDXsgEirei+tYwR4NVHwjnqubitGp5hkxZ3rHBrYBqGUYH4GCuY/r5hbGJeJ8iE9BtI7 Bk7j6CipjEQLXoRLEG5qRUSzOwcdViQKA/INntcObIiclPY7+eEXntDpGLQKt0zJoZjg q77MJ2lrGfcOuh6/+K6IfkwRIndXtZh3AIGzEn4beS++PpKf9YrQQqh5XnG1BUo2YGqf vRJg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:message-id:date:subject:cc:to :from:dkim-signature; bh=4x3Dusdn17OpWGcdBD/ukAcPRk8zDRbj0C/3PAl49SU=; fh=BAioFdyqkO/k6wDeHj0SyaKtlfkWcQvwF0UROt3ZSqU=; b=ydKWcEsHu9gfpLMcmpLptsMNT0F9B9WUBpuhIdIBWJa4olcbEb7DxizYX8KD53N5s8 RsyvSDc8jk6IqtfFjHOpQAMA6Evte+9pswncK4dba9lNvnQPDIeFfQar1vA29kqwF+/Y FYAiv+SDEjKmluZMI8bq8u7yL2Mh3cFAaShwG4m1olGxq/XV5Fx/fyJmD55axZWVBvwk q3E4jjt9vRPiCBdi/mvbE4raTxpUj2eI+I9nLVG4gnWROJYA5MGxp6pJla0dZrLOR3Ls qBazKo4zbfiRn3TwWpHz//W2wVC8Y5/kOytJ6VNp5tKN5RSnHxBGqmZ8UQYkXC+ur8mc Ap3g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=W+mNVQ2q; spf=pass (google.com: domain of linux-kernel+bounces-26865-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-26865-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [2604:1380:4601:e00::3]) by mx.google.com with ESMTPS id k17-20020a170906159100b00a28e6fd9461si2013343ejd.647.2024.01.15.17.36.53 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 15 Jan 2024 17:36:53 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-26865-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) client-ip=2604:1380:4601:e00::3; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=W+mNVQ2q; spf=pass (google.com: domain of linux-kernel+bounces-26865-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-26865-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by am.mirrors.kernel.org (Postfix) with ESMTPS id C23EF1F23743 for ; Tue, 16 Jan 2024 01:36:52 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 5223A28699; Tue, 16 Jan 2024 01:07:35 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="W+mNVQ2q" Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 7C86C20B1E; Tue, 16 Jan 2024 01:07:34 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id D77D5C433C7; Tue, 16 Jan 2024 01:07:31 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1705367254; bh=TfDrsInvUzA+wma/7RiDh79sAMkHkv8eHX1xyaL6l1Q=; h=From:To:Cc:Subject:Date:From; b=W+mNVQ2q/+GOj4ZrOXC4r0iMcYozdtKWlyHO3V3z6XBtnhOlHHxJiRdfLgpG+2UrC ehpIBNLiH2Eid+XXR+zeKO6TXtfBst/rL4TxRD7pRh8cn4vqZw6HNVoYPUhsQFXPfJ 7YLW0KCUvp4B0c9JbUj0H1X8fzgWHZN2k/eF7nDAvYi9IrX+zPg5p5p6eOU+Jwpbhv ybNXDWudNJ5HQPHPTEszaiOS0pRxWa+hmp1eKQf7mdr1+JQg1iRtSfPGxqOmUdyTUL k4bEXMRfxwYk2IzHlTmjXQGC9vbODqc91TgvZ/M0PsG1tevs9/j0QQ7ZiOB+A+W+Rx wb+YP1UsgSeaA== From: Sasha Levin To: linux-kernel@vger.kernel.org, stable@vger.kernel.org Cc: Arnd Bergmann , Alexander Gordeev , Catalin Marinas , Palmer Dabbelt , Guo Ren , Sasha Levin , will@kernel.org, mpe@ellerman.id.au, paul.walmsley@sifive.com, palmer@dabbelt.com, aou@eecs.berkeley.edu, hca@linux.ibm.com, gor@linux.ibm.com, tglx@linutronix.de, mingo@redhat.com, bp@alien8.de, dave.hansen@linux.intel.com, x86@kernel.org, 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 AUTOSEL 5.15 01/11] arch: consolidate arch_irq_work_raise prototypes Date: Mon, 15 Jan 2024 20:07:01 -0500 Message-ID: <20240116010729.219219-1-sashal@kernel.org> X-Mailer: git-send-email 2.43.0 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-stable: review X-Patchwork-Hint: Ignore X-stable-base: Linux 5.15.147 Content-Transfer-Encoding: 8bit From: Arnd Bergmann [ Upstream commit 64bac5ea17d527872121adddfee869c7a0618f8f ] The prototype was hidden in an #ifdef on x86, which causes a warning: kernel/irq_work.c:72:13: error: no previous prototype for 'arch_irq_work_raise' [-Werror=missing-prototypes] Some architectures have a working prototype, while others don't. Fix this by providing it in only one place that is always visible. Reviewed-by: Alexander Gordeev Acked-by: Catalin Marinas Acked-by: Palmer Dabbelt Acked-by: Guo Ren Signed-off-by: Arnd Bergmann Signed-off-by: Sasha Levin --- 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 +++ 7 files changed, 5 insertions(+), 8 deletions(-) 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 ec2a47a81e42..ee5f9120c4d7 100644 --- a/include/linux/irq_work.h +++ b/include/linux/irq_work.h @@ -58,6 +58,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.43.0