Received: by 2002:a05:6359:c8b:b0:c7:702f:21d4 with SMTP id go11csp1680662rwb; Fri, 23 Sep 2022 17:07:49 -0700 (PDT) X-Google-Smtp-Source: AMsMyM7DsEjcItW72/it0lQRWmm0zv33X+84QJ3PZEJ+xRnsKIpBDqPGMU/oY5Ew++OVRAnZ7JE2 X-Received: by 2002:a17:906:8466:b0:77b:43e9:48b5 with SMTP id hx6-20020a170906846600b0077b43e948b5mr9139227ejc.254.1663978069482; Fri, 23 Sep 2022 17:07:49 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1663978069; cv=none; d=google.com; s=arc-20160816; b=rOZ6bNfFxAFlZ9Au1kt4HmDLtYHd2+r/hlGZoJ+OPXfiT1wVz8QxvgJY0YbAEaMK3Y +OkyJEm4Hgc3TMaarCz/x8ihvIflh8IaCoBJ4hSD1SHVw6QaIPgjKXmQVJbu+ICbwNon Bbft05mRl3IjlqU4Yf2r5lSAHjaObkmnpKfGXlXkH+GAE9e1Gk1L1EIdWypA80WL4oPb 5S2cgmNgeC2oak1IXs2+MGodGq8KJW3/G3b8Yf5qtjKazbUUqygwYsoZEEZESNrWHzjk OLH8D6JcIb4z3U4Tu9KUFwhj6IKGV2A+1dSHjm0s2nrX8nXFzQ7TTourWIV6Pn/4ni9N jQdA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:dkim-signature :dkim-signature:from; bh=ANY7oAkpA4R+I+XGrqgPZ6kGY4GmDX82gw1T7525iA0=; b=d58M9WiNFyGS62Ev7jcMSbS0sWjQXoB1De42fJdADF9v11/LdpQ+XqtOXbEkM0JW7J uiyGXyv7AWuorNyk/MQFd362gM9B3WUIEbjiWfwqSGKS4D7I4/M+7hQN4rYczoaHhW2m 6CddjQR9yLXWPbVvO13KZx3GcECh4Rz3bk9t/IcV9yXPx2q4u4T+qNOcnYV0J27NUwMP 2dADDk0lyTcphDd+yBvkvRpZZkCU5SvD1xO1JMMspt32X5g4F20sFtH1jQsW1y76Nvtp oHT9O/e9AyJAhz9GDq37mCUQDNvE7ZGNOA8aZ4fcUtycxe1nZ4VEkJ8qNIeDiaEvumIj a/hw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linutronix.de header.s=2020 header.b=vWpBFONA; dkim=neutral (no key) header.i=@linutronix.de header.b=8RqLTYIc; 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=QUARANTINE dis=NONE) header.from=linutronix.de Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id f5-20020a17090660c500b0077bab1f707esi8464289ejk.159.2022.09.23.17.07.24; Fri, 23 Sep 2022 17:07:49 -0700 (PDT) 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=@linutronix.de header.s=2020 header.b=vWpBFONA; dkim=neutral (no key) header.i=@linutronix.de header.b=8RqLTYIc; 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=QUARANTINE dis=NONE) header.from=linutronix.de Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233051AbiIXAFT (ORCPT + 99 others); Fri, 23 Sep 2022 20:05:19 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:54520 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232966AbiIXAFE (ORCPT ); Fri, 23 Sep 2022 20:05:04 -0400 Received: from galois.linutronix.de (Galois.linutronix.de [IPv6:2a0a:51c0:0:12e:550::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 733F0A00FF for ; Fri, 23 Sep 2022 17:04:58 -0700 (PDT) From: John Ogness DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020; t=1663977897; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=ANY7oAkpA4R+I+XGrqgPZ6kGY4GmDX82gw1T7525iA0=; b=vWpBFONAv4/pzgToS4exU/1LlRMHRX/eFC/G8EjzVbk4qt7O55zPP8Io1MlY2o43xH3R8N D6Z50QOWAGoucWZdPtuo8K1AMuL5sZhlQAa/VMvKwxwhhgocUt+cago7hmr4f4rmGDcfzx jPP22HktWEsAa7bqYF544nzTaxufQIMMtKLBwgSPJFXjaCkg5TvsmEMGzbyrxRm7ypea5k 7FtE69OsKSIYC2Xt0s95VVphm+cTW0p88tUtctnTKQU7pTDOoiU8ZuNAKxczekEn3C6mqp iXrV30l/xzsujtizv+b/6PV3ysTFoHNcas32lsriZcy/yfxGMsGuOH/x9j9u9A== DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020e; t=1663977897; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=ANY7oAkpA4R+I+XGrqgPZ6kGY4GmDX82gw1T7525iA0=; b=8RqLTYIcL6OsOGdep88T4tVlmPLozZRv2jX5XRRZ/CVZtYb+cnuIpqv0gwK5kuXSZ9Fzde pQLdpmU+n6wumFAw== To: Petr Mladek Cc: Sergey Senozhatsky , Steven Rostedt , Thomas Gleixner , linux-kernel@vger.kernel.org Subject: [PATCH printk 03/18] printk: Remove write only variable nr_ext_console_drivers Date: Sat, 24 Sep 2022 02:10:39 +0206 Message-Id: <20220924000454.3319186-4-john.ogness@linutronix.de> In-Reply-To: <20220924000454.3319186-1-john.ogness@linutronix.de> References: <20220924000454.3319186-1-john.ogness@linutronix.de> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-3.9 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,INVALID_DATE_TZ_ABSURD, 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 From: Thomas Gleixner Commit a699449bb13b ("printk: refactor and rework printing logic") removed the need for @nr_ext_console_drivers. Remove the unneeded variable. Signed-off-by: Thomas Gleixner Signed-off-by: John Ogness Reviewed-by: Sergey Senozhatsky --- kernel/printk/printk.c | 9 --------- 1 file changed, 9 deletions(-) diff --git a/kernel/printk/printk.c b/kernel/printk/printk.c index 14d7d39d118d..d6bba2ea14e8 100644 --- a/kernel/printk/printk.c +++ b/kernel/printk/printk.c @@ -220,9 +220,6 @@ int devkmsg_sysctl_set_loglvl(struct ctl_table *table, int write, } #endif /* CONFIG_PRINTK && CONFIG_SYSCTL */ -/* 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 information. @@ -3188,9 +3185,6 @@ void register_console(struct console *newcon) console_drivers->next = newcon; } - if (newcon->flags & CON_EXTENDED) - nr_ext_console_drivers++; - newcon->dropped = 0; if (newcon->flags & CON_PRINTBUFFER) { /* Get a consistent copy of @syslog_seq. */ @@ -3256,9 +3250,6 @@ int unregister_console(struct console *console) if (res) goto out_disable_unlock; - 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. -- 2.30.2