Received: by 2002:a05:6359:c8b:b0:c7:702f:21d4 with SMTP id go11csp1681240rwb; Fri, 23 Sep 2022 17:08:29 -0700 (PDT) X-Google-Smtp-Source: AMsMyM7/XgeetSLR41cwXy6/ryYmTUTltLqvoGjOy/BXmB5b3BQGCFxYNMCLnqPdLG6Si01nuylq X-Received: by 2002:a17:906:7007:b0:6ff:8028:42e with SMTP id n7-20020a170906700700b006ff8028042emr9240405ejj.278.1663978109121; Fri, 23 Sep 2022 17:08:29 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1663978109; cv=none; d=google.com; s=arc-20160816; b=LWpPHM+Ee21zHx2UEIjTpM/WNxzPw5ElGz+unV5/1LBooeqxDApRgKOOkTelFNl82b hfB8xYWllPQgAtm4REzdb1dQxO0BiViWbQkXzRd2DaEo5jCMcuZ5OmZPMc+BxEtCiQtg ITLbdd2VzHdah+fiFZnX3KDe1ReQbKrKFMtSD3DqcIOskVqRUDm1oOUtGH62Bui67uP3 pbrjgD1aZ1mbAtGQFBdKKfjeG/f5X5U4cleCISuhA9vvU51wkV0M+JRLX7aCc6uzd+4p ZVFlXBEvDAvbvg5Ri5jkO8EVX+ZoRR6R+Ol0DpG4AKXW6ZVA1kViFyqDb1QIeUrFrd3n ESFA== 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 :references:in-reply-to:message-id:date:subject:cc:to:dkim-signature :dkim-signature:from; bh=NMMv3ujjFTuj7Yj8Tuz38djTJjcTqnAf2UGtNPcHZZ8=; b=MIgUh3WndlXivRiss0YudPLh/LOujctfOYJhGPdyF+uyUb87D6+VpE+A4tA0q5APzW tmXK0cSXR7iA1UgH1QWKIEsp29bWca6pJC5y2to/oIpPDtdxc0DLeUWwVqusBhqejqLW frlfnNc1dt2hH89/uNgVZ0mZiOiKkHUn879kEzm1SENZGjLYdqzRe9j/yPQd7WBENywP Aw1PTaavnvxvZt3PArP0ichnQxQCxGMsgSk/R+hV0RJuwFLuae0kIA4A1ER7q4qiMpCy 4Ty8I0Wf3l9fwIKQHIa1CJcD0goqM6XpVCI3gG3h/TstsqTEMSu9y1j4SuFR7H143+IM NAAg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linutronix.de header.s=2020 header.b="BTT8x0Z/"; dkim=neutral (no key) header.i=@linutronix.de; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=linutronix.de Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id b20-20020a0564021f1400b00445fc3afc57si3909295edb.360.2022.09.23.17.08.03; Fri, 23 Sep 2022 17:08:29 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@linutronix.de header.s=2020 header.b="BTT8x0Z/"; dkim=neutral (no key) header.i=@linutronix.de; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=linutronix.de Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233108AbiIXAF6 (ORCPT + 99 others); Fri, 23 Sep 2022 20:05:58 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:54732 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232587AbiIXAFK (ORCPT ); Fri, 23 Sep 2022 20:05:10 -0400 Received: from galois.linutronix.de (Galois.linutronix.de [193.142.43.55]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 4F3BC9E8A8 for ; Fri, 23 Sep 2022 17:05:06 -0700 (PDT) From: John Ogness DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020; t=1663977898; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=NMMv3ujjFTuj7Yj8Tuz38djTJjcTqnAf2UGtNPcHZZ8=; b=BTT8x0Z/8tuiYDkMQCoydRasISqP+nkfk5473rWmNxM69PeQFni1HtvbT+ohwJ2f0N1xIe HI5gSnGguvwL3mgFJaUlR83KCn4NAOOy4rLfPKzOTDgiF4BOSRgdyiTmStqMoNRzSR7KiR /UEJwlFKMJXZDUTOfT/elHMNKQ73Sqafj3+KSbS+IVC84fCS5m4MrqiZP1uJyJvDOG4Y1Z 3e70/ThbfXyATHV/RpaH/ILeVZgxQq8/XSR/Hhh8tDkiy0xgViJeo+55vljOHhrwcOTXkS gJMJtKUjBoaSEZjOKWYCFZoeyuW9J3HaCTEFFZfT9mEoLXJC8hgyDQWrOqK1ZA== DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020e; t=1663977898; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=NMMv3ujjFTuj7Yj8Tuz38djTJjcTqnAf2UGtNPcHZZ8=; b=Ghlq7f9+kXjKdt8w5EojdUKNMT8lt5kHGZkYWVpkGFRuJBYCIBM2sP3pSR2hDgRE6DvahN jA/bgS1Bja5v6ADw== To: Petr Mladek Cc: Sergey Senozhatsky , Steven Rostedt , Thomas Gleixner , linux-kernel@vger.kernel.org Subject: [PATCH printk 05/18] printk: Mark __printk percpu data ready __ro_after_init Date: Sat, 24 Sep 2022 02:10:41 +0206 Message-Id: <20220924000454.3319186-6-john.ogness@linutronix.de> In-Reply-To: <20220924000454.3319186-1-john.ogness@linutronix.de> References: <20220924000454.3319186-1-john.ogness@linutronix.de> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-3.9 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,INVALID_DATE_TZ_ABSURD, RCVD_IN_DNSWL_MED,SPF_HELO_NONE,SPF_PASS autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Thomas Gleixner This variable cannot change post boot. Signed-off-by: Thomas Gleixner Signed-off-by: John Ogness Reviewed-by: Sergey Senozhatsky --- kernel/printk/printk.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/kernel/printk/printk.c b/kernel/printk/printk.c index 770511b89504..e4f1e7478b52 100644 --- a/kernel/printk/printk.c +++ b/kernel/printk/printk.c @@ -430,7 +430,7 @@ static struct printk_ringbuffer *prb = &printk_rb_static; * per_cpu_areas are initialised. This variable is set to true when * it's safe to access per-CPU data. */ -static bool __printk_percpu_data_ready __read_mostly; +static bool __printk_percpu_data_ready __ro_after_init; bool printk_percpu_data_ready(void) { -- 2.30.2