Received: by 2002:a05:6358:700f:b0:131:369:b2a3 with SMTP id 15csp1924663rwo; Thu, 3 Aug 2023 01:48:54 -0700 (PDT) X-Google-Smtp-Source: APBJJlEpl2g4GVQ69z2eag7ZX+69T0Srqs+dDRsVwcPeh0sBjV+QySWfna57JMG/bCDRsTUaZdBV X-Received: by 2002:a17:902:c952:b0:1b8:8223:8bdd with SMTP id i18-20020a170902c95200b001b882238bddmr21610783pla.59.1691052533697; Thu, 03 Aug 2023 01:48:53 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1691052533; cv=none; d=google.com; s=arc-20160816; b=RczlL091KHsqpDq68shTzXnvzPNISFVB3urzgL8HZKyuo7KX25stLkN1vqqbBK4L9F xi4GY0Mfamni1PWxKeoXrWDqdt+3RlUwA5X7Hs78TjvAStyoj1q3fYfI/j5bMIyH56sG t4ZF7jl+4Dse+L5ZQV7GmBuwWjw3B64YpKNr1cuxh0r8O5La+4knGO0qx78i3YAlEBJU FrRcaU3QvKKroa3EGH34tEvh1rr++3FvE/uLMJTxPXu3x6O0uOD6P+IYqn0ZLcEpi0W8 3Gpa8D0WlwMdLyi36HagBej/l40Do0L3ebFRLw249gsloB2HCrk+yD00Mz6roXXY+Tbq U74w== 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=3/4MDyH/knLuYntRya8npu0ASABjtXXSBg4oxzp1prM=; b=q6skv0FdPfSW41OuXCJB1l/ENOnT9v6KGW1evi/PtyZ9b+24eQF5ztxXShYiah4dNv pe87EyXw1raNyJt5agakjRJVBHSqWbzISIkCscZrrwu3z3LevFsk2Ktk72RQtG/ryJe2 H/lZKqaSJ6RRGrHYweX3C0iv7QQ8iOurgzYoAWVS8pGRNLQ4svOCvmwcZUAB43zGrT4x Jemadxa1fxlspFqMWKiLIybIxXGekRhIhwYWyNdCRkqaBGHXyNoENHJxrEB9SKDo5CEX mYV5tR6vCp5giMMiyRF00U4w01gArhLllznVOjgku8FP1KydZS1z8hzPQ44jMc48xSL0 /bYw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=OMIMPZoT; 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 s13-20020a170902ea0d00b001bbdd44bbd4si12759052plg.74.2023.08.03.01.48.41; Thu, 03 Aug 2023 01:48:53 -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=OMIMPZoT; 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 S234641AbjHCI3p (ORCPT + 99 others); Thu, 3 Aug 2023 04:29:45 -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: 8bit X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF, RCVD_IN_DNSWL_BLOCKED,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