Received: by 2002:a05:6358:700f:b0:131:369:b2a3 with SMTP id 15csp2484545rwo; Thu, 3 Aug 2023 10:01:52 -0700 (PDT) X-Google-Smtp-Source: APBJJlEnCABMhK3nP0C8FI3yMe/jKlmtZzXldUj+pf0xVA85eLMiUSZ/nOukaT2ZKv93VBfWlJPp X-Received: by 2002:a05:6358:6f8d:b0:133:eff:39c with SMTP id s13-20020a0563586f8d00b001330eff039cmr9502226rwn.20.1691082112344; Thu, 03 Aug 2023 10:01:52 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1691082112; cv=none; d=google.com; s=arc-20160816; b=UrHa5ZE30Zs2zvCgoU74EEICZQLxXZj2IVW1rbLmVtjFKMmYg5ar+hZKZWa1PYmrUh HkGAqOFCZSaa4oVs5kHiRPOPjMflBAz2S9qqjv4dYCWRwWPrzMSnXk1EZUAvAoY6QxzZ qi45kIAcgXQRxfInBf85/COdE1low9U9LjSQPiR8gZNHBW2VfvPOUWylzrm655AWh9r+ G7So1Th64+HwCC4fSsaFow04g0mss7eNgknH3XZurHDvV/BEQq3zQjNQF4/NAP8A7SkN NKCEVG9OXFBcf9tHXDif8j7vm13+Jo070TvROP9BMQhinJwBhrumVGFuZsbu5L8ZEI2Y 1h9Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:robot-unsubscribe :robot-id:message-id:mime-version:references:in-reply-to:cc:subject :to:reply-to:sender:from:dkim-signature:dkim-signature:date; bh=8roA7YqrbXNK1Oco/Q8gJvVYSq/5quxwD8UmRyfAEZY=; fh=GmswEOGbKr3VXwADkGMdbYvANKaeXXy9MxNXblyNAM0=; b=nyORlsnMilmHNQNUL+aqsqEr3k5DM274tPJ5H8q1warwgmpRz3HrpSmdA3YKOw4x+W EVYo6Qpstkvd5jzHcIb9ldEZrK1j4l5aud7+6U21yQVIV2/LeefSnINeqq6UEEoanHQ9 9gNFBcYj6VQhuVBI9vyfmctGj5K3/E5ljU+6VP9mubd3YSlnVtqeaaQCQ4EBCOazbHe2 PXiz/MJkdBfrnOW9lrmigqHWRfKCQxYISC2yr7OF1rV3LH9LrD4Jzo50un854aQtmx+V 8wqFMJ8CEwb1OWN27hrUZ5NYy/ncKGhej3CpPeDUIPHhSI0/nOqayJ0F2RfDDF4um37u nqaw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linutronix.de header.s=2020 header.b=zZDQsMPU; dkim=neutral (no key) header.i=@linutronix.de header.s=2020e; 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=QUARANTINE dis=NONE) header.from=linutronix.de Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id r20-20020a6560d4000000b0054fe7b18671si147524pgv.809.2023.08.03.10.01.38; Thu, 03 Aug 2023 10:01:52 -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=@linutronix.de header.s=2020 header.b=zZDQsMPU; dkim=neutral (no key) header.i=@linutronix.de header.s=2020e; 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=QUARANTINE dis=NONE) header.from=linutronix.de Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S237274AbjHCP7U (ORCPT + 99 others); Thu, 3 Aug 2023 11:59:20 -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: 7bit X-Spam-Status: No, score=-4.4 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_MED,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 The following commit has been merged into the x86/cleanups branch of tip: Commit-ID: 1a3e4b4da39bbf540a379e21869faa74bb19d16f Gitweb: https://git.kernel.org/tip/1a3e4b4da39bbf540a379e21869faa74bb19d16f 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-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 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) 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);