Message ID | 20230725134837.1534228-6-arnd@kernel.org |
---|---|
State | New |
Headers |
Return-Path: <linux-kernel-owner@vger.kernel.org> Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:9010:0:b0:3e4:2afc:c1 with SMTP id l16csp2509721vqg; Tue, 25 Jul 2023 07:27:20 -0700 (PDT) X-Google-Smtp-Source: APBJJlHlhMwgCkJGXjEZ6xLvvild4gOnQpWevWlDGb12psgB58f4cEnMwLn6k5xb1EspX+bpqfyQ X-Received: by 2002:a05:6a00:1785:b0:67a:9208:87a with SMTP id s5-20020a056a00178500b0067a9208087amr10943550pfg.23.1690295240378; Tue, 25 Jul 2023 07:27:20 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1690295240; cv=none; d=google.com; s=arc-20160816; b=XdPNVztCqmx0+0w8UU1TUkCURcwwxAK/W5CkuAUWxNVj4H4uGNGMh4rVIkWBvXzaE2 ZQrWn4jl+9+PkPVGtIeaUJbSXQogX549BNyfOHYGYoPy8Sy+JPhQ6Wc8bq18q1dykLmG ynI2NhVZ186P6fkc6mq9a2nBH/hgNP7ee1x+075dnUtlCqzEl3kx5Edptwc8opkLyBK8 OxDzWf0DiMHiNOHA5qKqJSusIZP5/Ib8s755pIxBtuedJTAatZdbhfLes9FFk9iKKPp8 49NJ/tIK6CizcBaY3/oyxcjebYAuNthY5eAH85hudStHzB5sThNnwF9siSBGHH8r/QLc LPCw== 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=bB2sLG/gzHKKcq6ryWYls7V4smHn+D8QtUR/URuRdRw=; fh=R523ZnP4N7O48iGEbgKYBfM0eoofLeWRxo/bWq35Los=; b=d8FlgK3N7A8Ou5Wcf5K/En9HYt1/oLaMln7fji5VSB5m8NybvCEqvvxcXc8pb+vhRv SDPqqZMR441aIxlpQJ31xIUXCzX5uQAjskIq4e+apSVmolEctZ7HenzpVtMXmGpTFPpB yep+aalqCPtcE5YNw55iyezpZCBrzz1C/SDwvBHdtsdiAKsX/g6xRVvGFAm1EUJbUzND 0Re+C9v3H02tPSHYUo6fdMkJ18ax0BJ49xCNAEJRkNu83r1MLHBSGEh7FXyKKJS4w+di Lif78qnZ7ibaID2brdgRCAERRDJ2PTAU2LaYPx2s5I6OiJwPR4YRICkq16OzZNrL94Vv SPSg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=vE7vE6PJ; 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 z3-20020aa78883000000b0068254b9108bsi12077406pfe.71.2023.07.25.07.27.07; Tue, 25 Jul 2023 07:27:20 -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=vE7vE6PJ; 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 S231833AbjGYNtS (ORCPT <rfc822;kautuk.consul.80@gmail.com> + 99 others); Tue, 25 Jul 2023 09:49:18 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:42950 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231705AbjGYNtF (ORCPT <rfc822;linux-kernel@vger.kernel.org>); Tue, 25 Jul 2023 09:49:05 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [139.178.84.217]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 0915C1FD2 for <linux-kernel@vger.kernel.org>; Tue, 25 Jul 2023 06:49:00 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id DF27A61731 for <linux-kernel@vger.kernel.org>; Tue, 25 Jul 2023 13:48:59 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 64BA9C433C7; Tue, 25 Jul 2023 13:48:57 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1690292939; bh=KR4z8QRNi4pU35qpz87mdf60pT5ISebScYvNacq6P6s=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=vE7vE6PJe7HILM6w/tgBd1IsUX2Xx7oEqB4YQ8IKOIcVIOTIhmuACww1CQj9PNcMq RLjheYQNOGg1H3Yl+pt8m2rAI5PZf5kNaYJqkO3ASg39hbLfYuUzURuNqnWtS9ytBj 5Lc0azinLfILioCypLzIoq4Uhb8bR7KUqT2fRlntK1JsD/DjXBP/FetJeESNZ/DrXP a8vObFOA/vJ/Cv/yTPblLMCwpNHHtIkjnVVHbT/Yz0zk9mXs/cSBHXCm6MniKCTt1d bXWWw0ZNhxwjr7pXYJos2EDdgVyyIDyPmZGX5rYCEJK9MQELoxIBkGtgYv+rE5w/PL WyPb1SztVEhyA== From: Arnd Bergmann <arnd@kernel.org> To: linux-kernel@vger.kernel.org, x86@kernel.org Cc: Arnd Bergmann <arnd@arndb.de>, Thomas Gleixner <tglx@linutronix.de>, Ingo Molnar <mingo@redhat.com>, Borislav Petkov <bp@alien8.de>, Dave Hansen <dave.hansen@linux.intel.com>, "H. Peter Anvin" <hpa@zytor.com> Subject: [PATCH 5/5] [RESEND] x86: alternative: add __alt_reloc_selftest prototype Date: Tue, 25 Jul 2023 15:48:37 +0200 Message-Id: <20230725134837.1534228-6-arnd@kernel.org> X-Mailer: git-send-email 2.39.2 In-Reply-To: <20230725134837.1534228-1-arnd@kernel.org> References: <20230725134837.1534228-1-arnd@kernel.org> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-7.1 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_HI, 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: INBOX X-GMAIL-THRID: 1772403022047716980 X-GMAIL-MSGID: 1772403022047716980 |
Series |
remaining x86 -Wmissing-prototype warnings
|
|
Commit Message
Arnd Bergmann
July 25, 2023, 1:48 p.m. UTC
From: Arnd Bergmann <arnd@arndb.de> The newly introduced selftest function causes a warning when -Wmissing-prototypes is enabled: arch/x86/kernel/alternative.c:1461:32: error: no previous prototype for '__alt_reloc_selftest' [-Werror=missing-prototypes] Since it's only used locally, add the prototype directly in front of it. Fixes: 270a69c4485d ("x86/alternative: Support relocations in alternatives") Signed-off-by: Arnd Bergmann <arnd@arndb.de> --- arch/x86/kernel/alternative.c | 1 + 1 file changed, 1 insertion(+)
diff --git a/arch/x86/kernel/alternative.c b/arch/x86/kernel/alternative.c index 2dcf3a06af090..934c23f24a3f8 100644 --- a/arch/x86/kernel/alternative.c +++ b/arch/x86/kernel/alternative.c @@ -1531,6 +1531,7 @@ static noinline void __init int3_selftest(void) static __initdata int __alt_reloc_selftest_addr; +extern void __init __alt_reloc_selftest(void *arg); __visible noinline void __init __alt_reloc_selftest(void *arg) { WARN_ON(arg != &__alt_reloc_selftest_addr);