Received: by 2002:a05:7412:798b:b0:fc:a2b0:25d7 with SMTP id fb11csp150150rdb; Wed, 21 Feb 2024 22:00:41 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCUx5SXeF5dgKKh0eHaUIi5lupwoa0324eSXtdVHJLfSeDv02lwjNx9X0ozxkI+DBPAdomgfoXPXhYUyEyRmUFBcYLqcUSjJ/7zgVMaoWQ== X-Google-Smtp-Source: AGHT+IHg000QLmxYzvo02MYwK484TyAOTk9dyCbtN+xcl6MA36XeXb5HVavmDCHAeG/69+063JTA X-Received: by 2002:a17:902:e74a:b0:1dc:1e4f:9b54 with SMTP id p10-20020a170902e74a00b001dc1e4f9b54mr7010583plf.29.1708581641428; Wed, 21 Feb 2024 22:00:41 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1708581641; cv=pass; d=google.com; s=arc-20160816; b=ZC9kZoX+TUzIbr8dt/e7O/QeJ7ZEGvSOwpXNuGdq+uFwV3a20owVQoyFg+ZBOAc8ov v1FcggpJbQjYgFGRnpB7J/x5GheQiV/UCVe6FX8Wizu0V1Xueid4pr7j39j69QpZPKR0 9sElgGhwFBBOc4n0INYRXpoAeopCKd9yDGAPe6VNjkkkuIp2ioAlWlMJlF3Jk8Vhs6bV ifiePOFwqQA87MW0lMP3Lmr4ekeB06G+n7x1r1KuNZ/GLVYP8IUuOWCDJvIP0s05U7LJ wny2SG7ut98vXX8/4lmD792+qMkRklz8hIr4O8CsRHWy/mgo00RG6yM5hhDfG0Uc2MhC XfrQ== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=in-reply-to:content-disposition:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:message-id:subject:cc :to:from:date:sender:dkim-signature; bh=eQGciLXDluTPnn2IY30P6HSoPGBON7YrfV7nbQOPdy4=; fh=+nrw58h4nRcd+i8taYz+7FhVswYe6t1WNCDIz+nf9Aw=; b=UUSFb/s4iJoPDt6cZPp+cq+QDTiwgtPxjh89oMbKYfX98+KPU/HCpjGKTanLb0XfPi cqppAmp5evkh/YWG2DshfesgtypeawIhdZ55EF/9NebKdVZQ9lhWLdEKDppeze6leb3g GmNwWUHzte53lTU5RWh8BW576/TqU142ymcBeZZwWRsk8KFN9+IQXKtVPanNMUDeqFeF M0fFITX9EvI2wJDcYrGFvjmG4QxxbPOPGeb5H6o6iNM/Srsgx7DlfbwAWrgsFz6H+Ujc pB9xz7tmbdlkSxeXwowpkY35yVw6otlYAsq+8+QaxjVD1ptQjVLhwK5DTwCvtqKNuJtw UeYg==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=fefqBz7B; arc=pass (i=1 spf=pass spfdomain=gmail.com dkim=pass dkdomain=gmail.com); spf=pass (google.com: domain of linux-kernel+bounces-75966-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-75966-linux.lists.archive=gmail.com@vger.kernel.org" Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [2604:1380:45e3:2400::1]) by mx.google.com with ESMTPS id ll13-20020a170903090d00b001dbedc935f9si7226358plb.9.2024.02.21.22.00.41 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 21 Feb 2024 22:00:41 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-75966-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) client-ip=2604:1380:45e3:2400::1; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=fefqBz7B; arc=pass (i=1 spf=pass spfdomain=gmail.com dkim=pass dkdomain=gmail.com); spf=pass (google.com: domain of linux-kernel+bounces-75966-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-75966-linux.lists.archive=gmail.com@vger.kernel.org" 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 sv.mirrors.kernel.org (Postfix) with ESMTPS id 28E13281CE6 for ; Thu, 22 Feb 2024 06:00:41 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 54BA2156DD; Thu, 22 Feb 2024 06:00:32 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="fefqBz7B" Received: from mail-oo1-f49.google.com (mail-oo1-f49.google.com [209.85.161.49]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id AA10212E40 for ; Thu, 22 Feb 2024 06:00:29 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.161.49 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1708581631; cv=none; b=DUWWrLLBfBBmqAW6Z4OzsOsV1gxvzofhm8jgyuTIJugzQtg+Z5MOeEPd84b3RfR8lNoDePTBrEpfdayrITUuOUl0roH7R7cQKS8Wcgt/ts/7I2PQ2lsxLnc5IhwmkyWjdcJ6iR1Fn6e0I3AQTmXUo5s61oclYDL+guddovotTBo= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1708581631; c=relaxed/simple; bh=Z6JWzmSCwaZHB5bsIRXZgQfwSxV1nVZgUwh6w3gH1tY=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=NEoeftulY6WBvQi/sfCBzc1F+Hz9PNm8MW2rXr7R37nlWl/qoqjjjpMzbwSrnlYcbs5kS5BO4FH22S+GWaG47TzJHQ5qXkammYWiBE5ZiZYuopmP2dVMD0O6E0mTc72XHlwOEjdIY4juuVq3QMiNGWT4TcFYKd82mNnMmd1d/tQ= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=roeck-us.net; spf=pass smtp.mailfrom=gmail.com; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b=fefqBz7B; arc=none smtp.client-ip=209.85.161.49 Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=roeck-us.net Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=gmail.com Received: by mail-oo1-f49.google.com with SMTP id 006d021491bc7-5a020f5a4c5so369409eaf.1 for ; Wed, 21 Feb 2024 22:00:29 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1708581629; x=1709186429; darn=vger.kernel.org; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:sender:from:to:cc:subject:date:message-id :reply-to; bh=eQGciLXDluTPnn2IY30P6HSoPGBON7YrfV7nbQOPdy4=; b=fefqBz7B0IodNjOicbgr0rM0sLKrW2iNbBsUN3h2gMhAzRie982hlBVvZ1wOxhrkPF vO6FXcBKUGeReSx7NebNOl0aYHsw/7OajyxhaSO73iGaydH0Q3Z/u+UCc6TRiEh0pGvq 7I70QtEBlMCChQXjTQG6TfmLWoagWtRI3jDkaLTyuTukL2TNcmxtCjY06d6zDOtYK6b9 eQidjCxfIF//beo4wcw5jRcx59A8GQCbFhdLyK988+gBnjZHEH/TYdaIKcEpMM0NVG2p unQ96y5kmKMqsxHJVCzvJT04PYPlbuhUGNtEIVpMZXDF+gGS0VXb7rg/7wokLEv4JgoV BNpA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1708581629; x=1709186429; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:sender:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=eQGciLXDluTPnn2IY30P6HSoPGBON7YrfV7nbQOPdy4=; b=VJPsWXkr65KKSCf10qU8hg7DWDlz9s0FoGTF+nFwA+uryvVNAN6BQ2IzC7yXIH74+1 b2rDddNsfDDf+YM9dTZfDE6vXs7NAb8FFlDTL6i+5A/4XUKb9qca8Vq9uMUvb6azM0P4 kfnZsoL+Suy8o+fwU2gDsWhI2+d/PANDY6VtLyg1gB4qFbXd+byOaPsQUuEdFdJcoPco aI3tA1sJX3xORSiU7cm6LDJKW8rk2KqjJZ73xlOA+rJwzD4fwRZyBBPg014f2/cVWHgH j9mGQQS7XB6dAF8iYGluXnJxtRbHCfySXqbeGy9c2FrOJNdI1obLBrO6rS5ai1QPh8HT pLaQ== X-Forwarded-Encrypted: i=1; AJvYcCVnVpU5jTI0desu62pW+EtQTFrgAvI5Q/83UCXYSx4/opc64eZkdwqQ4kQNSMHwa8uIux0LM6Azotk2S+fKddJDxJi7rz4fh/k8qMbT X-Gm-Message-State: AOJu0YwVFt0sK3dWmaCZh2mrQF3/cjGHPU1N5XcRK60h5SzduNYSML2G PwzVUm/kIeMGHWnbomD1bI4jFu3lFL2sOgCn39ZbS1kWpBsyYi7a X-Received: by 2002:a05:6358:710:b0:17b:5dd1:a38d with SMTP id e16-20020a056358071000b0017b5dd1a38dmr3400924rwj.1.1708581628629; Wed, 21 Feb 2024 22:00:28 -0800 (PST) Received: from server.roeck-us.net ([2600:1700:e321:62f0:329c:23ff:fee3:9d7c]) by smtp.gmail.com with ESMTPSA id fa3-20020a056a002d0300b006e4c0ce85b2sm1486748pfb.181.2024.02.21.22.00.27 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 21 Feb 2024 22:00:27 -0800 (PST) Sender: Guenter Roeck Date: Wed, 21 Feb 2024 22:00:26 -0800 From: Guenter Roeck To: Alexey Dobriyan Cc: Thomas Gleixner , Peter Zijlstra , linux-kernel@vger.kernel.org Subject: Re: [PATCH] cpu: mark cpu_possible_mask as __ro_after_init Message-ID: References: <41cd78af-92a3-4f23-8c7a-4316a04a66d8@p183> 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=us-ascii Content-Disposition: inline In-Reply-To: <41cd78af-92a3-4f23-8c7a-4316a04a66d8@p183> On Mon, Feb 05, 2024 at 01:01:19PM +0300, Alexey Dobriyan wrote: > cpu_possible_mask is by definition "cpus which could be hotplugged > without reboot" -- property which is fixed after kernel enumerates > motheboard capabilities and hardware configuration. > > Signed-off-by: Alexey Dobriyan > --- > > kernel/cpu.c | 4 ++-- > 1 file changed, 2 insertions(+), 2 deletions(-) > > --- a/kernel/cpu.c > +++ b/kernel/cpu.c > @@ -3107,10 +3107,10 @@ const DECLARE_BITMAP(cpu_all_bits, NR_CPUS) = CPU_BITS_ALL; > EXPORT_SYMBOL(cpu_all_bits); > > #ifdef CONFIG_INIT_ALL_POSSIBLE > -struct cpumask __cpu_possible_mask __read_mostly > +struct cpumask __cpu_possible_mask __ro_after_init; > = {CPU_BITS_ALL}; I guess you didn't compile test this code. Guenter > #else > -struct cpumask __cpu_possible_mask __read_mostly; > +struct cpumask __cpu_possible_mask __ro_after_init; > #endif > EXPORT_SYMBOL(__cpu_possible_mask); >