Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 9347E3FE7 for ; Mon, 27 Sep 2021 21:58:23 +0000 (UTC) Received: from oasis.local.home (unknown [209.210.2.165]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 3A2D061058; Mon, 27 Sep 2021 21:58:23 +0000 (UTC) Date: Mon, 27 Sep 2021 17:58:22 -0400 From: Steven Rostedt To: Arnd Bergmann Cc: Chris Down , Petr Mladek , Sergey Senozhatsky , Andy Shevchenko , Jessica Yu , Arnd Bergmann , John Ogness , Nathan Chancellor , Nick Desaulniers , YueHaibing , Linux Kernel Mailing List , llvm@lists.linux.dev Subject: Re: [PATCH] printk: avoid -Wsometimes-uninitialized warning Message-ID: <20210927175822.6c928128@oasis.local.home> In-Reply-To: References: <20210927125007.1581919-1-arnd@kernel.org> <20210927122138.56cb1d8e@oasis.local.home> X-Mailer: Claws Mail 3.18.0 (GTK+ 2.24.33; x86_64-pc-linux-gnu) Precedence: bulk X-Mailing-List: llvm@lists.linux.dev List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit On Mon, 27 Sep 2021 20:32:12 +0200 Arnd Bergmann wrote: > On Mon, Sep 27, 2021 at 6:21 PM Steven Rostedt wrote: > > > > On Mon, 27 Sep 2021 14:19:18 +0100 > > Chris Down wrote: > > > > > Having IS_ENABLED and then an #ifdef seems to hurt code readability to me. > > > > I agree. > > > > Would this be a better solution? > > Sounds good, I'll follow up with that version after the next round of randconfig > builds. OK, but can you remove the extra line that's between the brace and the text. I should have deleted it in that patch. -- Steve