Received: by 2002:a05:6358:d09b:b0:dc:cd0c:909e with SMTP id jc27csp6252651rwb; Tue, 22 Nov 2022 10:41:45 -0800 (PST) X-Google-Smtp-Source: AA0mqf4hM6X6HVtyJZTTOOj3bn5pY547kFBOJImXS6lKDP2tCPThWRsIuGkqRyJ5vBx8Q+GgvrD6 X-Received: by 2002:a17:906:2810:b0:7b2:7b45:2bf6 with SMTP id r16-20020a170906281000b007b27b452bf6mr4711246ejc.467.1669142505094; Tue, 22 Nov 2022 10:41:45 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1669142505; cv=none; d=google.com; s=arc-20160816; b=EL7ZWnnEG7ndinkuurjMbTSSgUDFm0rqD1AzJexfBXf1TSsLDOEA5f8VAVm6hjlVDX eBgBzoZ+24s19gMhSL4CQgBM9HX0/BKJngX73DEZYjjL724K8GJRy33vzxE7fCvFWnDb NZxk7WaNPpooV+K9dE7XWQEkW4dBnHgPkmuEp6CaE3QacJKZ6mc5fR/Uf4oodkUanfBp KdA+s6+EKGr+PgdImDzVvTKIaYFMlMhxU+Ltx0KKvm4zIN+PWEcV/I5dtZ+Up3gwgTlD UCMoIj3LYTdGu/jW7ahWchVYFfjYWMxLNegnzlKqQ/gInDAyBZ87oigykSv2XZUVIQ0x EgkA== 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:reply-to:message-id:subject:cc:to:from:date :dkim-signature; bh=jqIlXzzRC4sRLONYbiNWPmfEaAiVxPH/iIEYRDGsvS8=; b=AKrcomWmTrgkmgQGlsIxmsKbVEKU/MXb/leqASj4thUo6bjOKdnuRpW6QGazYaCVRc 2e+LsciOGa4FglTovZpHXQA1WILTFdrFGDBb+xmVhgbfK/Ou8pgD36M2mjy0kBqxkn8B vSmrNDEr0ERt7aw2x54PD2Vk4MTZVJ3Boxnfja59wK4s3cfpAAMpi5UO4xLYIUGrBuLN 9wML5wDHf+F4J1JvEskfQQqfbmNC1MSCx9z7E6yCAfr0jdqoYaZLLggoYw9hBA90YTHX eWvYCySI9tBrDahkacG7B3Yk1nv6MlPKNwcvkGicHcOg917gFyGJjZD1bl82ISh9z4gj nOxw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=IsyJXNM7; 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=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id qw34-20020a1709066a2200b007b5ce4a436csi2905053ejc.227.2022.11.22.10.41.21; Tue, 22 Nov 2022 10:41:45 -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=@kernel.org header.s=k20201202 header.b=IsyJXNM7; 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=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234298AbiKVSUx (ORCPT + 90 others); Tue, 22 Nov 2022 13:20:53 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:34366 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233560AbiKVSUs (ORCPT ); Tue, 22 Nov 2022 13:20:48 -0500 Received: from ams.source.kernel.org (ams.source.kernel.org [IPv6:2604:1380:4601:e00::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 8E7607C47A for ; Tue, 22 Nov 2022 10:20:47 -0800 (PST) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ams.source.kernel.org (Postfix) with ESMTPS id 3DEB4B81D36 for ; Tue, 22 Nov 2022 18:20:46 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id D9ED3C433D6; Tue, 22 Nov 2022 18:20:44 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1669141244; bh=ceNU5XII/EkTj7P6FArHTm/ysabdhOhtj1854DbTSQ4=; h=Date:From:To:Cc:Subject:Reply-To:References:In-Reply-To:From; b=IsyJXNM75SEUXLq+37x04YZs1KNmPPRxIG9Su8qRpDCiFQwzDTeJ5G9/oXulStnWo 2xcKttOy9UJfq0NWd37H0wDno/tyOdLaIX1NGEBBs5BaLI8lt5wtnnlxmiYxzWEh9d fmGvu1m3JxcJ8Au9iBqgD72uRAqd+DkDfFTfWvSJmhvTOXIAjdQ5aabMYa8YuyY+Yw y5uxqn8YeAX0WbRmO7NuX2ODcjmNGX5j7yjDf+F87sK3shayzKMkhEYaHTEW9QCJbg U5BqMj0lIONIlVQCNzofXtWH9EgCoX+rOHKbV3ODuR9nAhjU/DNCwODBoADkJqwqIn cnd0pUMdfbZGg== Received: by paulmck-ThinkPad-P17-Gen-1.home (Postfix, from userid 1000) id 864885C312A; Tue, 22 Nov 2022 10:20:44 -0800 (PST) Date: Tue, 22 Nov 2022 10:20:44 -0800 From: "Paul E. McKenney" To: Petr Mladek Cc: John Ogness , 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: <20221122182044.GN4001@paulmck-ThinkPad-P17-Gen-1> Reply-To: paulmck@kernel.org 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: X-Spam-Status: No, score=-7.1 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_HI, 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, Nov 22, 2022 at 04:55:26PM +0100, Petr Mladek wrote: > 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. Tiny SRCU is indeed tiny. And given the large number of "select SRCU" statements out there, I doubt that there are very many Linux kernels running in production without SRCU. Very likely none at all, actually. I will put together a patch series. Thanx, Paul