From patchwork Tue May 16 16:06:29 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Arnd Bergmann X-Patchwork-Id: 13243371 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 108DBC77B75 for ; Tue, 16 May 2023 16:07:30 +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=qa58v9BkTywv6Bk6EKKhYzwwmyVNLXXaPT8nuBLvTZw=; b=gC5jtnAvTXZbCc lDzv+to37CxoV6Cu5bKxyhi9ieRMl8qNlN8MT6uJJyOG9EmYEEz/8LSltNJjPGPk9BdFo6U0VvmUW NJ7cvnl3nQO48rlYC18IPmzl/gtT/T52UDQ61OuvbgGteMy+F4ZjA2NkyU0efucBdoNsM8yUqLG8O 2HjNsp0ZIKuNE+bor9SkbYLVbxjY+1CkLdQe/WdX8/KRpo6EuvMB4rUpbfTY9O2Txm4IOU6ywlW8F aFw/EXsHsRZdPuTAmiUCqoOy0+k+TK8875gvtVJg3swKX3FqLmVowTRsnVXF8DD+7J2K0x2oOLeGq P1ZVA6L65HXx5q2Zp2XQ==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.96 #2 (Red Hat Linux)) id 1pyxCf-006Ocj-0S; Tue, 16 May 2023 16:07:09 +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 1pyxCb-006OaO-1k for linux-arm-kernel@lists.infradead.org; Tue, 16 May 2023 16:07:06 +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 215D863BED; Tue, 16 May 2023 16:07:05 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 08D8CC433A8; Tue, 16 May 2023 16:07:00 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1684253224; bh=zqB0t4DDPA88DPl56qCnn/B7aGxFkn0Y+6dWVn1tZq4=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=uzED3MDYa+zRvydDUY5COe4o/Xb/voIkyoht5i0bOCAOtFsxgd+3vIaWBOhp5PLz8 lMAX24iP0+kK2gm5TkYh1XFkeEqEvltopbJX/w1yHYPBS78PCGiOuMF63PFQ8UB7dy D/DffvS8p+49Qp9LYljB6QqoSQN0x8uHRu/bfTUofH9RLq8ayT60FCQf/l3Ro7YS5F G3wnwfaB9v7fTBXvfg5qE7XPBVfEGxuXVMsN8VZ9oHu+yJcK3pHJYJgtxmkpHaxihF OpbIs/t+R8s40SHXc2Wusw71dWT2zcff8hVIESQPVIGmb4qdMTrq4fDxJkl6nP/eGq Z/ozEBwlC7dTQ== 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 02/15] arm64: add scs_patch_vmlinux prototype Date: Tue, 16 May 2023 18:06:29 +0200 Message-Id: <20230516160642.523862-3-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_090705_637197_9085E59A X-CRM114-Status: GOOD ( 12.60 ) 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 scs_patch_vmlinux() is only called from assembler code, so there is no prototype, but adding one avoids this warning: arch/arm64/kernel/patch-scs.c:254:24: error: no previous prototype for function 'scs_patch_vmlinux' [-Werror,-Wmissing-prototypes] Signed-off-by: Arnd Bergmann --- arch/arm64/include/asm/scs.h | 1 + 1 file changed, 1 insertion(+) diff --git a/arch/arm64/include/asm/scs.h b/arch/arm64/include/asm/scs.h index 13df982a0808..3fdae5fe3142 100644 --- a/arch/arm64/include/asm/scs.h +++ b/arch/arm64/include/asm/scs.h @@ -73,6 +73,7 @@ static inline void dynamic_scs_init(void) {} #endif int scs_patch(const u8 eh_frame[], int size); +asmlinkage void scs_patch_vmlinux(void); #endif /* __ASSEMBLY __ */