Received: by 2002:a25:1506:0:0:0:0:0 with SMTP id 6csp2198019ybv; Mon, 24 Feb 2020 00:54:06 -0800 (PST) X-Google-Smtp-Source: APXvYqye3sZBJS2XJRR5VtFd+JoPN2St0Pr0MqcJ6DUNucPyJutLURAfjF4FuqffAq4FX+BtDQJk X-Received: by 2002:aca:b483:: with SMTP id d125mr12077916oif.167.1582534446793; Mon, 24 Feb 2020 00:54:06 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1582534446; cv=none; d=google.com; s=arc-20160816; b=keZ52eph6g1iR29au7uuen+df7uji1j5i+1oiDdzkJPsrHzhTFuBoAIji6p9ny9Xc/ U4luO0PnVS052aJL4uuaqxHrFbzI614RGha9PIyrltw9rTHaxoQuAKLdBK0AB/iU0ghj B/NTud++TR0GPEZxVfku2EHVDo1tEA08RFdvWVF4q07+RfdNTUf23fcJ3XKvCKeV9FG/ R/kgiyk83sk9v2WQLyCRUMLYvR60Xyb4ynzoB2I8PaoaerGxrVlJrhO1g6ZEW6FHPcTT CDB/T0uhw1L3mimVI/GIos9EsvWFIubzHKa7H1rg4MZPuq6GYgtssn1xmUFCCEcImbJs oUDA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=G1GO4FGdabJM0U4qRmAAYKeWMkkI4sYAImvt64T4dQ4=; b=fLDugBZcdpYpXnAQXt+YSOqa1DbEnFS2vSmOBEN5samW0oIff+ZLDNvWO+HUYGhRhL wR41d35jog7kNkqPB4zKW5FDin8mRxbcTxSb/9bRgop1m04DEFEZ7bOPZGhDQbbdzD1Z hmzY0s0yjYYJDtiTkHZSI8Qj/T7gUfvAg+etkTpb1LZOZt3np4i+TzVwFM4V3L7yUn7E Q+ANDtg6kz6YpX9ShqCdIW8jNGJjbicWCNPTm4OLRguITJUr0I4zyzBUc2Y0+UOQSrdc u1g/ENjhPaxUjZBlX3FY0+AbrclDjk0njK4cmrspGAjWjasMtqchEKcjp2c0UuJ9N7Ws h9uQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=ZQo6V81d; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id s21si6024903otr.304.2020.02.24.00.53.55; Mon, 24 Feb 2020 00:54:06 -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; dkim=pass header.i=@kernel.org header.s=default header.b=ZQo6V81d; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727464AbgBXIxd (ORCPT + 99 others); Mon, 24 Feb 2020 03:53:33 -0500 Received: from mail.kernel.org ([198.145.29.99]:36516 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727421AbgBXIxc (ORCPT ); Mon, 24 Feb 2020 03:53:32 -0500 Received: from localhost (unknown [213.57.247.131]) (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 6EC7B20842; Mon, 24 Feb 2020 08:53:30 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1582534411; bh=fwyEnmlIREl3D/2DAJB5xBeyPEhsItC0Id93bVsKlCQ=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=ZQo6V81dD9/8lqg5RyNdNF83dmSjs798+p0gMldHgO41djQ59+NJpTWtOFB4kSJeb Xss4daEX6+EaDojwPpwtLMcn+EryXGmsMBBaXzkN9od+d0G+Td2hr1bpJ049qvxW65 73Jh8aJA2t7c2A04e6fwZd3m4gTyNO9EVX/qxQBE= From: Leon Romanovsky To: "David S. Miller" , Jakub Kicinski Cc: Leon Romanovsky , Tom Lendacky , Keyur Chudgar , Don Fry , Veaceslav Falico , Jay Vosburgh , linux-acenic@sunsite.dk, Maxime Ripard , Heiko Stuebner , Mark Einon , Chris Snook , linux-rockchip@lists.infradead.org, Iyappan Subramanian , Igor Russkikh , David Dillow , Netanel Belgazal , Quan Nguyen , Jay Cliburn , Lino Sanfilippo , linux-arm-kernel@lists.infradead.org, Andreas Larsson , Andy Gospodarek , netdev@vger.kernel.org, Thor Thayer , linux-kernel@vger.kernel.org, Ion Badulescu , Arthur Kiyanovski , Jes Sorensen , nios2-dev@lists.rocketboards.org, Chen-Yu Tsai Subject: [PATCH net-next v1 04/18] net/adaptec: Clean driver versions Date: Mon, 24 Feb 2020 10:52:57 +0200 Message-Id: <20200224085311.460338-5-leon@kernel.org> X-Mailer: git-send-email 2.24.1 In-Reply-To: <20200224085311.460338-1-leon@kernel.org> References: <20200224085311.460338-1-leon@kernel.org> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Leon Romanovsky Delete useless driver version in favor of default ones. Signed-off-by: Leon Romanovsky --- drivers/net/ethernet/adaptec/starfire.c | 19 +------------------ 1 file changed, 1 insertion(+), 18 deletions(-) diff --git a/drivers/net/ethernet/adaptec/starfire.c b/drivers/net/ethernet/adaptec/starfire.c index 165d18405b0c..2db42211329f 100644 --- a/drivers/net/ethernet/adaptec/starfire.c +++ b/drivers/net/ethernet/adaptec/starfire.c @@ -27,8 +27,6 @@ */ #define DRV_NAME "starfire" -#define DRV_VERSION "2.1" -#define DRV_RELDATE "July 6, 2008" #include #include @@ -47,6 +45,7 @@ #include /* Processor type for cache alignment. */ #include #include +#include /* * The current frame processor firmware fails to checksum a fragment @@ -165,15 +164,9 @@ static int rx_copybreak /* = 0 */; #define FIRMWARE_RX "adaptec/starfire_rx.bin" #define FIRMWARE_TX "adaptec/starfire_tx.bin" -/* These identify the driver base version and may not be removed. */ -static const char version[] = -KERN_INFO "starfire.c:v1.03 7/26/2000 Written by Donald Becker \n" -" (unofficial 2.2/2.4 kernel port, version " DRV_VERSION ", " DRV_RELDATE ")\n"; - MODULE_AUTHOR("Donald Becker "); MODULE_DESCRIPTION("Adaptec Starfire Ethernet driver"); MODULE_LICENSE("GPL"); -MODULE_VERSION(DRV_VERSION); MODULE_FIRMWARE(FIRMWARE_RX); MODULE_FIRMWARE(FIRMWARE_TX); @@ -654,13 +647,6 @@ static int starfire_init_one(struct pci_dev *pdev, int drv_flags, io_size; int boguscnt; -/* when built into the kernel, we only print version if device is found */ -#ifndef MODULE - static int printed_version; - if (!printed_version++) - printk(version); -#endif - if (pci_enable_device (pdev)) return -EIO; @@ -1853,7 +1839,6 @@ static void get_drvinfo(struct net_device *dev, struct ethtool_drvinfo *info) { struct netdev_private *np = netdev_priv(dev); strlcpy(info->driver, DRV_NAME, sizeof(info->driver)); - strlcpy(info->version, DRV_VERSION, sizeof(info->version)); strlcpy(info->bus_info, pci_name(np->pci_dev), sizeof(info->bus_info)); } @@ -2073,8 +2058,6 @@ static int __init starfire_init (void) { /* when a module, this is printed whether or not devices are found in probe */ #ifdef MODULE - printk(version); - printk(KERN_INFO DRV_NAME ": polling (NAPI) enabled\n"); #endif -- 2.24.1