From nobody Mon Apr 6 04:44:18 2026 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id C5A42C6FA82 for ; Sat, 10 Sep 2022 22:28:16 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230094AbiIJW2O (ORCPT ); Sat, 10 Sep 2022 18:28:14 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:45750 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229929AbiIJW1m (ORCPT ); Sat, 10 Sep 2022 18:27:42 -0400 Received: from galois.linutronix.de (Galois.linutronix.de [193.142.43.55]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id C27CB38454 for ; Sat, 10 Sep 2022 15:27:41 -0700 (PDT) Message-ID: <20220910222300.641069948@linutronix.de> DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020; t=1662848860; 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=Op91FjKbY7zuuyXzPveWYDshKfFSBgIymEIf7Nbwy78=; b=p3epJnlAok0bykrF/9hop/Y4Gc4YEycgVLrQfbxVRktkx0Zy+r+bknnbQeso6VCN+Jh87E np1+sMZajRr5bqSCzDAwof2POu5DN0TGAFy40z8uOxXeGgPpDIcQojCrkxvhGLrOAXmzJV nXgzqfGcvSAmomI4qgGpShpkPWjp6D66Dp+0RDIfWGbS6Z2BglDUY3ev+18yseWdd9AZ88 DSTmxslCMEUXLrjciMj45ZyMoMNTIDBxVAlacl4GAyYPYit227inbiIyDpWfmONX9GAZlD 6cMYszFbguLcbs1CG0UPrT+4+PC2jK4or7HhMmHhlashOWRxhgdUVRxapZ7cDw== DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020e; t=1662848860; 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=Op91FjKbY7zuuyXzPveWYDshKfFSBgIymEIf7Nbwy78=; b=7LIdKBipkXx6981nWNV+4x5sokZ3n0m+LQsMZCqVNXTlsqk/miZwa3CcgaI2vkYA9rKBTM VidiF4MGpgNQD/Bw== From: Thomas Gleixner To: LKML Cc: John Ogness , Petr Mladek , Sergey Senozhatsky , Steven Rostedt , Linus Torvalds , Peter Zijlstra , "Paul E. McKenney" , Daniel Vetter , Greg Kroah-Hartman , Helge Deller , Jason Wessel , Daniel Thompson Subject: [patch RFC 05/29] printk: Mark __printk percpu data ready __ro_after_init References: <20220910221947.171557773@linutronix.de> MIME-Version: 1.0 Date: Sun, 11 Sep 2022 00:27:39 +0200 (CEST) Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" This variable cannot change post boot. Signed-off-by: Thomas Gleixner Reviewed-by: Sergey Senozhatsky --- kernel/printk/printk.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) --- a/kernel/printk/printk.c +++ b/kernel/printk/printk.c @@ -430,7 +430,7 @@ static struct printk_ringbuffer *prb =3D & * 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; =20 bool printk_percpu_data_ready(void) {