Received: by 2002:a05:6358:16cc:b0:ea:6187:17c9 with SMTP id r12csp10664854rwl; Mon, 2 Jan 2023 06:21:12 -0800 (PST) X-Google-Smtp-Source: AMrXdXssjd9Yp0Nbv1AdAPHx3EmIluf/ITRBdJEjusNid+8o/REw/ALeO+tnWQz9Dq0wUT9eJY4f X-Received: by 2002:a17:90a:f001:b0:226:6055:776f with SMTP id bt1-20020a17090af00100b002266055776fmr7134263pjb.32.1672669272168; Mon, 02 Jan 2023 06:21:12 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1672669272; cv=none; d=google.com; s=arc-20160816; b=DASsFDAxndHb3OshalyxzVTtGqOsxloFIyZ6FV6Q3RAkFMcTMy2RQPzDBLJO38d9Ga qhaRtp4UtwN9r6hNI8j1ZxXGX1uIBQxcwTBP34LgsVJjL8Q4CmnBhcwlyW48YJ8oDYIu QWN3QMfPY8VMKHGs76Zdn2X6vqYBIMQKDK8dobMnKOm0S7vJLB5OpmLl6pL/qiCc8O54 3kLFUvT9VCEHzl9TlQSIn06aYshRT6nxtbtzYWI1xozJk1bCdbzJnEo5f4gFayg4kexW ZJh6h1EKBTCEC0DNCgTy31P/Et0Ey3ecuq12MHqj+XmmuSDXJ/AcUyBC2sCwLJyoL6R7 6krA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=vXSMBD5V/kRdKgsprcG9zzLSl5h3pHLEyJFv0HWtoBs=; b=RH/BuhfCFTcNuk89i9Mrshg5erQNDtnb7gSpv7XSdEAF7ranA3VICl2eWWAbQKunMm iWGFPtijBwlj/5oQVTzpP48DqoFKCB4IQ/PFrveGtR8yIpS3/l4uo+Ktl1ts2YeIqsE9 7HDbrHJ+oXWYZACDr58QitXLTBGWBlCoamI1w5RAYpcfnJjfqrAWdw/kw4eC7xXGfuYx VuYtrOWAdMdEpDnezimqKPGOVCWz5viGp2qpsZQACIsGb7VRVMETxrrrN+w/bu2KvdzU eodjnW/Iaw74tV5RMii5wQeeWDbJ7+17C6MaBmv94YXuxI3u7OW8FrGL7cqoIR4hFdOG Gzzg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@suse.com header.s=susede1 header.b=bA5GEcuY; 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=QUARANTINE sp=QUARANTINE dis=NONE) header.from=suse.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id kk7-20020a17090b4a0700b0021a0bf0330esi9223776pjb.73.2023.01.02.06.20.54; Mon, 02 Jan 2023 06:21:12 -0800 (PST) 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=@suse.com header.s=susede1 header.b=bA5GEcuY; 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=QUARANTINE sp=QUARANTINE dis=NONE) header.from=suse.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S236141AbjABOGu (ORCPT + 61 others); Mon, 2 Jan 2023 09:06:50 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:54618 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229864AbjABOGs (ORCPT ); Mon, 2 Jan 2023 09:06:48 -0500 Received: from smtp-out1.suse.de (smtp-out1.suse.de [IPv6:2001:67c:2178:6::1c]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 9627CB77 for ; Mon, 2 Jan 2023 06:06:47 -0800 (PST) Received: from relay2.suse.de (relay2.suse.de [149.44.160.134]) by smtp-out1.suse.de (Postfix) with ESMTP id D5B6033F2B; Mon, 2 Jan 2023 14:06:45 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.com; s=susede1; t=1672668405; h=from:from:reply-to: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=vXSMBD5V/kRdKgsprcG9zzLSl5h3pHLEyJFv0HWtoBs=; b=bA5GEcuYSbPiTGsC3cOvD442HSroXij0LjOjw4La92p6INaOwb9CMngpKVRKblJqxqzste BZuOKql0TB2VXjb8odTeTVKyIwXIYYXwE6QXzl3y+D900Cfi3H6MqLhn76kAh6AHDazMhD bs6MfMgqjx8lT9CsvNWEJLtZmtOf6VY= Received: from suse.cz (unknown [10.100.201.202]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by relay2.suse.de (Postfix) with ESMTPS id 86EEB2C141; Mon, 2 Jan 2023 14:06:45 +0000 (UTC) Date: Mon, 2 Jan 2023 15:06:43 +0100 From: Petr Mladek To: John Ogness Cc: Sergey Senozhatsky , Steven Rostedt , Thomas Gleixner , linux-kernel@vger.kernel.org Subject: Re: [PATCH printk v3 1/6] printk: move size limit macros into internal.h Message-ID: References: <20221221202704.857925-1-john.ogness@linutronix.de> <20221221202704.857925-2-john.ogness@linutronix.de> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20221221202704.857925-2-john.ogness@linutronix.de> X-Spam-Status: No, score=-4.4 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,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 On Wed 2022-12-21 21:32:59, John Ogness wrote: > The size limit macros are located further down in printk.c and > behind ifdef macros. This complicates their usage for upcoming > changes. Move the macros into internal.h so that they are still > invisible outside of printk, but easily accessible for printk. > > Also, the maximum size of formatted extended messages does not > need to be known by any code outside of printk, so move it to > internal.h as well. And like CONSOLE_LOG_MAX, for !CONFIG_PRINTK > set CONSOLE_EXT_LOG_MAX to 0 to reduce the static memory > footprint. > > Signed-off-by: John Ogness Reviewed-by: Petr Mladek Best Regards, Petr