From nobody Mon Apr 6 04:44:17 2026 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id C53F7ECAAD3 for ; Sat, 10 Sep 2022 22:28:01 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229965AbiIJW17 (ORCPT ); Sat, 10 Sep 2022 18:27:59 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:45724 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229744AbiIJW1j (ORCPT ); Sat, 10 Sep 2022 18:27:39 -0400 Received: from galois.linutronix.de (Galois.linutronix.de [193.142.43.55]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id D088638454 for ; Sat, 10 Sep 2022 15:27:38 -0700 (PDT) Message-ID: <20220910222300.524466942@linutronix.de> DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020; t=1662848857; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: references:references; bh=LscXlV1rkfiGC1iyhRF8H7x4yCrolRpccYbWcMWLptc=; b=2nOZDMNEQCdfpEbpssXSxl/1NxSLAxk9cE2s/LMpzA6P7inlIJV9Bm+gYBM1ko/cn2AEXJ H54xOqeXV5EKksTluT+KQv2Q6+eia6bqZIKj4c53mQws/3Q76cYab6UQ+d3X7QwNa1r9kq O3OWn6YxT59J89uNmG3nIg79xaIgx8Hh2wlOrfTpASFb8U9MUITu8DfxSVOTGCz1oOM/iU XmoI6D1ja3tTp+ppLwi0RKZrofTNiFWuYoCeGLMBMB8KB4tInmFiugcpiOC3XjMonbXcva Lux42ac/A0bRBJZI4KDd3OjF2r9uv/SwQFSgzOsjvgX7/pRo5Xv2b4SLS8p5aw== DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020e; t=1662848857; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: references:references; bh=LscXlV1rkfiGC1iyhRF8H7x4yCrolRpccYbWcMWLptc=; b=ej4Id8FFr5usQbn+Iedp/mRjjlbohRQD3qzmoGgBw5CqirPF8W3Kk80tOxPC1JbmD3dAz2 mbTh8mVJ+eZ3mVCw== From: Thomas Gleixner To: LKML Cc: John Ogness , Petr Mladek , Sergey Senozhatsky , Steven Rostedt , Linus Torvalds , Peter Zijlstra , "Paul E. McKenney" , Daniel Vetter , Greg Kroah-Hartman , Helge Deller , Jason Wessel , Daniel Thompson Subject: [patch RFC 03/29] printk: Remove write only variable nr_ext_console_drivers References: <20220910221947.171557773@linutronix.de> MIME-Version: 1.0 Date: Sun, 11 Sep 2022 00:27:36 +0200 (CEST) Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" Signed-off-by: Thomas Gleixner Reviewed-by: Sergey Senozhatsky --- kernel/printk/printk.c | 9 --------- 1 file changed, 9 deletions(-) --- a/kernel/printk/printk.c +++ b/kernel/printk/printk.c @@ -220,9 +220,6 @@ int devkmsg_sysctl_set_loglvl(struct ctl } #endif /* CONFIG_PRINTK && CONFIG_SYSCTL */ =20 -/* Number of registered extended console drivers. */ -static int nr_ext_console_drivers; - /* * Helper macros to handle lockdep when locking/unlocking console_sem. We = use * macros instead of functions so that _RET_IP_ contains useful informatio= n. @@ -3188,9 +3185,6 @@ void register_console(struct console *ne console_drivers->next =3D newcon; } =20 - if (newcon->flags & CON_EXTENDED) - nr_ext_console_drivers++; - newcon->dropped =3D 0; if (newcon->flags & CON_PRINTBUFFER) { /* Get a consistent copy of @syslog_seq. */ @@ -3256,9 +3250,6 @@ int unregister_console(struct console *c if (res) goto out_disable_unlock; =20 - if (console->flags & CON_EXTENDED) - nr_ext_console_drivers--; - /* * If this isn't the last console and it has CON_CONSDEV set, we * need to set it on the next preferred console.