Received: by 2002:ab2:3141:0:b0:1ed:23cc:44d1 with SMTP id i1csp1742360lqg; Mon, 4 Mar 2024 02:15:49 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCXbN5Kjre6tlD1CdciSEyaFsamfa6oPgQmJSEd9wic2UMV40OFM/8swXAyrft8pCpWkyZSvM/kqYKKdfnn2bviYq6UGj5/jOotOAV4y3g== X-Google-Smtp-Source: AGHT+IHgxT4SWNS1th6wpvG9VToVJB7VmT0uO+hfe8jI4vuPamPYj0JCwjwdLIlY5kcE1ai/ERqE X-Received: by 2002:ac8:5802:0:b0:42e:bcab:8efa with SMTP id g2-20020ac85802000000b0042ebcab8efamr13860384qtg.22.1709547349022; Mon, 04 Mar 2024 02:15:49 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1709547349; cv=pass; d=google.com; s=arc-20160816; b=TysNFE+klk/ahX49JUoYv+e7Fmj49Aqs2y9KW5tIFo+qdimMlsCjr9VXAPzyW0ZQLI EZgouurlK8xdwrlJB4LTFLtdb0GJ9gLIouoD6Mp7i9Ih4PA2Beh8DCe1R4eSWPlqL95Q ZShXFcKNi0gvfE5kS7SVnbX/oy3I5H6ypLdMn6uts5/lAfP/mXL2rL8TidUxMuxNAQSb wcN6hDA0ZCnKBPJyfbLwR3g93axnhg0DcXp4bqyJTgrFQXwOezpbPeny3T4m9vwG5oyd VromtqFV4Tz7eE2wcycCZs+JD30TKAItq41rVgBnhZa1fc5W5Bb83EaRuvfCYWEn6pbk yaPg== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=date:mime-version:list-unsubscribe:list-subscribe:list-id :precedence:references:subject:cc:to:from:dkim-signature :dkim-signature:message-id; bh=6Jgk9G7c0E4dzMxbvaTsjGPBA2bcPCPscX5bks01Uro=; fh=XPJs5ZGCvlB7w9yfpC1hED1EJsKLDZjsVhRhMNCPkns=; b=uBLMKOFeRV/AuinIWPzJ9kJfLnR0dQdytzndykWScNzZbTN8HSEIvWPpSRO4exXIeH 7Ab2QULCi+JIbCjsovNiamdTh4v2uCZrOCEQ7yyjR3Bx0GayYKzDejV1uycTTQzV10U4 1XZVgK1/ZwLcEJ2Kdtwh89DL/tRWdl/Vhhk6t+Fh7ux4Zjx8B9b1vsYPA5uAmvliyx4W uB4DmPbrvpBoROd0dGDEmiGpke2j8WcDXrA/ViqZGF2aIaE6PsjcoeKoEhqnethWipGr tQuzptDe2OI0NnoaJureF+9LQitBttS/3Ocat7MXGQceYB0MwhhPTW8wUZXBUAtgjMtl XIgQ==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@linutronix.de header.s=2020 header.b=NO8lSC7k; 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-90397-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-90397-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=linutronix.de Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [2604:1380:45d1:ec00::1]) by mx.google.com with ESMTPS id z18-20020ac87f92000000b0042eea48b654si3232728qtj.85.2024.03.04.02.15.48 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 04 Mar 2024 02:15:49 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-90397-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) client-ip=2604:1380:45d1:ec00::1; Authentication-Results: mx.google.com; dkim=pass header.i=@linutronix.de header.s=2020 header.b=NO8lSC7k; 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-90397-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-90397-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 ny.mirrors.kernel.org (Postfix) with ESMTPS id 9D54B1C2031A for ; Mon, 4 Mar 2024 10:15:48 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 2AFA73CF68; Mon, 4 Mar 2024 10:12:32 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=linutronix.de header.i=@linutronix.de header.b="NO8lSC7k"; dkim=permerror (0-bit key) header.d=linutronix.de header.i=@linutronix.de header.b="90m2Rl2o" 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 C9CC53C087; Mon, 4 Mar 2024 10:12:29 +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=1709547151; cv=none; b=FFcSC3gQpa3js+0yrT9kSpacicZ8nvQ9sVe+waCzdl9PXGc0QL5wht0cjrN69NXsDX6y27zoX8khZxZZ2skuxFEFWman18ePOTxk7m+DJJx3IHYtruCvwYOvwMM0vzGax/fGF5pMX7sHYriDRO7HevHGKbhPpU1Xgs7z5QanjR0= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1709547151; c=relaxed/simple; bh=0nwFi0bkuZGiGtiI8Nsx6zeMClnjEJolxPelJmGOFdM=; h=Message-ID:From:To:Cc:Subject:References:MIME-Version: Content-Type:Date; b=IaRpnAnzaTz4hMHTdrwgmYMf99MVy0xUZ9v+3pb37Ynu+LMIKmq6ZWOyCpffqhJL0HVmSBiiToKkZT3yXkBuAJZR2KbF+jv6GF448zZRyAKDXX4xaPxF7OpsT+UoED7un2adCz5J8pU9PnoFUbhBrblAGTp6Uosa43946PQ2gXM= 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=NO8lSC7k; dkim=permerror (0-bit key) header.d=linutronix.de header.i=@linutronix.de header.b=90m2Rl2o; 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 Message-ID: <20240304005104.787173239@linutronix.de> DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020; t=1709547148; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: references:references; bh=6Jgk9G7c0E4dzMxbvaTsjGPBA2bcPCPscX5bks01Uro=; b=NO8lSC7k+xuFTRyI7RDoRaIx57KuVWWkTdO69WoHfx1l4s6SvALgnsdiH23XFiV0Lku7FA dFs+/vfPDCaI0i1XKSKbxrncJHkGUG05L4tLpLOp6m+ZmZbTGgPCfhhZBBiF+bFA544pCJ Ife3C4CeGfrygHWbseJHDp0S/ETIf5JYa8SsWTqBXc7skRZPoSESnlEuD2kdgubT1R9EVT 6RYMVtbvOrj7448mWylKQrOXulwXNdxrP4LOE7RMFBBkhpZMVcm1Im0N0ll3765Z99m+h3 9z3xbVIDoOFuwpd4eNp0ZoYCgCoNyerplkqIAKvbbAcpY1A4F76T8u5cyx9Fvg== DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020e; t=1709547148; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: references:references; bh=6Jgk9G7c0E4dzMxbvaTsjGPBA2bcPCPscX5bks01Uro=; b=90m2Rl2oJgJFtAWub/kQ/ti4ooEu+pBEJZ8iuepWmfQWR/jnE01Sl2VKRtNiOwEbOQEsbP MKVHn8eclKAYCPAQ== From: Thomas Gleixner To: LKML Cc: x86@kernel.org, Linus Torvalds , Uros Bizjak , linux-sparse@vger.kernel.org, lkp@intel.com, oe-kbuild-all@lists.linux.dev Subject: [patch 8/9] x86/cpu: Provide a declaration for itlb_multihit_kvm_mitigation References: <20240303235029.555787150@linutronix.de> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Date: Mon, 4 Mar 2024 11:12:28 +0100 (CET) sparse complains rightfully about the missing declaration which has been placed sloppily into the usage site: bugs.c:2223:6: sparse: warning: symbol 'itlb_multihit_kvm_mitigation' was not declared. Should it be static? Add it to spec-ctrl.h where it belongs and remove the one in the kvm code. Signed-off-by: Thomas Gleixner --- arch/x86/include/asm/spec-ctrl.h | 2 ++ arch/x86/kvm/mmu/mmu.c | 3 +-- 2 files changed, 3 insertions(+), 2 deletions(-) --- a/arch/x86/include/asm/spec-ctrl.h +++ b/arch/x86/include/asm/spec-ctrl.h @@ -96,4 +96,6 @@ static inline void speculative_store_byp extern void speculation_ctrl_update(unsigned long tif); extern void speculation_ctrl_update_current(void); +extern bool itlb_multihit_kvm_mitigation; + #endif --- a/arch/x86/kvm/mmu/mmu.c +++ b/arch/x86/kvm/mmu/mmu.c @@ -53,12 +53,11 @@ #include #include #include +#include #include #include "trace.h" -extern bool itlb_multihit_kvm_mitigation; - static bool nx_hugepage_mitigation_hard_disabled; int __read_mostly nx_huge_pages = -1;