From nobody Thu Sep 11 12:49:21 2025 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 C54C4C04A6A for ; Thu, 3 Aug 2023 15:59:23 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S237281AbjHCP7W (ORCPT ); Thu, 3 Aug 2023 11:59:22 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:42064 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233758AbjHCP7R (ORCPT ); Thu, 3 Aug 2023 11:59:17 -0400 Received: from galois.linutronix.de (Galois.linutronix.de [IPv6:2a0a:51c0:0:12e:550::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 0B46F11F; Thu, 3 Aug 2023 08:59:15 -0700 (PDT) Date: Thu, 03 Aug 2023 15:59:13 -0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020; t=1691078354; h=from:from:sender:sender:reply-to:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=8roA7YqrbXNK1Oco/Q8gJvVYSq/5quxwD8UmRyfAEZY=; b=zZDQsMPUMcYDRlea/6iCvit1yAocz2P/2rmrybsgLLDyDPa0ld4EwEk40WS6UOxTqeA0Yt VYBhjZAcOyRjfdKmJJBNfHkOt2yA8L1bJkoRoGFZJDTNtsLZg4r3Br8pDgtimFCsFJ0bp6 3tugYW2VtN14iUwEkTUwSopQjS0CxzPeDHdr6XWzHhOc95g0AhGkVmt9KFUQQdk3cfxfIF rQTsUv1wbG7Lpnb6aVU/1TzJLhsWNU/8/oDqJ0lLuUsMRJAi5iaOd0zxC5umnYQVGeov+t h85yR7XKV5pn9K/7U/v+iNJpG+d4BRqJn5V4TshZF3X/cxBA0nAoqGnTnz+uDQ== DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020e; t=1691078354; h=from:from:sender:sender:reply-to:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=8roA7YqrbXNK1Oco/Q8gJvVYSq/5quxwD8UmRyfAEZY=; b=hgiYzWSKGksy1zkLOipRTdnzbTVJpuyvcnZuObi6qy+g3ucJo3Ls6ptXva4SILcJhZYOPg FsppeITN4ObZNaCQ== From: "tip-bot2 for Arnd Bergmann" Sender: tip-bot2@linutronix.de Reply-to: linux-kernel@vger.kernel.org To: linux-tip-commits@vger.kernel.org Subject: [tip: x86/cleanups] x86/alternative: Add a __alt_reloc_selftest() prototype Cc: Arnd Bergmann , "Borislav Petkov (AMD)" , x86@kernel.org, linux-kernel@vger.kernel.org In-Reply-To: <20230803082619.1369127-6-arnd@kernel.org> References: <20230803082619.1369127-6-arnd@kernel.org> MIME-Version: 1.0 Message-ID: <169107835389.28540.5714032870565906912.tip-bot2@tip-bot2> Robot-ID: Robot-Unsubscribe: Contact to get blacklisted from these emails Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org The following commit has been merged into the x86/cleanups branch of tip: Commit-ID: 1a3e4b4da39bbf540a379e21869faa74bb19d16f Gitweb: https://git.kernel.org/tip/1a3e4b4da39bbf540a379e21869faa74b= b19d16f Author: Arnd Bergmann AuthorDate: Thu, 03 Aug 2023 10:26:17 +02:00 Committer: Borislav Petkov (AMD) CommitterDate: Thu, 03 Aug 2023 16:40:50 +02:00 x86/alternative: Add a __alt_reloc_selftest() prototype 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 Signed-off-by: Borislav Petkov (AMD) Link: https://lore.kernel.org/r/20230803082619.1369127-6-arnd@kernel.org --- 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 2dcf3a0..934c23f 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);