Received: by 2002:a05:6358:701b:b0:131:369:b2a3 with SMTP id 27csp4530053rwo; Tue, 25 Jul 2023 07:24:58 -0700 (PDT) X-Google-Smtp-Source: APBJJlGaWQ8nqqczTrF1OI1krmf5S/GWQ/L8r/NAtd8HzpyX0k0a1z5u3eYfseuc7WbqKlxPN96Z X-Received: by 2002:a05:6e02:1305:b0:348:9fb8:abea with SMTP id g5-20020a056e02130500b003489fb8abeamr2738951ilr.2.1690295098390; Tue, 25 Jul 2023 07:24:58 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1690295098; cv=none; d=google.com; s=arc-20160816; b=0oGnoUwkyB8ugV5hTsgE9b0wRfErmDD/WiUEIRFwVURK4208vcI/HtJ6qlOcVU5hCt OzS0KwaeSXWlR57EeuQmGawb+0gJ5y69cBsNfTX+zSg5SrTHab8fhw8jLPogG59ec6eo 0HdkFQmprdy2wR5Uhjc8I4I5v1mzEtA6UaDHG6NRTlIla3ndDWvRLvY8qHnEZbgpca/2 C7QGII4d423w8TTV6t/LatTIYLgF8msAdU74h17en20p0NTCYnNu/gtnCX3/i3ce1K9N pkBAT5PHnuRx9e/sGC160j/J1m9X+ldHsxN2gnSSQK1ttA4pBK2FB25bJztUiHv90w9t UW9Q== 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 Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id om15-20020a17090b3a8f00b00258ee17486bsi12580781pjb.160.2023.07.25.07.24.46; Tue, 25 Jul 2023 07:24:58 -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 S231829AbjGYNtS (ORCPT + 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 ); 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 ; 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 ; 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 To: linux-kernel@vger.kernel.org, x86@kernel.org Cc: Arnd Bergmann , Thomas Gleixner , Ingo Molnar , Borislav Petkov , Dave Hansen , "H. Peter Anvin" 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: X-Mailing-List: linux-kernel@vger.kernel.org From: Arnd Bergmann 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 --- 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); -- 2.39.2