Received: by 2002:a05:6358:16cc:b0:ea:6187:17c9 with SMTP id r12csp992183rwl; Thu, 5 Jan 2023 07:20:58 -0800 (PST) X-Google-Smtp-Source: AMrXdXvvi5PreGtNFdpMeZPmF2vDiyTnUM9GH1P96oj895kGltaQyvUYPaurUNgaeU59nzanYWPb X-Received: by 2002:a17:90b:23c7:b0:225:f8e9:a0b5 with SMTP id md7-20020a17090b23c700b00225f8e9a0b5mr40406127pjb.45.1672932058751; Thu, 05 Jan 2023 07:20:58 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1672932058; cv=none; d=google.com; s=arc-20160816; b=bEV6treXvIErpBfbbAupSWsDR2SuUmrGbUIOKiBeIHEpLP3LKOzHcjc5kGngQZj2gH DiFO7ZlPxFUqFBNw9fYQNVph/5VIk5ghvSPmKJhSXLY3gWR/+B7nbcCrxdRWDLNIRrON NtMt6v665bxIq6Jlvp/nNk9RSRHKlx7Nq5yJRybyRmjjsKbZ8jpbqzInseW0xUyFoejI tJalGo2/7paOgAsgBGrheCV+b6frs6q92R7EBl7fzbqvk9XBp69iWYa9Ad5T/g3kaJvM MLYqqSEou1qLLKa4BIxpMtUtk/K4rav8x1GlZuAkDvAaOveVAlZcA7wX4A20HfOuO67j zIIQ== 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; bh=LE/AMfcrNjogtlg+yDUNmI0PwQzVWIc8TyZ78hQqXqE=; b=gNbUCfBofScpnUbTrPvIONCM8HlA1RaEYyVziOk3+awsB9lEa/zLDo5BvqralMD0mj 8jKQyxaeSU36tyKgFc/JLF+kXOjBUCRx26giB0STsvH8qKncVHZMTM4cIi9hVNpRS2dR KWsQQz+rUFRYBdF3Lrky7S5by4P2g9E0WYZg+C3TXZ5DSTZu6gMP+IWByeF0N4xp6uRP 8+pnVPxFgzPXd5ayrXPJ+zuZ4XuDN6eeRlPa0ahxojZ2W2AOMUnJ0JMh5gVUlVUWSHHH hHHlwVIkyboLhxeIti9sr61YAO8pFmbTS6GsSL0hfj7ujfqXdz/1Szxp7Af+mLJSBm2b b6Qg== ARC-Authentication-Results: i=1; mx.google.com; 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=fail (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 g11-20020a17090a4b0b00b0021984a8bdbesi2052268pjh.47.2023.01.05.07.20.51; Thu, 05 Jan 2023 07:20:58 -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; 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=fail (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=suse.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234158AbjAEOtW (ORCPT + 55 others); Thu, 5 Jan 2023 09:49:22 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:48348 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234190AbjAEOtM (ORCPT ); Thu, 5 Jan 2023 09:49:12 -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 4FAB75B156 for ; Thu, 5 Jan 2023 06:48:58 -0800 (PST) Received: from relay2.suse.de (relay2.suse.de [149.44.160.134]) by smtp-out1.suse.de (Postfix) with ESMTP id CF306172D8; Thu, 5 Jan 2023 14:48:38 +0000 (UTC) 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 82C222C141; Thu, 5 Jan 2023 14:48:38 +0000 (UTC) Date: Thu, 5 Jan 2023 15:48:36 +0100 From: Petr Mladek To: John Ogness Cc: Sergey Senozhatsky , Steven Rostedt , Thomas Gleixner , linux-kernel@vger.kernel.org Subject: Re: [PATCH printk v4 1/8] printk: move size limit macros into internal.h Message-ID: References: <20230105103735.880956-1-john.ogness@linutronix.de> <20230105103735.880956-2-john.ogness@linutronix.de> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20230105103735.880956-2-john.ogness@linutronix.de> X-Spam-Level: X-Spamd-Bar: / Authentication-Results: smtp-out1.suse.de; none X-Rspamd-Server: rspamd2 X-Spamd-Result: default: False [0.00 / 50.00] X-Spam-Score: 0.00 X-Rspamd-Queue-Id: CF306172D8 X-Spam-Status: No, score=-4.2 required=5.0 tests=BAYES_00,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 Thu 2023-01-05 11:43:28, John Ogness wrote: > The size limit macros are located further down in printk.c and > behind ifdef conditionals. 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