From patchwork Tue May 16 16:06:42 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Arnd Bergmann X-Patchwork-Id: 13243383 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 9A004C77B7A for ; Tue, 16 May 2023 16:08:33 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:References:In-Reply-To: Message-Id:Date:Subject:Cc:To:From:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=ttsQvUVo5+beVSofaheKVIkJIKVM5pp2XQUSWAprcqE=; b=oL+7lZXzKKZFlk ARK3uBGMKIOz4/u/2TqaOMk1n11jfJt8n1CQzZ3/gXmfwmutOexy0ivRm48FLC7+XIk40YNA6De+k 0SD80UU3Gqm0/me1x5Znfd9CYEraI7k/WBu/ElXb7IjKi41uB5AKtGhn2+s60FHev4W77QeqA3+1i K2r5pDtMtGJWOZGOS+ogzXBtZUxfDQ+QRbpjc0VaC+uoBcKeiGsXtsiJs7acazQjdylgqNDQ/RpWP 50i3sfU9xBqtswx8778lNERD4G2Ka6wxODmxVQ0XfQHFNee2K1vrLgaeQHa7/A2MDxWcwRmCHVFSb pprAddEqeeIiUdtK1q3w==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.96 #2 (Red Hat Linux)) id 1pyxDi-006PLF-1s; Tue, 16 May 2023 16:08:14 +0000 Received: from dfw.source.kernel.org ([139.178.84.217]) by bombadil.infradead.org with esmtps (Exim 4.96 #2 (Red Hat Linux)) id 1pyxDS-006P9x-0i for linux-arm-kernel@lists.infradead.org; Tue, 16 May 2023 16:07:59 +0000 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 C0CDA63BF8; Tue, 16 May 2023 16:07:57 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id A1A42C433A4; Tue, 16 May 2023 16:07:53 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1684253277; bh=BD0ipDsRhl90CAL+14HC8Lct0XsReJC1pDRKPHzBMaw=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=n9U9QQ13YMvuuS3MR4tKUlFVWqrHShPb4YxuV4c9DePCQTYQuOI9FXxxmPVS7D8+J AsU/0T96sFcz8/dxoRYlEtc/Hw/hn4/bX0XBR8dNp0G+DXSdKqORbThsY4OyulDyaG dWM4BDDe/k+lyVgyOFJUYtYySqOvk9NphJ8PdC5dgyV0qkHPIXBCV9shrATK+OPB8W UMmN9syxC8AbMWkt2gEI7nIO0lvMdlD5fnrq00MbFabkq9nbKtO6V2DLsqKvN/yId/ +/AkrzNCnISp28rRVsnvzJxB2c90G88oG/Xinuca3ToNwts5JQyHeKKDkxiPpMI+bi 95EtkbG24LWqg== From: Arnd Bergmann To: Catalin Marinas , Will Deacon Cc: Arnd Bergmann , Ard Biesheuvel , Mark Rutland , Marc Zyngier , Oliver Upton , James Morse , Suzuki K Poulose , Zenghui Yu , Anshuman Khandual , Kees Cook , Suren Baghdasaryan , linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, linux-efi@vger.kernel.org, kvmarm@lists.linux.dev Subject: [PATCH 15/15] arm64: add alt_cb_patch_nops prototype Date: Tue, 16 May 2023 18:06:42 +0200 Message-Id: <20230516160642.523862-16-arnd@kernel.org> X-Mailer: git-send-email 2.39.2 In-Reply-To: <20230516160642.523862-1-arnd@kernel.org> References: <20230516160642.523862-1-arnd@kernel.org> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20230516_090758_305039_D5BD95AA X-CRM114-Status: GOOD ( 13.08 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org From: Arnd Bergmann alt_cb_patch_nops() is called through an inline asm macro, so it does not need a prototype for the caller, but adding it avoids this W=1 build warning: arch/arm64/kernel/alternative.c:295:14: error: no previous prototype for 'alt_cb_patch_nops' [-Werror=missing-prototypes] Signed-off-by: Arnd Bergmann --- arch/arm64/include/asm/alternative.h | 3 +++ 1 file changed, 3 insertions(+) diff --git a/arch/arm64/include/asm/alternative.h b/arch/arm64/include/asm/alternative.h index a38b92e11811..55da3fedcfe2 100644 --- a/arch/arm64/include/asm/alternative.h +++ b/arch/arm64/include/asm/alternative.h @@ -31,5 +31,8 @@ void apply_alternatives_module(void *start, size_t length); static inline void apply_alternatives_module(void *start, size_t length) { } #endif +void alt_cb_patch_nops(struct alt_instr *alt, __le32 *origptr, + __le32 *updptr, int nr_inst); + #endif /* __ASSEMBLY__ */ #endif /* __ASM_ALTERNATIVE_H */