Received: by 2002:a25:1506:0:0:0:0:0 with SMTP id 6csp2197798ybv; Mon, 24 Feb 2020 00:53:47 -0800 (PST) X-Google-Smtp-Source: APXvYqy2TpEnm56SsTOdkIQ/zZ3thKPKtFp32dGDs6VTQDASLrlW2F6KUJ3H7/GARUrnvHpQ8Ibi X-Received: by 2002:a9d:d0b:: with SMTP id 11mr40617105oti.287.1582534427335; Mon, 24 Feb 2020 00:53:47 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1582534427; cv=none; d=google.com; s=arc-20160816; b=hC17LS8kuwfzexSoUfzrMQJ1X/j9drGUNSsRPsMXbAL3/fZWj4ehP7rO83ircuge8J K7ROa1kRGGbXyWrM6W3NplDWWOBBiAzDKd/srsNIGiJNqTRB8kkmqv9UVdH0qyN1ggZO ZmSuCWl8ItGJ2Ic8/tQWTxBR7b/++8yfBUUG5Ldutb0c/TZkM7twenrynpHb2pwpFV6Y TBAjxGrS3n21OvEErKz/IbWO6Mcy2338Q6P7pSyNQoqnIPZugsJM6iG/b6z2aRwiD7wN Lctwh6uSTzcNVINeWDR8NKSpMllecoudh/ZORKYteWRgUR/8Qd07JyG5pM2N+cTU7qir 0qbQ== 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=1HlSJ163Kxw+ERmbSfCD4PriiCpafa0FImWwygtwYn8=; b=Cu/O0AQiaQAD6KsJeJbgwrkfQR69IcuXpohu1+2bxGrZnqi9LFPuCnOIh6tvnohg+J dmGfG0KeF2QP1txkQmE888E3Jzlh7NGwMRhSQ7c7/sSLqbx4tq+2Prkhw5JtnAxjmKrd mUtlRdm1+avtrOvkIYQyJaAHtT1jTs5ztYsu66kfTdjTcZrdCXv523f/nNIDlcCpdYJ1 kRrfePS6HybZiU96myMxb4ykvA+PvJYa+azW10GJXfQ1ktIqHVZ1kM8UkWRj6ERCVu3E pe0X967C/NNBC3PVxdi3OkwqgvGa8sd2QezEZnw4LpvpeVgZxROPl9Orzy2wlzrfUeJ4 ezAg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=uyfipuKy; 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 m17si6302201otk.109.2020.02.24.00.53.35; Mon, 24 Feb 2020 00:53:47 -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=uyfipuKy; 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 S1727287AbgBXIxX (ORCPT + 99 others); Mon, 24 Feb 2020 03:53:23 -0500 Received: from mail.kernel.org ([198.145.29.99]:36086 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726452AbgBXIxV (ORCPT ); Mon, 24 Feb 2020 03:53:21 -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 2C58A20828; Mon, 24 Feb 2020 08:53:20 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1582534401; bh=wxYZPzfXng0YXGKSFR56XoxCarvW4FF4dcA1IUsRgQM=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=uyfipuKypot1ZNsk6pCK3NTpOJVPAuGsjK2Vokb4MqXOIax4jESjCNT72vVm24Soh G62/NBCe5lbx0KQrvdKwtyjXXqPXuEOPHzDuEOQGBx2nPHd1s498k1XNxjHfDriFEI 7dIPCwjfkkuoMdb/kCwH3ms4KPhhm0vzL7g+cqqs= 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 01/18] net/bond: Delete driver and module versions Date: Mon, 24 Feb 2020 10:52:54 +0200 Message-Id: <20200224085311.460338-2-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 The in-kernel code has already unique version, which is based on Linus's tag, update the bond driver to be consistent with that version. Signed-off-by: Leon Romanovsky --- drivers/net/bonding/bond_main.c | 6 +----- drivers/net/bonding/bonding_priv.h | 5 ++--- 2 files changed, 3 insertions(+), 8 deletions(-) diff --git a/drivers/net/bonding/bond_main.c b/drivers/net/bonding/bond_main.c index c68c1d1387ee..2e70e43c5df5 100644 --- a/drivers/net/bonding/bond_main.c +++ b/drivers/net/bonding/bond_main.c @@ -4370,7 +4370,6 @@ static void bond_ethtool_get_drvinfo(struct net_device *bond_dev, struct ethtool_drvinfo *drvinfo) { strlcpy(drvinfo->driver, DRV_NAME, sizeof(drvinfo->driver)); - strlcpy(drvinfo->version, DRV_VERSION, sizeof(drvinfo->version)); snprintf(drvinfo->fw_version, sizeof(drvinfo->fw_version), "%d", BOND_ABI_VERSION); } @@ -5008,8 +5007,6 @@ static int __init bonding_init(void) int i; int res; - pr_info("%s", bond_version); - res = bond_check_params(&bonding_defaults); if (res) goto out; @@ -5064,6 +5061,5 @@ static void __exit bonding_exit(void) module_init(bonding_init); module_exit(bonding_exit); MODULE_LICENSE("GPL"); -MODULE_VERSION(DRV_VERSION); -MODULE_DESCRIPTION(DRV_DESCRIPTION ", v" DRV_VERSION); +MODULE_DESCRIPTION(DRV_DESCRIPTION); MODULE_AUTHOR("Thomas Davis, tadavis@lbl.gov and many others"); diff --git a/drivers/net/bonding/bonding_priv.h b/drivers/net/bonding/bonding_priv.h index 5a4d81a9437c..45b77bc8c7b3 100644 --- a/drivers/net/bonding/bonding_priv.h +++ b/drivers/net/bonding/bonding_priv.h @@ -14,12 +14,11 @@ #ifndef _BONDING_PRIV_H #define _BONDING_PRIV_H +#include -#define DRV_VERSION "3.7.1" -#define DRV_RELDATE "April 27, 2011" #define DRV_NAME "bonding" #define DRV_DESCRIPTION "Ethernet Channel Bonding Driver" -#define bond_version DRV_DESCRIPTION ": v" DRV_VERSION " (" DRV_RELDATE ")\n" +#define bond_version DRV_DESCRIPTION ": v" UTS_RELEASE "\n" #endif -- 2.24.1