Received: by 2002:a05:6358:d09b:b0:dc:cd0c:909e with SMTP id jc27csp6097915rwb; Tue, 22 Nov 2022 08:44:57 -0800 (PST) X-Google-Smtp-Source: AA0mqf7gXThbrCx3y/5k0rCMrSXwtEnZiryiNlG7tmGqqiC92n9B/WUpY2mdrvdA1qHwbS+9KnbD X-Received: by 2002:a05:6a00:4186:b0:56b:a9bd:ee5f with SMTP id ca6-20020a056a00418600b0056ba9bdee5fmr26962287pfb.80.1669135496821; Tue, 22 Nov 2022 08:44:56 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1669135496; cv=none; d=google.com; s=arc-20160816; b=E6xe/eqlPt+7MscGroUQmmM07oljqbfvHCUds535g9gjf3S/fUH8A7maGp0ZERRtMB vdN7kqS1XQAcpdIEP5qvAxyG3CjkHxP3W5v5ZLTc8CwEptEVNfRrVPsxCzOneFbW8vv7 z+5FlS6/DMdjGjskzAyjwv7yOF/5QL/K56OhnvrLahI2fRwanidK6ZJoeY2p2ah/hscw Bbfi/GS205XHuJAZYzPDsVFpyy6f/v8stklDEn0oTxR8Apdz+wNnlSPm2f4xDPvtLxKY Va5PtvR2G3YIgYI+sjUUbhAdGoElbAMj6YI8QngyXpRweYRagGAwGBXdPR8J13k6WNQF qaSg== 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=VeFIPJECu8nE+ikYuLTPQhIWFf9JfxjgpbHjHtL6c1I=; b=MYnxMDi1UtFJwx7TuvVKR7vH0TI5V9G+Oi6PdcM/OhUNCmhtJruz/bpENpkA5Cpr5s u8O4JuzalkP5Kd7F6MFBKb0F2NLHGfUlnwV6EhvkwRY0w0TecikCjyx+g/6ZWnOI0IoI BJeUnjRPYDVpRASsTXmT/ihE5WfShPJHny6fR7qmLYihy/of4fSEtcMa8HxJm5Gp/PkF fbnS9W7gggVgTIfWPbYVXrtnO5YZOOmR0hS9mTYGazzaINAWRaRjvj6gv7rATeMBe9qy J7iigPGG1kwgMXdOAciIGt3X6LmddUn2VO2jFVrxQ1c3fEe/CJ2qOrDuf5WX2xV17/5P 6DNw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@suse.com header.s=susede1 header.b=ggPClbhT; 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 j15-20020a170902da8f00b001872e6c5c63si16866045plx.49.2022.11.22.08.44.45; Tue, 22 Nov 2022 08:44:56 -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=ggPClbhT; 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 S233698AbiKVPzb (ORCPT + 90 others); Tue, 22 Nov 2022 10:55:31 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:59878 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231773AbiKVPz3 (ORCPT ); Tue, 22 Nov 2022 10:55:29 -0500 Received: from smtp-out2.suse.de (smtp-out2.suse.de [195.135.220.29]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 1DB69720AB for ; Tue, 22 Nov 2022 07:55:28 -0800 (PST) Received: from relay2.suse.de (relay2.suse.de [149.44.160.134]) by smtp-out2.suse.de (Postfix) with ESMTP id D09401F86B; Tue, 22 Nov 2022 15:55:26 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.com; s=susede1; t=1669132526; 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=VeFIPJECu8nE+ikYuLTPQhIWFf9JfxjgpbHjHtL6c1I=; b=ggPClbhTYnZ+Cky+LlzpEBM4iesF0Nn12oM/Dp7jS+T4uGIhY18qEDVgRXRL5SnkkNgoKm ZiVnkTqzq7p9Rwwgr8fjiRHcqFrkA1WKb20x6UFjccgoCkIw5GooT7uQNtuZ4j2SF2KWsi HsZBJ7gNMPxKqL0DGss5Uuy3Mgf0tSI= 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 A7FEB2C141; Tue, 22 Nov 2022 15:55:26 +0000 (UTC) Date: Tue, 22 Nov 2022 16:55:26 +0100 From: Petr Mladek To: John Ogness Cc: paulmck@kernel.org, Naresh Kamboju , open list , Nathan Chancellor , Sergey Senozhatsky Subject: Re: next-20221122: tinyconfig: ppc n s390: kernel/printk/printk.c:95:1: error: type specifier missing, defaults to 'int'; ISO C99 and later do not support implicit int [-Werror,-Wimplicit-int] Message-ID: References: <87o7szoyij.fsf@jogness.linutronix.de> <20221122144839.GI4001@paulmck-ThinkPad-P17-Gen-1> <87leo3ovpw.fsf@jogness.linutronix.de> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <87leo3ovpw.fsf@jogness.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 Tue 2022-11-22 16:33:39, John Ogness wrote: > On 2022-11-22, "Paul E. McKenney" wrote: > >> @paulmck: Do you have a problem with permanently activating CONFIG_SRCU? > > > > The people wanting it separate back in the day were those wanting very > > tiny kernels. I have not heard from them in a long time, so maybe it > > is now OK to just make SRCU unconditional. > > Who decides this? Or maybe I should create a semaphore-based Variant of > console_srcu_read_lock()/console_srcu_read_unlock() for the > "!CONFIG_PRINTK && !CONFIG_SRCU" case? I would prefer to avoid it. It would require keeping this in mind. Semaphore behaves very differently than srcu_read_lock (deadlocks, nesting). I am not sure how much the tiny SRCU would increase the size of the kernel. I doubt that it would be more that what printk() added by the various per-CPU and per-console buffers. Well, another question is why we actually need to register the consoles at all for !CONFIG_PRINTK. Only reasons come to my mind: + /dev/console + preventing double registration/unregistration (initialization) I could imagine to handle these two use-cases a special way on tiny systems. But I would do it only when anyone complains. Best Regards, Petr