Received: by 2002:ab2:687:0:b0:1f4:6588:b3a7 with SMTP id s7csp212849lqe; Tue, 9 Apr 2024 22:23:25 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCUrr4xtdr6tW8bT41RzptXU3+6aS2EZ4OOpNncugcU7yCDnjNGdmrpXxL0/APmGEF8dwSi4YK44+/Oqd6XwiV0AlhZv2wDNuTKHJd+Maw== X-Google-Smtp-Source: AGHT+IFbjXUczDPHsNq8k9Htb8Qy0+7Xf9R7iKod+3Rn0V4IhBU0Ag7AMWE6NYHXyhPcxz6oPw3H X-Received: by 2002:a17:906:6bd7:b0:a45:f9c5:3024 with SMTP id t23-20020a1709066bd700b00a45f9c53024mr3674114ejs.11.1712726605548; Tue, 09 Apr 2024 22:23:25 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1712726605; cv=pass; d=google.com; s=arc-20160816; b=FcsYSpvzDUbX8u7BaANQblUsIsQ9uuMLjyRgwalPDpASdLe74hyE6XS9RxGCWq9UHf ETQI3SHNGhs2fxkMVF4i/E7K11wUAbHL42huRAglaBAhzfPkcpMCuo/Mch+iSBbFgAn6 CUOYUO9ZV7clHGSdsIpsZiHqv1V+2xCQkjrymVt2XrPO4wRupq5qMlvnfwSsqc9zDh0F iLm5o2RMgt79eLgA1QNvxC3HwdjvKzHxzZ4v3kXbigYh7s9fyf37WB10pgOP1MxHthMY 4eclvvt4soWknMJNpF9jPC27mYrzNQvmckgtNp5XHYCKd3f2xYgBZ604RTcBV4rfyQMT 4thw== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:precedence:robot-unsubscribe:robot-id :message-id:mime-version:list-unsubscribe:list-subscribe:list-id :precedence:references:in-reply-to:cc:subject:to:reply-to:sender :from:dkim-signature:dkim-signature:date; bh=F6Ma79hgeYbSHKbnD3RPxbkHFR2RTl34dogW1CdqCIM=; fh=WAnS+8kBPO9zb7CmYvE2muOJXY66R+Vm7YyP8rBLebo=; b=pA16k41jwijs4aC25wcuXJda5D8IMkt9SH1pP8Fz9IEWeONpRdsm+5u9+Kibn5yQhw jwjlsrYaFU/Ihp2MSZeU+W+vbuUOS/4clvuL/6n+UmZLiYIr8A2GGBczF3A0+T2nZIiw 95n1Fb9om2YFvllTifP2qKT6IG7gaIgu8m8g+F+Bi2f4zDVhjUy2jRfEwxWcLjMJucsz h6PvR+F7C7KZVIEr+G34TcsptxMk1+ji4SJqlw1c1fiIrxycucAxoo3em7HJ8ZFXo5Lw nCdoruL+xb5qQ81Geq+HNQVsQpukUmLIv2trrs/h8u7V4ESSTE3eCx2XRQes9vV6PSM7 sysw==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@linutronix.de header.s=2020 header.b=D4tAizNg; dkim=neutral (no key) header.i=@linutronix.de header.s=2020e; arc=pass (i=1 spf=pass spfdomain=linutronix.de dkim=pass dkdomain=linutronix.de dmarc=pass fromdomain=linutronix.de); spf=pass (google.com: domain of linux-kernel+bounces-137925-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-137925-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=linutronix.de Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [147.75.80.249]) by mx.google.com with ESMTPS id jv1-20020a170907768100b00a4737ad5b74si5262611ejc.544.2024.04.09.22.23.25 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 09 Apr 2024 22:23:25 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-137925-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) client-ip=147.75.80.249; Authentication-Results: mx.google.com; dkim=pass header.i=@linutronix.de header.s=2020 header.b=D4tAizNg; dkim=neutral (no key) header.i=@linutronix.de header.s=2020e; arc=pass (i=1 spf=pass spfdomain=linutronix.de dkim=pass dkdomain=linutronix.de dmarc=pass fromdomain=linutronix.de); spf=pass (google.com: domain of linux-kernel+bounces-137925-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-137925-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=linutronix.de Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by am.mirrors.kernel.org (Postfix) with ESMTPS id CAFE21F23FD2 for ; Wed, 10 Apr 2024 05:23:19 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 6922914AA3; Wed, 10 Apr 2024 05:23:12 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=linutronix.de header.i=@linutronix.de header.b="D4tAizNg"; dkim=permerror (0-bit key) header.d=linutronix.de header.i=@linutronix.de header.b="ldoNL6F5" Received: from galois.linutronix.de (Galois.linutronix.de [193.142.43.55]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 2DDC1125AB; Wed, 10 Apr 2024 05:23:09 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=193.142.43.55 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1712726591; cv=none; b=hsYE6V5T6cpPuaU1vkU/u5PtIYRCwtLu5LsAX7/iIklioetcmOCyU5fljGtZQpW6B2Irvl32yS7Zlf0B9B4XkGpwB0VNve2yYaEO6+H/L6ZwSWa6iLuLxBtxQWxh5p7VAPaBLznevR77HR74Olk9NPE6XLdGYReQdt6wjpztOO0= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1712726591; c=relaxed/simple; bh=sFW4g/GlCSa29hoT2id3kKEoGwTb0Z67PNyuQD2hKGI=; h=Date:From:To:Subject:Cc:In-Reply-To:References:MIME-Version: Message-ID:Content-Type; b=dgPX8bVTWt1VyNKayMltRHY9A8sCPnZ39qM10s0EDpuxtuZkloLDFOftpVokbflEiKFhCuTKd2xuO+LIzpjkSBDzcZQnzuc5IHRpMh6xOdcXOODQmUVGgLRqoMJMGsJvX0aEnjxMxVAE3pNeR9u9LHgV6XrNZmrXTVCJ7OUDSjY= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linutronix.de; spf=pass smtp.mailfrom=linutronix.de; dkim=pass (2048-bit key) header.d=linutronix.de header.i=@linutronix.de header.b=D4tAizNg; dkim=permerror (0-bit key) header.d=linutronix.de header.i=@linutronix.de header.b=ldoNL6F5; arc=none smtp.client-ip=193.142.43.55 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linutronix.de Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=linutronix.de Date: Wed, 10 Apr 2024 05:23:07 -0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020; t=1712726588; 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=F6Ma79hgeYbSHKbnD3RPxbkHFR2RTl34dogW1CdqCIM=; b=D4tAizNgrgXr1QWO6hs/lZmHyq//2jI2P38qJVZq1aK7qEn8Q7+l2AfCDFi3jqKIHRfBpW vXrqdpcf1bPNA7bpD7wsKU2wPkrgzLgPLz7ZdXT8ZtXd0vu+wqx9VRKUDNvmeZofVbtD3j zExUBKNjG9VQ3eKm3yRJNazchY79ki09HkUwFfKXUIn7MroKuERGwWQHMpcHF9aVKswP/8 yUiFsY8yaDGWdm0r3mwygrJ+nEdCEFhvdJFOc3cesi0YkcYfN7q+RQeqX86E5FrpjUCA85 KcVZJNtiG9K2LxVmlM7spcaVBXGjNYR3gmTc/sY95WFxmKxNkJ/SuN+BFJVSlQ== DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020e; t=1712726588; 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=F6Ma79hgeYbSHKbnD3RPxbkHFR2RTl34dogW1CdqCIM=; b=ldoNL6F5hufi/hFljOZeEyMUBVZVDXDTzvUAtKXD/Od7puL5w9T9t/Q0CeCWrOs8CxgNdz n9OtMDkC77WXA3CQ== From: "tip-bot2 for Daniel Sneddon" Sender: tip-bot2@linutronix.de Reply-to: linux-kernel@vger.kernel.org To: linux-tip-commits@vger.kernel.org Subject: [tip: x86/urgent] x86/bugs: Fix return type of spectre_bhi_state() Cc: Sean Christopherson , Daniel Sneddon , Ingo Molnar , Linus Torvalds , x86@kernel.org, linux-kernel@vger.kernel.org In-Reply-To: <20240409230806.1545822-1-daniel.sneddon@linux.intel.com> References: <20240409230806.1545822-1-daniel.sneddon@linux.intel.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Message-ID: <171272658701.10875.7339711766368299622.tip-bot2@tip-bot2> Robot-ID: Robot-Unsubscribe: Contact to get blacklisted from these emails Precedence: bulk Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit The following commit has been merged into the x86/urgent branch of tip: Commit-ID: 04f4230e2f86a4e961ea5466eda3db8c1762004d Gitweb: https://git.kernel.org/tip/04f4230e2f86a4e961ea5466eda3db8c1762004d Author: Daniel Sneddon AuthorDate: Tue, 09 Apr 2024 16:08:05 -07:00 Committer: Ingo Molnar CommitterDate: Wed, 10 Apr 2024 07:05:04 +02:00 x86/bugs: Fix return type of spectre_bhi_state() The definition of spectre_bhi_state() incorrectly returns a const char * const. This causes the a compiler warning when building with W=1: warning: type qualifiers ignored on function return type [-Wignored-qualifiers] 2812 | static const char * const spectre_bhi_state(void) Remove the const qualifier from the pointer. Fixes: ec9404e40e8f ("x86/bhi: Add BHI mitigation knob") Reported-by: Sean Christopherson Signed-off-by: Daniel Sneddon Signed-off-by: Ingo Molnar Cc: Linus Torvalds Link: https://lore.kernel.org/r/20240409230806.1545822-1-daniel.sneddon@linux.intel.com --- arch/x86/kernel/cpu/bugs.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/x86/kernel/cpu/bugs.c b/arch/x86/kernel/cpu/bugs.c index 2954637..27f5004 100644 --- a/arch/x86/kernel/cpu/bugs.c +++ b/arch/x86/kernel/cpu/bugs.c @@ -2809,7 +2809,7 @@ static char *pbrsb_eibrs_state(void) } } -static const char * const spectre_bhi_state(void) +static const char *spectre_bhi_state(void) { if (!boot_cpu_has_bug(X86_BUG_BHI)) return "; BHI: Not affected";