Received: by 2002:a05:7412:8d09:b0:fa:4c10:6cad with SMTP id bj9csp181065rdb; Mon, 15 Jan 2024 17:31:07 -0800 (PST) X-Google-Smtp-Source: AGHT+IHNt5EHpcFYo2Bnzy8/xrYzYj4bwZwczDhyiHwcOS1pfGxftwythdQiWU3JqYdFAQx7r2zH X-Received: by 2002:a05:622a:1aa9:b0:429:d353:ffa2 with SMTP id s41-20020a05622a1aa900b00429d353ffa2mr8098346qtc.16.1705368667654; Mon, 15 Jan 2024 17:31:07 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1705368667; cv=none; d=google.com; s=arc-20160816; b=V5XlOk2PKC4kBBoXMBt8Xs4ITpoVWb010FbOCCAuAYa5O3Jh8RZIGowpFjs1OBevWr DG3eEc5IDpiHY7HGr5fEM/cgyKBlLyQBUtp02qCdhD+y8tt6px815cVTmdTsWS8y9lPF 0b/vFyuv1lEf+hl7BRQ2I79nkNXdvJAlTf4riRC4FtzcYgz6mANGNMKSJl1DgMsIgti7 li+sRydTck5hYsQ4HdFgfKMB6lWJkhpNLOg8NtBnEso8jhfH5R+wC1dRoSm+RgztAPoT gGEERpaXgOKT/yrymcT6fqlhSYlBvFVnyMV5eTxv0O2DyefG+BLNCRqhtOV4ib4laj+S RpxA== 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=XgegbfiJdBL7U26/ylcrfFuDxx2JSdMItoZU4mFohvE=; fh=rB8o4vJ1AZmSrFZOB3Vrw5ifXjkHOs2GsR9BmcMfWLs=; b=CbQISrLKw/kWuv6LZUAJCk3ajJGplu6rDQY9sgclp4MW4T0h5a7NOt/SQwTHa8IPGI 5bzsKKMmsJ9l4NuvjjB0tpH1aTLkENENK4/Oso0t6uyAVYg1PKkOn5B3hWg5uApUz2C7 wxsAJQsHxkKzR2aRhNbP56snZe5eJ0Qyq4gyfD0Z3D8cCUOgUaUDFtQ8/lgXFHJKNCZa oHbN+lNztjgJP2ph2E/YGfT3ZAsrU2Gbo/7NuOgtwvXCfumYq2OhVBkHbQ7LEIcUWq22 TV3S5yWxaib1HhipSpEiC7hOITHXedgNiF/Q+rnj6wf3HMKzwUOqnYTKLgR7R/7jtsuo jBvw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=eYwYkqcp; spf=pass (google.com: domain of linux-kernel+bounces-26851-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-26851-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [147.75.199.223]) by mx.google.com with ESMTPS id p9-20020a05622a048900b00429a5ba9953si9025347qtx.663.2024.01.15.17.31.07 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 15 Jan 2024 17:31:07 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-26851-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) client-ip=147.75.199.223; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=eYwYkqcp; spf=pass (google.com: domain of linux-kernel+bounces-26851-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-26851-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 ny.mirrors.kernel.org (Postfix) with ESMTPS id 54CFC1C2297D for ; Tue, 16 Jan 2024 01:31:07 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 536EA20B09; Tue, 16 Jan 2024 01:06:48 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="eYwYkqcp" 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 795EA208DD; Tue, 16 Jan 2024 01:06:47 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id BA122C433F1; Tue, 16 Jan 2024 01:06:44 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1705367207; bh=4Rgd6pj6ZzHj+h/R371GlQqWUydY+bynAeaxfKNSS8w=; h=From:To:Cc:Subject:Date:From; b=eYwYkqcpJZIKdV6TrNlSEcfnGSR4djZyuzFUVCWe/94NowvwuhMH6cGndv+qXAE3z IQMPuDJQpxItE0kNEbBClcIw4752kGOsckGC3Kkjp3qrcUBh9EuviRUBWFnJ9fEHkN 2YaHOB04U/FWAjNcuSpo2UqcPYYfjJBeeG2kidc/w3u/6pVF8H4NWUyBiC1r0DqvSN uSvoKQM7hue/x1mtjYA9qW55kBYOmSa05qwGlUQhZZpb/GTzwWVbmVi65yK0cQEP3A MZn5r0/M4KDedv8H/scKnpPGlqHIbLN5p+hEPu7Cmz1Du4gHSOaWlm76muE5sS3K1q Irs6LJMxx4arA== 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 , linux@armlinux.org.uk, 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 6.1 01/14] arch: consolidate arch_irq_work_raise prototypes Date: Mon, 15 Jan 2024 20:06:03 -0500 Message-ID: <20240116010642.218876-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 6.1.73 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/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.43.0