Received: by 2002:a05:7412:798b:b0:fc:a2b0:25d7 with SMTP id fb11csp527281rdb; Thu, 22 Feb 2024 10:50:49 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCXtpIX87uTFuTAgE3cV7gukgi/IvhTaspLayFgigz80ik/QIo289ZN+Ax7NTF/rocvqXstfOxnp04IeNLy+5T4ZvYkoyrtEllPOye2sXQ== X-Google-Smtp-Source: AGHT+IEmW/EY0739DTAzQrLUASrQ7BP946Gmj1U2CA258ygxayLY0Qv4/vjOQmCyrDxP/FCmlC70 X-Received: by 2002:a05:6808:13c3:b0:3c1:5482:770e with SMTP id d3-20020a05680813c300b003c15482770emr15102116oiw.10.1708627849364; Thu, 22 Feb 2024 10:50:49 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1708627849; cv=pass; d=google.com; s=arc-20160816; b=mjLTqyv8+b6dV8LX48rhJ+5Y+NdlPQm+BPElYpYIUPaNJIHCrZ4StDx+CbJNWwB4h3 HR2o9EiYwXUC0D4Y+YMP3QNPtzAP81pL4dyb30UKZMX3uRXAqVhvQZ7DvqJKhyYZRmSu a9vM4T4JSsPcGkaGAhc1OiQ9XcaVpuZtZyya006pEbwXyt/DwOfiwkggxkwTgSjWRlxf 9mCsd87EmPhiFHPp1Td/caFfhG0p7MVYRqK1UdxZ6ffGKLw9Yn1ua6SZFvoKbpPWy6Q8 7zcb54TCr2k/a/7yT3zImHdISp2oZbKy40JRfcGF2B/5/Tsaw5p5Ve+SKr5wNxXPJAl0 EJRA== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-unsubscribe:list-subscribe:list-id:precedence:message-id :in-reply-to:references:date:from:cc:to:subject:dkim-signature; bh=+IHAIWTqNs06mBN4o+YaG/GOzqsAPGk99vROAkcViQA=; fh=HUgOPOMLUPcroonsK10/uEWpbBCP57e0QFUoVmMwghQ=; b=DpvALq0qHe/Cv9tgtxW5vONsap+umCiPiPWtIdcFrrrdt8S4362J7KlmknIgWx/plw Hb2wk7DoJWAqejgt+XLjjg9r0/wNv0wmmKdBa/tkKn8ehhZQPzfraoKwrqUciwS8rRv+ QohShAGjvHdxaQDnN4pQwIlIug5VqVnYdxGvaHNTfTaTcjQXBu6x7c+ABvhOAfwuwiAp 7KRkrMlzDKhjVpgWOvjbefJetI+mM7JhpAy7IzzSxZrRsAQquTM/WSsrgZCPIGxXvt11 EWpDGtwGQaImV7A3uY9PrjaZKbveXYzsLWOWmJEUNV3OJIb9P9eeny4/6j2MIuSRvgrz KzpQ==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=HfjcCjsp; arc=pass (i=1 dkim=pass dkdomain=intel.com dmarc=pass fromdomain=linux.intel.com); spf=pass (google.com: domain of linux-kernel+bounces-77185-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-77185-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [2604:1380:45d1:ec00::1]) by mx.google.com with ESMTPS id bb30-20020a05622a1b1e00b0042e2bd3863fsi6327325qtb.223.2024.02.22.10.50.49 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 22 Feb 2024 10:50:49 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-77185-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=@intel.com header.s=Intel header.b=HfjcCjsp; arc=pass (i=1 dkim=pass dkdomain=intel.com dmarc=pass fromdomain=linux.intel.com); spf=pass (google.com: domain of linux-kernel+bounces-77185-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-77185-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com 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 8AAF51C253D3 for ; Thu, 22 Feb 2024 18:50:20 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 80E8C14F992; Thu, 22 Feb 2024 18:40:17 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=intel.com header.i=@intel.com header.b="HfjcCjsp" Received: from mgamail.intel.com (mgamail.intel.com [192.198.163.9]) (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 878BC14F96A for ; Thu, 22 Feb 2024 18:40:08 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=192.198.163.9 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1708627210; cv=none; b=EMQbirii/3B7ofvwr/UpMRW4y+CqWy5PRDNoACqjYEEUJGdnsIvea3KdQyNok3Ooa6cIlMKedyhvF2lk4x4fNljjrk0yrYcSt2m5iBoakQkYmACGx6S9Nx7qckywgVuY0TqRwP0lrM6CnQYg/3XFAx85frvc8so3JIpCEyvqYAo= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1708627210; c=relaxed/simple; bh=V0nhZmX+DNdyizRXt1fC0+DFHcTx60c+hJHBb5KG2wU=; h=Subject:To:Cc:From:Date:References:In-Reply-To:Message-Id; b=Ci4tb2lCNPieh6msZjkRG9ov70My+4gO/uZm52/GOh3D/aZycZxY6FF7O5epmDNvzL5UqutUTExXS571Lc6+gp3a4SI1nfeaaI1oIihYTR74Xn4L3iRkODegZw8/LkZX76jGmDLlhjt9WtyaWEr/SXptQXx98PaIsdXc/vwfn/4= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linux.intel.com; spf=none smtp.mailfrom=linux.intel.com; dkim=pass (2048-bit key) header.d=intel.com header.i=@intel.com header.b=HfjcCjsp; arc=none smtp.client-ip=192.198.163.9 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linux.intel.com Authentication-Results: smtp.subspace.kernel.org; spf=none smtp.mailfrom=linux.intel.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1708627208; x=1740163208; h=subject:to:cc:from:date:references:in-reply-to: message-id; bh=V0nhZmX+DNdyizRXt1fC0+DFHcTx60c+hJHBb5KG2wU=; b=HfjcCjspuWUh3fkCLmOCJ6dcsbvMLVwTxs90C9I4svxTngJjB08HpE6Q UMg5bokm3LsUVDM6hRvdP+Wc71so0B//BLheUY/pBQvg/lEy+4c0BijI9 8s7KmYujFbYbydzu+qQOlEkl+pasBcN/PiKN5OA3bbeCnDzn12Kt1A3jH N1NnYXl2kUlX8JO+8nGNKJNEBn8yNLDvgSM2yyZLMuCpyXvhR4lBUZCjZ J6fFLRETEVD1AuSosqfXpxTWOnit037F+4Lklzjwc6czIZqST3vLOD9Uh dpaGCKa+Oo5HveN/9OiSqtiB7HBmYnh6KgsdfGH0S87Kg3k3c7l4OPjo+ w==; X-IronPort-AV: E=McAfee;i="6600,9927,10992"; a="13584590" X-IronPort-AV: E=Sophos;i="6.06,179,1705392000"; d="scan'208";a="13584590" Received: from orviesa004.jf.intel.com ([10.64.159.144]) by fmvoesa103.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 22 Feb 2024 10:40:07 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="6.06,179,1705392000"; d="scan'208";a="10265276" Received: from davehans-spike.ostc.intel.com (HELO localhost.localdomain) ([10.165.164.11]) by orviesa004.jf.intel.com with ESMTP; 22 Feb 2024 10:40:08 -0800 Subject: [RFC][PATCH 31/34] x86/cpu/intel: Mark BSP init function as __init To: linux-kernel@vger.kernel.org Cc: kirill.shutemov@linux.intel.com,pbonzini@redhat.com,tglx@linutronix.de,x86@kernel.org,bp@alien8.de,Dave Hansen From: Dave Hansen Date: Thu, 22 Feb 2024 10:40:07 -0800 References: <20240222183926.517AFCD2@davehans-spike.ostc.intel.com> In-Reply-To: <20240222183926.517AFCD2@davehans-spike.ostc.intel.com> Message-Id: <20240222184007.9E437D9D@davehans-spike.ostc.intel.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: From: Dave Hansen The boot CPU is obviously not initialized during normal system runtime and its code can be __init. This prevents a warning once 'bsp_addr_config' gets marked __init. Signed-off-by: Dave Hansen --- b/arch/x86/kernel/cpu/intel.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff -puN arch/x86/kernel/cpu/intel.c~bsp_init_intel-__init arch/x86/kernel/cpu/intel.c --- a/arch/x86/kernel/cpu/intel.c~bsp_init_intel-__init 2024-02-22 10:09:03.721052435 -0800 +++ b/arch/x86/kernel/cpu/intel.c 2024-02-22 10:09:03.725052592 -0800 @@ -433,7 +433,7 @@ static void set_min_cache_bits(struct cp } } -static void bsp_init_intel(struct cpuinfo_x86 *c) +static void __init bsp_init_intel(struct cpuinfo_x86 *c) { int keyid_bits = 0; _