From mboxrd@z Thu Jan 1 00:00:00 1970 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 54B62C4332F for ; Thu, 22 Dec 2022 15:43:10 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231464AbiLVPnI (ORCPT ); Thu, 22 Dec 2022 10:43:08 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:48178 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235579AbiLVPmo (ORCPT ); Thu, 22 Dec 2022 10:42:44 -0500 Received: from galois.linutronix.de (Galois.linutronix.de [IPv6:2a0a:51c0:0:12e:550::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 8AF282876F for ; Thu, 22 Dec 2022 07:42:14 -0800 (PST) From: John Ogness DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020; t=1671723731; 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: in-reply-to:in-reply-to:references:references; bh=Ih6VrsxX6xsnaFe2iTJFmjZ8gev/py4lccLRL328Eog=; b=m5QvS6b9UKW2jepjYsi3E0HInhHFejWF2drz8QgMtDuhrvSswjAHKO0z/iHqWQZnGsW/mn JWClHzqHotLspB1Jfr/G71iuoMqduk5l6elswZ5wXBviT0ijZXg940f7dz9nUZ29gTQ6fk dCe0xJDnGP4rXGC/vbUzDffElvS6xFms76zvc5qTQ1aBxtvbt7PnugHwyTmwRKMmgl3o8M GZRaRnYQRXtI3mcDSswD4RkgB9URrBzjFbhtI7OhSwdz6s6hAQgt0lgwWA42qYr9DxPRMm Un72SIHYzKaQUhsSgVsj/ZdYkrnxMwpD0sZ8drOLfDOT3v9RRjvn2n+YJNv1BA== DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020e; t=1671723731; 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: in-reply-to:in-reply-to:references:references; bh=Ih6VrsxX6xsnaFe2iTJFmjZ8gev/py4lccLRL328Eog=; b=xP3mL+OXBh4Dh0FeGyUo6iIcfmh+DAxj71xS5EKEsw6EzX8jcoafqU/uc2oJAXRQyTj1ez hrrZdjXCy+hI9mCg== To: Petr Mladek Cc: Sergey Senozhatsky , Steven Rostedt , Thomas Gleixner , linux-kernel@vger.kernel.org Subject: Re: [PATCH printk v3 5/6] printk: introduce console_get_next_message() and console_message In-Reply-To: <20221221202704.857925-6-john.ogness@linutronix.de> References: <20221221202704.857925-1-john.ogness@linutronix.de> <20221221202704.857925-6-john.ogness@linutronix.de> Date: Thu, 22 Dec 2022 16:47:39 +0106 Message-ID: <87bknva1jg.fsf@jogness.linutronix.de> MIME-Version: 1.0 Content-Type: text/plain Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 2022-12-21, John Ogness wrote: > +static bool console_emit_next_record(struct console *con, bool *handover, int cookie) > +{ > + bool is_extended = console_srcu_read_flags(con) & CON_EXTENDED; > + static char dropped_text[DROPPED_TEXT_MAX]; > + static struct console_buffers cbufs; > + static struct console_message cmsg = { > + .cbufs = &cbufs, > + }; @cmsg should not be static. The whole point of the console_message wrapper struct is so that it can sit on the stack. John Ogness