Message ID | 20230516160642.523862-3-arnd@kernel.org |
---|---|
State | New |
Headers |
Return-Path: <linux-kernel-owner@vger.kernel.org> Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:b0ea:0:b0:3b6:4342:cba0 with SMTP id b10csp548594vqo; Tue, 16 May 2023 09:19:06 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ71T2noNrFh0H7CAT2dTFTN1ydy/VUQkQbo//Xd058twAmdBUHT6dj27xUtKMGyTdVbbSRI X-Received: by 2002:a05:6a20:9385:b0:103:b585:b587 with SMTP id x5-20020a056a20938500b00103b585b587mr22475071pzh.13.1684253945898; Tue, 16 May 2023 09:19:05 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1684253945; cv=none; d=google.com; s=arc-20160816; b=BP8er+Vmn4/Bdfy+2LlAYwhPgX4h3Tr7k7OApLz0OgtGhu0uu4sD5eDzVWiX2+Ha0W is0Jc6chII5q2i8boywHvA6JzE4ri96cwMR2/efTS1+wNYtf312ugFGSmLg3kzqOSZWy pRwW4md/1A/L1BmyHQm0KxzTT1tt+CQVMwXRVPUWFdwe5Q5eHsmTGW0VwmjXT7QIbZaX Gg9qnUp0+RtAmS60VoNlZAQZj1n9FAKzXEB/2NZ9hv4I1x7p7aRskMZj32BOGUVdAhCE FR/df4vVQDaCkOvBTy6oDIEs4wQJQ4gutYsW2Cdbq1I5h2f7eIZkSlwMo9CB3RhLeESZ 4JEQ== 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 Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id d4-20020aa797a4000000b00643a730d50bsi19334929pfq.389.2023.05.16.09.18.52; Tue, 16 May 2023 09:19:05 -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 S234403AbjEPQHO (ORCPT <rfc822;peekingduck44@gmail.com> + 99 others); Tue, 16 May 2023 12:07:14 -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 <rfc822;linux-kernel@vger.kernel.org>); 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 <arnd@kernel.org> To: Catalin Marinas <catalin.marinas@arm.com>, Will Deacon <will@kernel.org> Cc: Arnd Bergmann <arnd@arndb.de>, Ard Biesheuvel <ardb@kernel.org>, Mark Rutland <mark.rutland@arm.com>, Marc Zyngier <maz@kernel.org>, Oliver Upton <oliver.upton@linux.dev>, James Morse <james.morse@arm.com>, Suzuki K Poulose <suzuki.poulose@arm.com>, Zenghui Yu <yuzenghui@huawei.com>, Anshuman Khandual <anshuman.khandual@arm.com>, Kees Cook <keescook@chromium.org>, Suren Baghdasaryan <surenb@google.com>, 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: <linux-kernel.vger.kernel.org> X-Mailing-List: linux-kernel@vger.kernel.org X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1766068265867388187?= X-GMAIL-MSGID: =?utf-8?q?1766068265867388187?= |
Series |
arm64: address -Wmissing-prototype warnings
|
|
Commit Message
Arnd Bergmann
May 16, 2023, 4:06 p.m. UTC
From: Arnd Bergmann <arnd@arndb.de> 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 <arnd@arndb.de> --- 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 __ */