Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp912104rwd; Tue, 16 May 2023 09:09:56 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ4/YsB/R94Qt/QVSO+3DmibJ/SrI7CIGo1FiR1hfpvm/GZ+9yEJpHqYjHeZg/Qj3jeQNgbI X-Received: by 2002:a05:6870:3741:b0:192:c427:1d89 with SMTP id a1-20020a056870374100b00192c4271d89mr19054187oak.9.1684253396328; Tue, 16 May 2023 09:09:56 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1684253396; cv=none; d=google.com; s=arc-20160816; b=utS7aA7PNiffrBWaacg+4b05rB9qKzMx1gocCCLewFcqc3lRCA1DAr+UkNytfIMoP4 u/PlEw/pTHHW/6sBdj3Aa0D7i3ScniR4foeK0rsFKH89H/Fgq5X/JHpH25CAP32/IAV0 UDT6uO9eVwMSUcPhQTYd2oAsaKRLjwPk30W6ACKYXCkd5SuryR+PQXBkI7YRicpnVQ4G l+h9rjybgordTH87zYEzD1ERhzxz/Jt439Rw29WbxIAQzxRlNHRB10izH2U7Hks7P4h9 fs+6CHhtSYs1hRlJHYP8FoNLPA1RKGBIp4dEjCk0Ikda8WfzfYhrWeBIt04Ziw2DCErE b58w== 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 :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=O1kxU0dRN0kEn0+NfJ2WSuJFlc7Ilck8QyUGWc8aSH0=; b=dbAOdWNOgoXAL7qPlp2TbJBJIpD+gWi6x3Wl35DBSFOrum5d+RtfhPgmZg0QA7h20h GXT34IOJ1AXWzLInVU0fA5PjnOjloQSZnOn62MjsfQJGGdujo3B8gd6XZx84KuCup/vf NaIvX/JTC6E6NJJipo7Goo+p9RnK8VRs0/7YtU85o8IMDxPP5c7KziGvAi3/ITWaaqLJ YKnHWBDBf2HTj3xQr0EJLqRZfS8WMSZTBHq3qowzMN0FyBYE0kw8o+P3V69N7pd67s71 ZzoTbNQvFWlHXDwZzy1d/O8Qgmh6/liCLUSep8hepn6PaD9HLYu4WL1rijXq5BIiZEns QtNA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=uzED3MDY; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id a12-20020a056870b14c00b0019281fc3b85si18942162oal.281.2023.05.16.09.09.42; Tue, 16 May 2023 09:09:56 -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=@kernel.org header.s=k20201202 header.b=uzED3MDY; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234408AbjEPQHN (ORCPT + 99 others); Tue, 16 May 2023 12:07:13 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:58984 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234394AbjEPQHK (ORCPT ); Tue, 16 May 2023 12:07:10 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [IPv6:2604:1380:4641:c500::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 962F37EEB; Tue, 16 May 2023 09:07:05 -0700 (PDT) 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 224F163BEE; 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 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-4.4 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_MED, 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 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 __ */ -- 2.39.2