From nobody Mon Feb 9 00:25:42 2026 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 vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 5F94CC04A6A for ; Thu, 3 Aug 2023 08:29:47 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234647AbjHCI3q (ORCPT ); Thu, 3 Aug 2023 04:29:46 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:50938 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233050AbjHCI2n (ORCPT ); Thu, 3 Aug 2023 04:28:43 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [139.178.84.217]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id D058D3C1F for ; Thu, 3 Aug 2023 01:26:36 -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 6E48D61CBE for ; Thu, 3 Aug 2023 08:26:36 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 373A7C43142; Thu, 3 Aug 2023 08:26:34 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1691051195; bh=KR4z8QRNi4pU35qpz87mdf60pT5ISebScYvNacq6P6s=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=OMIMPZoTbbhICTxT8qGKxBU7CW4vQK1sUfp0/QvJbHEaATPtfrAplsfuLIECI0RP1 GiTcPGBEyG3uzuQI99dsh4/OQ294FO5bGnmIgCHGS+cerlwCMv4qNswLyiZeYDwXoC OxGeEoU23O2mRaRoYnD/NMJZX3n+KL30gd4KpQxVxvCfACnvx75rv2ioDlK/lmnQYV nViI0vCqYEfnPMFeSrkuwWNyFCH7ic+L8EfA6aGdFjsn31Q8mBeSikyP2pfFAXgD2e z9o60UMna7JsQ6gYbsnM+JVWPtAkdcj/hgxSf4UoUgVVWBsTTk6IZrD0l5XSGQYL97 dfxqGtZUVJ40Q== From: Arnd Bergmann To: Borislav Petkov Cc: Thomas Gleixner , Ingo Molnar , Dave Hansen , linux-kernel@vger.kernel.org, x86@kernel.org, Arnd Bergmann Subject: [PATCH v3 5/7] x86: alternative: add __alt_reloc_selftest prototype Date: Thu, 3 Aug 2023 10:26:17 +0200 Message-Id: <20230803082619.1369127-6-arnd@kernel.org> X-Mailer: git-send-email 2.39.2 In-Reply-To: <20230803082619.1369127-1-arnd@kernel.org> References: <20230803082619.1369127-1-arnd@kernel.org> MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Type: text/plain; charset="utf-8" From: Arnd Bergmann The newly introduced selftest function causes a warning when -Wmissing-prot= otypes is enabled: arch/x86/kernel/alternative.c:1461:32: error: no previous prototype for '__= alt_reloc_selftest' [-Werror=3Dmissing-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) =20 static __initdata int __alt_reloc_selftest_addr; =20 +extern void __init __alt_reloc_selftest(void *arg); __visible noinline void __init __alt_reloc_selftest(void *arg) { WARN_ON(arg !=3D &__alt_reloc_selftest_addr); --=20 2.39.2