netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH net-next 0/3] net/staging: Don't bother filling in ethtool driver version
@ 2024-02-22  9:00 John Garry
  2024-02-22  9:00 ` [PATCH net-next 1/3] rocker: " John Garry
                   ` (4 more replies)
  0 siblings, 5 replies; 6+ messages in thread
From: John Garry @ 2024-02-22  9:00 UTC (permalink / raw)
  To: jiri, davem, edumazet, kuba, pabeni, gregkh
  Cc: netdev, linux-staging, masahiroy, John Garry

The drivers included in this series set the ethtool driver version to the
same as the default, UTS_RELEASE, so don't both doing this.

As noted by Masahiro in [0], with CONFIG_MODVERSIONS=y, some drivers could
be built as modules against a different kernel tree with differing
UTS_RELEASE. As such, these changes could lead to a change in behaviour.
However, defaulting to the core kernel UTS_RELEASE would be expected
behaviour.

These patches are for netdev and staging trees, and I hope that the
respective maintainers can pick up the patches separately.

[0] https://lore.kernel.org/all/CAK7LNASfTW+OMk1cJJWb4E6P+=k0FEsm_=6FDfDF_mTrxJCSMQ@mail.gmail.com/

John Garry (3):
  rocker: Don't bother filling in ethtool driver version
  net: team: Don't bother filling in ethtool driver version
  staging: octeon: Don't bother filling in ethtool driver version

 drivers/net/ethernet/rocker/rocker_main.c | 2 --
 drivers/net/team/team.c                   | 2 --
 drivers/staging/octeon/ethernet-mdio.c    | 2 --
 3 files changed, 6 deletions(-)

-- 
2.31.1


^ permalink raw reply	[flat|nested] 6+ messages in thread

* [PATCH net-next 1/3] rocker: Don't bother filling in ethtool driver version
  2024-02-22  9:00 [PATCH net-next 0/3] net/staging: Don't bother filling in ethtool driver version John Garry
@ 2024-02-22  9:00 ` John Garry
  2024-02-22  9:00 ` [PATCH net-next 2/3] net: team: " John Garry
                   ` (3 subsequent siblings)
  4 siblings, 0 replies; 6+ messages in thread
From: John Garry @ 2024-02-22  9:00 UTC (permalink / raw)
  To: jiri, davem, edumazet, kuba, pabeni, gregkh
  Cc: netdev, linux-staging, masahiroy, John Garry

The version is same as the default, so don't bother filling it in.

Signed-off-by: John Garry <john.g.garry@oracle.com>
---
 drivers/net/ethernet/rocker/rocker_main.c | 2 --
 1 file changed, 2 deletions(-)

diff --git a/drivers/net/ethernet/rocker/rocker_main.c b/drivers/net/ethernet/rocker/rocker_main.c
index 9e59669a93dd..755db89db909 100644
--- a/drivers/net/ethernet/rocker/rocker_main.c
+++ b/drivers/net/ethernet/rocker/rocker_main.c
@@ -32,7 +32,6 @@
 #include <net/fib_rules.h>
 #include <net/fib_notifier.h>
 #include <linux/io-64-nonatomic-lo-hi.h>
-#include <generated/utsrelease.h>
 
 #include "rocker_hw.h"
 #include "rocker.h"
@@ -2227,7 +2226,6 @@ static void rocker_port_get_drvinfo(struct net_device *dev,
 				    struct ethtool_drvinfo *drvinfo)
 {
 	strscpy(drvinfo->driver, rocker_driver_name, sizeof(drvinfo->driver));
-	strscpy(drvinfo->version, UTS_RELEASE, sizeof(drvinfo->version));
 }
 
 static struct rocker_port_stats {
-- 
2.31.1


^ permalink raw reply related	[flat|nested] 6+ messages in thread

* [PATCH net-next 2/3] net: team: Don't bother filling in ethtool driver version
  2024-02-22  9:00 [PATCH net-next 0/3] net/staging: Don't bother filling in ethtool driver version John Garry
  2024-02-22  9:00 ` [PATCH net-next 1/3] rocker: " John Garry
@ 2024-02-22  9:00 ` John Garry
  2024-02-22  9:00 ` [PATCH 3/3] staging: octeon: " John Garry
                   ` (2 subsequent siblings)
  4 siblings, 0 replies; 6+ messages in thread
From: John Garry @ 2024-02-22  9:00 UTC (permalink / raw)
  To: jiri, davem, edumazet, kuba, pabeni, gregkh
  Cc: netdev, linux-staging, masahiroy, John Garry

The version is same as the default, so don't bother filling it in.

Signed-off-by: John Garry <john.g.garry@oracle.com>
---
 drivers/net/team/team.c | 2 --
 1 file changed, 2 deletions(-)

diff --git a/drivers/net/team/team.c b/drivers/net/team/team.c
index f575f225d417..0a44bbdcfb7b 100644
--- a/drivers/net/team/team.c
+++ b/drivers/net/team/team.c
@@ -25,7 +25,6 @@
 #include <net/genetlink.h>
 #include <net/netlink.h>
 #include <net/sch_generic.h>
-#include <generated/utsrelease.h>
 #include <linux/if_team.h>
 
 #define DRV_NAME "team"
@@ -2074,7 +2073,6 @@ static void team_ethtool_get_drvinfo(struct net_device *dev,
 				     struct ethtool_drvinfo *drvinfo)
 {
 	strscpy(drvinfo->driver, DRV_NAME, sizeof(drvinfo->driver));
-	strscpy(drvinfo->version, UTS_RELEASE, sizeof(drvinfo->version));
 }
 
 static int team_ethtool_get_link_ksettings(struct net_device *dev,
-- 
2.31.1


^ permalink raw reply related	[flat|nested] 6+ messages in thread

* [PATCH 3/3] staging: octeon: Don't bother filling in ethtool driver version
  2024-02-22  9:00 [PATCH net-next 0/3] net/staging: Don't bother filling in ethtool driver version John Garry
  2024-02-22  9:00 ` [PATCH net-next 1/3] rocker: " John Garry
  2024-02-22  9:00 ` [PATCH net-next 2/3] net: team: " John Garry
@ 2024-02-22  9:00 ` John Garry
  2024-02-22 13:24 ` [PATCH net-next 0/3] net/staging: " Jiri Pirko
  2024-02-24  3:10 ` patchwork-bot+netdevbpf
  4 siblings, 0 replies; 6+ messages in thread
From: John Garry @ 2024-02-22  9:00 UTC (permalink / raw)
  To: jiri, davem, edumazet, kuba, pabeni, gregkh
  Cc: netdev, linux-staging, masahiroy, John Garry

The version is same as the default, so don't bother filling it in.

Signed-off-by: John Garry <john.g.garry@oracle.com>
---
 drivers/staging/octeon/ethernet-mdio.c | 2 --
 1 file changed, 2 deletions(-)

diff --git a/drivers/staging/octeon/ethernet-mdio.c b/drivers/staging/octeon/ethernet-mdio.c
index b3049108edc4..211423059e30 100644
--- a/drivers/staging/octeon/ethernet-mdio.c
+++ b/drivers/staging/octeon/ethernet-mdio.c
@@ -10,7 +10,6 @@
 #include <linux/phy.h>
 #include <linux/ratelimit.h>
 #include <linux/of_mdio.h>
-#include <generated/utsrelease.h>
 #include <net/dst.h>
 
 #include "octeon-ethernet.h"
@@ -22,7 +21,6 @@ static void cvm_oct_get_drvinfo(struct net_device *dev,
 				struct ethtool_drvinfo *info)
 {
 	strscpy(info->driver, KBUILD_MODNAME, sizeof(info->driver));
-	strscpy(info->version, UTS_RELEASE, sizeof(info->version));
 	strscpy(info->bus_info, "Builtin", sizeof(info->bus_info));
 }
 
-- 
2.31.1


^ permalink raw reply related	[flat|nested] 6+ messages in thread

* Re: [PATCH net-next 0/3] net/staging: Don't bother filling in ethtool driver version
  2024-02-22  9:00 [PATCH net-next 0/3] net/staging: Don't bother filling in ethtool driver version John Garry
                   ` (2 preceding siblings ...)
  2024-02-22  9:00 ` [PATCH 3/3] staging: octeon: " John Garry
@ 2024-02-22 13:24 ` Jiri Pirko
  2024-02-24  3:10 ` patchwork-bot+netdevbpf
  4 siblings, 0 replies; 6+ messages in thread
From: Jiri Pirko @ 2024-02-22 13:24 UTC (permalink / raw)
  To: John Garry
  Cc: davem, edumazet, kuba, pabeni, gregkh, netdev, linux-staging,
	masahiroy

Thu, Feb 22, 2024 at 10:00:39AM CET, john.g.garry@oracle.com wrote:
>The drivers included in this series set the ethtool driver version to the
>same as the default, UTS_RELEASE, so don't both doing this.
>
>As noted by Masahiro in [0], with CONFIG_MODVERSIONS=y, some drivers could
>be built as modules against a different kernel tree with differing
>UTS_RELEASE. As such, these changes could lead to a change in behaviour.
>However, defaulting to the core kernel UTS_RELEASE would be expected
>behaviour.
>
>These patches are for netdev and staging trees, and I hope that the
>respective maintainers can pick up the patches separately.
>
>[0] https://lore.kernel.org/all/CAK7LNASfTW+OMk1cJJWb4E6P+=k0FEsm_=6FDfDF_mTrxJCSMQ@mail.gmail.com/
>
>John Garry (3):
>  rocker: Don't bother filling in ethtool driver version
>  net: team: Don't bother filling in ethtool driver version
>  staging: octeon: Don't bother filling in ethtool driver version
>
> drivers/net/ethernet/rocker/rocker_main.c | 2 --
> drivers/net/team/team.c                   | 2 --
> drivers/staging/octeon/ethernet-mdio.c    | 2 --
> 3 files changed, 6 deletions(-)

The set looks fine to me.

Reviewed-by: Jiri Pirko <jiri@nvidia.com>

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: [PATCH net-next 0/3] net/staging: Don't bother filling in ethtool driver version
  2024-02-22  9:00 [PATCH net-next 0/3] net/staging: Don't bother filling in ethtool driver version John Garry
                   ` (3 preceding siblings ...)
  2024-02-22 13:24 ` [PATCH net-next 0/3] net/staging: " Jiri Pirko
@ 2024-02-24  3:10 ` patchwork-bot+netdevbpf
  4 siblings, 0 replies; 6+ messages in thread
From: patchwork-bot+netdevbpf @ 2024-02-24  3:10 UTC (permalink / raw)
  To: John Garry
  Cc: jiri, davem, edumazet, kuba, pabeni, gregkh, netdev,
	linux-staging, masahiroy

Hello:

This series was applied to netdev/net-next.git (main)
by Jakub Kicinski <kuba@kernel.org>:

On Thu, 22 Feb 2024 09:00:39 +0000 you wrote:
> The drivers included in this series set the ethtool driver version to the
> same as the default, UTS_RELEASE, so don't both doing this.
> 
> As noted by Masahiro in [0], with CONFIG_MODVERSIONS=y, some drivers could
> be built as modules against a different kernel tree with differing
> UTS_RELEASE. As such, these changes could lead to a change in behaviour.
> However, defaulting to the core kernel UTS_RELEASE would be expected
> behaviour.
> 
> [...]

Here is the summary with links:
  - [net-next,1/3] rocker: Don't bother filling in ethtool driver version
    https://git.kernel.org/netdev/net-next/c/23fe265fbfbc
  - [net-next,2/3] net: team: Don't bother filling in ethtool driver version
    https://git.kernel.org/netdev/net-next/c/0a4e1b453a8a
  - [3/3] staging: octeon: Don't bother filling in ethtool driver version
    (no matching commit)

You are awesome, thank you!
-- 
Deet-doot-dot, I am a bot.
https://korg.docs.kernel.org/patchwork/pwbot.html



^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2024-02-24  3:10 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-02-22  9:00 [PATCH net-next 0/3] net/staging: Don't bother filling in ethtool driver version John Garry
2024-02-22  9:00 ` [PATCH net-next 1/3] rocker: " John Garry
2024-02-22  9:00 ` [PATCH net-next 2/3] net: team: " John Garry
2024-02-22  9:00 ` [PATCH 3/3] staging: octeon: " John Garry
2024-02-22 13:24 ` [PATCH net-next 0/3] net/staging: " Jiri Pirko
2024-02-24  3:10 ` patchwork-bot+netdevbpf

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).