Received: by 2002:a05:6a10:a841:0:0:0:0 with SMTP id d1csp3107280pxy; Sun, 25 Apr 2021 14:13:45 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyqNEMsrzeeXHfRDBOlxZL2RBh/SeZTXMTNN7N1V08Jr07CNSQYaWyXRCGyN1ySGVb3UpNF X-Received: by 2002:a62:920d:0:b029:25d:102a:f0a4 with SMTP id o13-20020a62920d0000b029025d102af0a4mr14219859pfd.37.1619385225764; Sun, 25 Apr 2021 14:13:45 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1619385225; cv=none; d=google.com; s=arc-20160816; b=PguOaBBjKaODTqJSUAhg+vMSmm07HGtb75z7L2FZ75Pyd1eN8rRbUqFosUXHKjzLmk iX9O4uB3T7SrMQOMlle1nwfrCMD9sYmDNdjy2B2TcH26ga0u08oHH99N7eoBnsUF46el bAewFzAtIvsKXf1eeUw0xxlUhexq8Sj9cTb1I99lRQddItyQeE8de1PUVIElmSKquclW 44Rcf6ziyyuRpunSnDupPv6WhXT092XKjZBx8QbuHpw8VtDymoukfHPdV6s1pMCcbLZw HUxGqXYNQwEzShZ5g2wkn72/wbYO7i92C+wGGZEba6e5fdG0qCyvstOGaXu28gwMuF5K PH8Q== 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 :message-id:date:subject:cc:to:from:ironport-sdr:ironport-sdr; bh=tIkoV/EKeQfMvZ6e4w/Sa4N1Z9h6pgIwxIKtnI0s/HY=; b=Wlh9JR+4qrOL2T+YjJ+mfH+D9HPou8012imyHzEB8URPkxklSOYm21cwnt267IjYdf uGEw3iA/MKuwMGayV3mH/2k3uRhJ1YFj2cHzIA6745sGk3iU7nwKSUU1IvTE4JzHJk5D AkakE4TNgFzoJIkGxXni/IBu2x9vTYW56a3nAKXS48iF1lIB+IuE3AuJCR8KQSohUTrT F+xeIOJRfn21FMBeC8J2FRDH4kV+ld5sbPiHZCWKdTWB6ZN+A0ry8Y9fk3t3+oNy92r1 g/PBZLif2zNVaWKHGAMZOb+e8y5+VKC8idmiTl3nT9r0q/mQVqui8Y5PT4srVAYos5sp EtdQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=intel.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id i8si18189220pjw.149.2021.04.25.14.13.33; Sun, 25 Apr 2021 14:13:45 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231324AbhDYVNS (ORCPT + 99 others); Sun, 25 Apr 2021 17:13:18 -0400 Received: from mga06.intel.com ([134.134.136.31]:43887 "EHLO mga06.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230494AbhDYVNR (ORCPT ); Sun, 25 Apr 2021 17:13:17 -0400 IronPort-SDR: ZHslSZhGNPYu64ieBCnbyHKC0haWxe7e0C73hK2UAKdWuFXIIkeSJ/Xw+Ba6oZcmrA7Ek+VMPL XSOHCNmWNzbg== X-IronPort-AV: E=McAfee;i="6200,9189,9965"; a="257560459" X-IronPort-AV: E=Sophos;i="5.82,250,1613462400"; d="scan'208";a="257560459" Received: from orsmga008.jf.intel.com ([10.7.209.65]) by orsmga104.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 25 Apr 2021 14:12:37 -0700 IronPort-SDR: fkz3ua720CuPcH922xWOpiVrg2n2y5hre6AFEnn+b+UPGZXRaJjQ507KCCGaL1yuNciuUA/fe/ l8+jp9jGekug== X-IronPort-AV: E=Sophos;i="5.82,251,1613462400"; d="scan'208";a="429115870" Received: from tassilo.jf.intel.com ([10.54.74.11]) by orsmga008-auth.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 25 Apr 2021 14:12:37 -0700 From: Andi Kleen To: x86@kernel.org Cc: linux-kernel@vger.kernel.org, Andi Kleen , Fenghua Yu Subject: [PATCH] x86/resctrl: Fix init const confusion Date: Sun, 25 Apr 2021 14:12:29 -0700 Message-Id: <20210425211229.3157674-1-ak@linux.intel.com> X-Mailer: git-send-email 2.25.4 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Andi Kleen const variable must be initconst, not initdata. Cc: Fenghua Yu Signed-off-by: Andi Kleen --- arch/x86/kernel/cpu/resctrl/monitor.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/x86/kernel/cpu/resctrl/monitor.c b/arch/x86/kernel/cpu/resctrl/monitor.c index 7ac31210e452..4327792a22f2 100644 --- a/arch/x86/kernel/cpu/resctrl/monitor.c +++ b/arch/x86/kernel/cpu/resctrl/monitor.c @@ -84,7 +84,7 @@ unsigned int resctrl_cqm_threshold; static const struct mbm_correction_factor_table { u32 rmidthreshold; u64 cf; -} mbm_cf_table[] __initdata = { +} mbm_cf_table[] __initconst = { {7, CF(1.000000)}, {15, CF(1.000000)}, {15, CF(0.969650)}, -- 2.25.4