Received: by 2002:a25:c205:0:0:0:0:0 with SMTP id s5csp4671919ybf; Wed, 4 Mar 2020 08:25:21 -0800 (PST) X-Google-Smtp-Source: ADFU+vvZdNdrzByRfgMXmB6lJaZGU/UyxManmftI8zy7rIiP3jDrlbyTbdOm4h+1KeKLIYET4ma/ X-Received: by 2002:a9d:7617:: with SMTP id k23mr2809436otl.329.1583339121327; Wed, 04 Mar 2020 08:25:21 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1583339121; cv=none; d=google.com; s=arc-20160816; b=WUQuA09M05Y52HAuep0OWiuAcRuBbwrf6WYZ/N02lZtP9cahUFjNmiA0D6hp6OsQol 9zHjY1ZLpSUAZM4+axsC54TKmzMFm3QwXGcXGXEvZEgHlcA8NcZ/5pGVCeHbLukWEiKV 0rrlOBbwNGMXr/0lB/ENvAuck8/1Rz25LlyL1fTbhxCjefeko26QDKDTufvKYqmU1Non XIK3YpVR37Q+KX8nlr9cp9Aom54zXAKgB96DgHIbfR15qJpgXZJlitats+5XpjJm7I/L K7lfjYpNIa5sooMQM0cHSliqnGYckTpqaznWreaoNoe1j3T/GxkhSwyTMVrZMNb6KznM XwpQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:date:cc:to:subject:from:references :in-reply-to:message-id; bh=DUuEVvfwCB0ExOj9e2YdUfZNHgUfRwvQ43GicvNZMTo=; b=kZDs455z40c3XT5JTK/kZLmLaoLN/h09uGUT3xL2expmLudLPxu631A+upcqaDbH/W g6tyg6exaACOuhn5gHKRIj7AXNT06ANfVUZNMemNDaWpP4qFQEATm1SDsFpBC6bIp59z f8VbsVkB5v21esLPsChCnjVMeGKYaOOJBTbSMY3CjiZQ7ljgG7TDsjRKYDVEV/GiDWGY VT1025RsvhrENGYO2LTBrdwtcch8ZEsJ2DXhLTma+xah6aExandIhYT8XOmWxe3b4Dpo z6uGrBORtl00DjM4Kj5hm3lEhF4i3rEDNylFrIVhQUXpZkRy5XnfwZGkX7yDa1Yp83ce y4cA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id e7si1633500oti.301.2020.03.04.08.25.09; Wed, 04 Mar 2020 08:25:21 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2388300AbgCDQYY (ORCPT + 99 others); Wed, 4 Mar 2020 11:24:24 -0500 Received: from mx2.suse.de ([195.135.220.15]:42336 "EHLO mx2.suse.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2388254AbgCDQYW (ORCPT ); Wed, 4 Mar 2020 11:24:22 -0500 X-Virus-Scanned: by amavisd-new at test-mx.suse.de Received: from relay2.suse.de (unknown [195.135.220.254]) by mx2.suse.de (Postfix) with ESMTP id 51662ADB3; Wed, 4 Mar 2020 16:24:20 +0000 (UTC) Received: by unicorn.suse.cz (Postfix, from userid 1000) id 04235E037F; Wed, 4 Mar 2020 17:24:19 +0100 (CET) Message-Id: <4c410fbb93c84d801c267be68799101036715ecb.1583337972.git.mkubecek@suse.cz> In-Reply-To: References: From: Michal Kubecek Subject: [PATCH net-next 5/5] tun: drop TUN_DEBUG and tun_debug() To: "David S. Miller" , Jakub Kicinski , netdev@vger.kernel.org Cc: linux-kernel@vger.kernel.org Date: Wed, 4 Mar 2020 17:24:20 +0100 (CET) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org TUN_DEBUG and tun_debug() are no longer used anywhere, drop them. Signed-off-by: Michal Kubecek --- drivers/net/tun.c | 17 ----------------- 1 file changed, 17 deletions(-) diff --git a/drivers/net/tun.c b/drivers/net/tun.c index 42110aba0014..4689e4c62e21 100644 --- a/drivers/net/tun.c +++ b/drivers/net/tun.c @@ -75,23 +75,6 @@ static void tun_default_link_ksettings(struct net_device *dev, struct ethtool_link_ksettings *cmd); -/* Uncomment to enable debugging */ -/* #define TUN_DEBUG 1 */ - -#ifdef TUN_DEBUG -#define tun_debug(level, tun, fmt, args...) \ -do { \ - if (tun->msg_enable) \ - netdev_printk(level, tun->dev, fmt, ##args); \ -} while (0) -#else -#define tun_debug(level, tun, fmt, args...) \ -do { \ - if (0) \ - netdev_printk(level, tun->dev, fmt, ##args); \ -} while (0) -#endif - #define TUN_RX_PAD (NET_IP_ALIGN + NET_SKB_PAD) /* TUN device flags */ -- 2.25.1