net: 8021q: remove unneeded MODULE_VERSION() usage
Subsystems (13)
PATCH 1/7 net: 8021q: remove unneeded MODULE_VERSION() usage
Remove MODULE_VERSION(), as it isn't needed at all: the only version making sense is the kernel version.
--- net/8021q/vlan.c | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-)
net/8021q/vlan.c +1 -7
@@ -36,15 +36,10 @@#include "vlan.h" #include "vlanproc.h" -#define DRV_VERSION "1.8" -/* Global VLAN variables */ unsigned int vlan_net_id__read_mostly ; -const char vlan_fullname[] ="802.1Q VLAN Support" ; -const char vlan_version[] =DRV_VERSION ; -/* End of global variables definitions. */ static int vlan_group_prealloc_vid(struct vlan_group *vg,
@@ -687,7 +682,7 @@ static int __init vlan_proto_init(void) {int err; -pr_info ("%s v%s\n" , vlan_fullname, vlan_version); +pr_info ("802.1Q VLAN Support\n" ); err =register_pernet_subsys (&vlan_net_ops);if (err <0 )
@@ -743,4 +738,3 @@ module_init(vlan_proto_init);module_exit (vlan_cleanup_module);MODULE_LICENSE ("GPL" ); -MODULE_VERSION (DRV_VERSION );
Signature · 1 line
2.11.0
PATCH 2/7 net: batman-adv: remove unneeded MODULE_VERSION() usage
Remove MODULE_VERSION(), as it isn't needed at all: the only version making sense is the kernel version.
--- net/batman-adv/main.c | 1 - 1 file changed, 1 deletion(-)
net/batman-adv/main.c +0 -1
@@ -747,6 +747,5 @@ MODULE_LICENSE("GPL");MODULE_AUTHOR (BATADV_DRIVER_AUTHOR );MODULE_DESCRIPTION (BATADV_DRIVER_DESC );MODULE_SUPPORTED_DEVICE (BATADV_DRIVER_DEVICE ); -MODULE_VERSION (BATADV_SOURCE_VERSION );MODULE_ALIAS_RTNL_LINK ("batadv" );MODULE_ALIAS_GENL_FAMILY (BATADV_NL_NAME );
Signature · 1 line
2.11.0
Sven Eckelmann
maintainerRe: [PATCH 2/7] net: batman-adv: remove unneeded MODULE_VERSION() usage
Quoted 2 lines · metux IT consult
Remove
MODULE_VERSION(), as it isn't needed at all: the only version making sense is the kernel version.
Is there some explanation besides an opinion? Some kind goal which you want to achieve with it maybe?
At least for us it was an easy way to query the release cycle information via batctl. Which made it easier for us to roughly figure out what an reporter/ inquirer was using - independent of whether he is using the in-kernel version or a backported version.
Loosing this source of information and breaking parts of batctl and other tools (respondd, ...) is not the end of the world. But I would at least know why this is now necessary.
Kind regards,
Sven
Jakub Kicinski
maintainerRe: [PATCH 2/7] net: batman-adv: remove unneeded MODULE_VERSION() usage
Quoted 7 lines · On Sat, 05 Dec 2020 08:06:40 +0100 Sven Eckelmann wrote:
Quoted 2 lines · metux IT consult
Remove
MODULE_VERSION(), as it isn't needed at all: the only version making sense is the kernel version.Is there some explanation besides an opinion? Some kind goal which you want to achieve with it maybe?
Quoted 8 lines
At least for us it was an easy way to query the release cycle information via batctl. Which made it easier for us to roughly figure out what an reporter/ inquirer was using - independent of whether he is using the in-kernel version or a backported version.
Loosing this source of information and breaking parts of batctl and other tools (respondd, ...) is not the end of the world. But I would at least know why this is now necessary.
No, no, if it breaks your user space we can't do it, let's leave batman alone, then.
I think this is mostly a clean up. In-tree the kernel version is usually far more dependable because backports don't include version bumps.
Indeed it would be great if the clear motivation was spelled out in the cover letter and/or patches.
Re: [PATCH 2/7] net: batman-adv: remove unneeded MODULE_VERSION() usage
In reply to Sven EckelmannOn 05.12.20 08:06, Sven Eckelmann wrote:
Hi,
Quoted 2 lines
Is there some explanation besides an opinion? Some kind goal which you want to achieve with it maybe?
Just a cleanup. I've been under the impression that this version is just an relic from oot times.
Quoted 4 lines
At least for us it was an easy way to query the release cycle information via batctl. Which made it easier for us to roughly figure out what an reporter/ inquirer was using - independent of whether he is using the in-kernel version or a backported version.
Is the OOT scenario still valid ?
Quoted 3 lines
Loosing this source of information and breaking parts of batctl and other tools (respondd, ...) is not the end of the world. But I would at least know why this is now necessary.
Okay, if this particular information indeed has a practical value, we should keep it. Taking it as a NAK.
Perhaps we should add a comment what it's used for and make sure, the version number is properly maintained.
The problem I see w/ those version fields is that we have lots of changes in the kernel tree, w/o the version number being increased - making this information at least doubtful.
--mtx
Signature · 8 lines
--- Hinweis: unverschlüsselte E-Mails können leicht abgehört und manipuliert werden ! Für eine vertrauliche Kommunikation senden Sie bitte ihren GPG/PGP-Schlüssel zu. --- Enrico Weigelt, metux IT consult Free software and Linux embedded engineering [email protected] -- +49-151-27565287
Sven Eckelmann
maintainerRe: [PATCH 2/7] net: batman-adv: remove unneeded MODULE_VERSION() usage
Quoted 5 lines · metux IT consult
Quoted 2 lines
Is there some explanation besides an opinion? Some kind goal which you want to achieve with it maybe?
Just a cleanup. I've been under the impression that this version is just an relic from oot times.
There are various entities which are loving to use the distro kernel and replace the batman-adv module with a backport from a newer kernel version. Similar to what is done in OpenWrt for the wifi drivers.
Quoted 6 lines
Quoted 4 lines
At least for us it was an easy way to query the release cycle information via batctl. Which made it easier for us to roughly figure out what an reporter/ inquirer was using - independent of whether he is using the in-kernel version or a backported version.
Is the OOT scenario still valid ?
Since the backport is OOT - yes, it is still valid.
Kind regards,
Sven
PATCH 3/7 net: ipv4: remove unneeded MODULE_VERSION() usage
In reply to Enrico Weigelt, metux IT consultRemove MODULE_VERSION(), as it isn't needed at all: the only version making sense is the kernel version.
--- net/ipv4/tcp_cubic.c | 1 - net/ipv4/tcp_illinois.c | 1 - net/ipv4/tcp_nv.c | 1 - 3 files changed, 3 deletions(-)
net/ipv4/tcp_cubic.c +0 -1
@@ -537,4 +537,3 @@ module_exit(cubictcp_unregister);MODULE_AUTHOR ("Sangtae Ha, Stephen Hemminger" );MODULE_LICENSE ("GPL" );MODULE_DESCRIPTION ("CUBIC TCP" ); -MODULE_VERSION ("2.3" );
net/ipv4/tcp_illinois.c +0 -1
@@ -355,4 +355,3 @@ module_exit(tcp_illinois_unregister);MODULE_AUTHOR ("Stephen Hemminger, Shao Liu" );MODULE_LICENSE ("GPL" );MODULE_DESCRIPTION ("TCP Illinois" ); -MODULE_VERSION ("1.0" );
net/ipv4/tcp_nv.c +0 -1
@@ -499,4 +499,3 @@ module_exit(tcpnv_unregister);MODULE_AUTHOR ("Lawrence Brakmo" );MODULE_LICENSE ("GPL" );MODULE_DESCRIPTION ("TCP NV" ); -MODULE_VERSION ("1.0" );
Signature · 1 line
2.11.0
PATCH 4/7 net: bluetooth: remove unneeded MODULE_VERSION() usage
In reply to Enrico Weigelt, metux IT consultRemove MODULE_VERSION(), as it isn't needed at all: the only version making sense is the kernel version.
--- net/bluetooth/6lowpan.c | 3 --- net/bluetooth/af_bluetooth.c | 1 - net/bluetooth/bnep/core.c | 1 - net/bluetooth/cmtp/core.c | 1 - net/bluetooth/hidp/core.c | 1 - net/bluetooth/rfcomm/core.c | 1 - 6 files changed, 8 deletions(-)
net/bluetooth/6lowpan.c +0 -3
@@ -21,8 +21,6 @@#include <net/6lowpan.h> /* for the compression support */ -#define VERSION "0.1" -static struct dentry *lowpan_enable_debugfs;static struct dentry *lowpan_control_debugfs;
@@ -1316,5 +1314,4 @@ module_exit(bt_6lowpan_exit);MODULE_AUTHOR ("Jukka Rissanen <[email protected]>" );MODULE_DESCRIPTION ("Bluetooth 6LoWPAN" ); -MODULE_VERSION (VERSION );MODULE_LICENSE ("GPL" );
net/bluetooth/af_bluetooth.c +0 -1
@@ -799,6 +799,5 @@ module_exit(bt_exit);MODULE_AUTHOR ("Marcel Holtmann <[email protected]>" );MODULE_DESCRIPTION ("Bluetooth Core ver " VERSION ); -MODULE_VERSION (VERSION );MODULE_LICENSE ("GPL" );MODULE_ALIAS_NETPROTO (PF_BLUETOOTH );
net/bluetooth/bnep/core.c +0 -1
@@ -764,6 +764,5 @@ MODULE_PARM_DESC(compress_dst, "Compress destination headers");MODULE_AUTHOR ("Marcel Holtmann <[email protected]>" );MODULE_DESCRIPTION ("Bluetooth BNEP ver " VERSION ); -MODULE_VERSION (VERSION );MODULE_LICENSE ("GPL" );MODULE_ALIAS ("bt-proto-4" );
net/bluetooth/cmtp/core.c +0 -1
@@ -511,6 +511,5 @@ module_exit(cmtp_exit);MODULE_AUTHOR ("Marcel Holtmann <[email protected]>" );MODULE_DESCRIPTION ("Bluetooth CMTP ver " VERSION ); -MODULE_VERSION (VERSION );MODULE_LICENSE ("GPL" );MODULE_ALIAS ("bt-proto-5" );
net/bluetooth/hidp/core.c +0 -1
@@ -1475,6 +1475,5 @@ module_exit(hidp_exit);MODULE_AUTHOR ("Marcel Holtmann <[email protected]>" );MODULE_AUTHOR ("David Herrmann <[email protected]>" );MODULE_DESCRIPTION ("Bluetooth HIDP ver " VERSION ); -MODULE_VERSION (VERSION );MODULE_LICENSE ("GPL" );MODULE_ALIAS ("bt-proto-6" );
net/bluetooth/rfcomm/core.c +0 -1
@@ -2240,6 +2240,5 @@ MODULE_PARM_DESC(l2cap_ertm, "Use L2CAP ERTM mode for connection");MODULE_AUTHOR ("Marcel Holtmann <[email protected]>" );MODULE_DESCRIPTION ("Bluetooth RFCOMM ver " VERSION ); -MODULE_VERSION (VERSION );MODULE_LICENSE ("GPL" );MODULE_ALIAS ("bt-proto-3" );
Signature · 1 line
2.11.0
PATCH 5/7 net: bridge: remove unneeded MODULE_VERSION() usage
In reply to Enrico Weigelt, metux IT consultRemove MODULE_VERSION(), as it isn't needed at all: the only version making sense is the kernel version.
--- net/bridge/br.c | 1 - 1 file changed, 1 deletion(-)
net/bridge/br.c +0 -1
@@ -399,5 +399,4 @@ static void __exit br_deinit(void) module_init(br_init) module_exit(br_deinit) MODULE_LICENSE("GPL"); -MODULE_VERSION (BR_VERSION );MODULE_ALIAS_RTNL_LINK ("bridge" );
Signature · 1 line
2.11.0
PATCH 6/7 net: vmw_vsock: remove unneeded MODULE_VERSION() usage
In reply to Enrico Weigelt, metux IT consultRemove MODULE_VERSION(), as it isn't needed at all: the only version making sense is the kernel version.
--- net/vmw_vsock/af_vsock.c | 1 - net/vmw_vsock/hyperv_transport.c | 1 - net/vmw_vsock/vmci_transport.c | 1 - 3 files changed, 3 deletions(-)
net/vmw_vsock/af_vsock.c +0 -1
@@ -2238,5 +2238,4 @@ module_exit(vsock_exit);MODULE_AUTHOR ("VMware, Inc." );MODULE_DESCRIPTION ("VMware Virtual Socket Family" ); -MODULE_VERSION ("1.0.2.0-k" );MODULE_LICENSE ("GPL v2" );
net/vmw_vsock/hyperv_transport.c +0 -1
@@ -929,6 +929,5 @@ module_init(hvs_init);module_exit (hvs_exit);MODULE_DESCRIPTION ("Hyper-V Sockets" ); -MODULE_VERSION ("1.0.0" );MODULE_LICENSE ("GPL" );MODULE_ALIAS_NETPROTO (PF_VSOCK );
net/vmw_vsock/vmci_transport.c +0 -1
@@ -2140,7 +2140,6 @@ module_exit(vmci_transport_exit);MODULE_AUTHOR ("VMware, Inc." );MODULE_DESCRIPTION ("VMCI transport for Virtual Sockets" ); -MODULE_VERSION ("1.0.5.0-k" );MODULE_LICENSE ("GPL v2" );MODULE_ALIAS ("vmware_vsock" );MODULE_ALIAS_NETPROTO (PF_VSOCK );
Signature · 1 line
2.11.0
PATCH 7/7 net: tipc: remove unneeded MODULE_VERSION() usage
In reply to Enrico Weigelt, metux IT consultRemove MODULE_VERSION(), as it isn't needed at all: the only version making sense is the kernel version.
--- net/tipc/core.c | 1 - 1 file changed, 1 deletion(-)
net/tipc/core.c +0 -1
@@ -227,4 +227,3 @@ module_exit(tipc_exit);MODULE_DESCRIPTION ("TIPC: Transparent Inter Process Communication" );MODULE_LICENSE ("Dual BSD/GPL" ); -MODULE_VERSION (TIPC_MOD_VER );
Signature · 1 line
2.11.0
This is automated email and please do not reply to this email!
Dear submitter,
Thank you for submitting the patches to the linux bluetooth mailing list. This is a CI test results with your patch series:
PW Link:https://patchwork.kernel.org/project/bluetooth/list/?series=394659
---Test result---
##############################
Test: CheckPatch - FAIL
Output:
net: ipv4: remove unneeded MODULE_VERSION() usage
WARNING: From:/Signed-off-by: email name mismatch: 'From: "Enrico Weigelt, metux IT consult" <[email protected]>' != 'Signed-off-by: Enrico Weigelt <[email protected]>'
total: 0 errors, 1 warnings, 0 checks, 9 lines checked
NOTE: For some of the reported defects, checkpatch may be able to
mechanically convert to the typical style using --fix or --fix-inplace.
"[PATCH] net: ipv4: remove unneeded MODULE_VERSION() usage" has style problems, please review.
NOTE: If any of the errors are false positives, please report
them to the maintainer, see CHECKPATCH in MAINTAINERS.
##############################
Test: CheckGitLint - PASS
##############################
Test: CheckBuildK - PASS
---
Regards,
Linux Bluetooth
Jakub Kicinski
maintainerQuoted 4 lines · metux IT consult
Remove
MODULE_VERSION(), as it isn't needed at all: the only version making sense is the kernel version.Signed-off-by Enrico Weigelt, metux IT consult <[email protected]>
Thanks for the patches. Please drop the "metux IT consult" from the addresses. The from space is supposed to be for your name.
Quoted 6 lines
net/8021q/vlan.c +0
-0@@ -36,15 +36,10 @@#include "vlan.h"
net/8021q/vlan.c line 46
Quoted 10 lines
net/8021q/vlan.c +0
-4#include "vlanproc.h" -#define DRV_VERSION "1.8" -/* Global VLAN variables */ unsigned int vlan_net_id__read_mostly ; -const char vlan_fullname[] ="802.1Q VLAN Support" ; -const char vlan_version[] =DRV_VERSION ;
This patches does not build. Please redo it more carefully.
You'll need to fix and resend the entire series. When you do so please provide a cover letter, even if it only contains a couple of sentences and separate the patches for bluetooth and batman-adv out as stand alone patches, so the respective maintainers can pick them up.
Quoted 9 lines · Jakub Kicinski
Quoted 4 lines · metux IT consult
Remove
MODULE_VERSION(), as it isn't needed at all: the only version making sense is the kernel version.Signed-off-by Enrico Weigelt, metux IT consult <[email protected]>Thanks for the patches. Please drop the "metux IT consult" from the addresses. The from space is supposed to be for your name.
If you _really_ want this superfluous 'metux IT consult' content in your signature, and I don't think you should, use parentheses around it.
Enrico Weigelt (metux IT consult) <[email protected]>
Using a comma makes copy/paste into an email client think it's two addresses.
Quoted 29 lines · metux IT consult
Remove
MODULE_VERSION(), as it isn't needed at all: the only version making sense is the kernel version.Signed-off-by Enrico Weigelt, metux IT consult <[email protected]>--- net/8021q/vlan.c | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-)net/8021q/vlan.c +0
-5@@ -36,15 +36,10 @@#include "vlan.h" #include "vlanproc.h" -#define DRV_VERSION "1.8" -/* Global VLAN variables */ unsigned int vlan_net_id__read_mostly ; -const char vlan_fullname[] ="802.1Q VLAN Support" ; -const char vlan_version[] =DRV_VERSION ; -/* End of global variables definitions. */ static int vlan_group_prealloc_vid(struct vlan_group *vg,
net/8021q/vlan.c static int __init vlan_proto_init(void) · line 685
Quoted 5 lines
net/8021q/vlan.c +1
-1@@ -687,7 +682,7 @@ static int __init vlan_proto_init(void) {int err; -pr_info ("%s v%s\n" , vlan_fullname, vlan_version); +pr_info ("802.1Q VLAN Support\n" );
How do we feel about deleting this not really informative message altogether in a future patch?
Quoted 33 lines · Vladimir Oltean
Quoted 32 lines · metux IT consult
Remove
MODULE_VERSION(), as it isn't needed at all: the only version making sense is the kernel version.Signed-off-by Enrico Weigelt, metux IT consult <[email protected]>--- net/8021q/vlan.c | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-)net/8021q/vlan.c +0
-5@@ -36,15 +36,10 @@#include "vlan.h" #include "vlanproc.h" -#define DRV_VERSION "1.8" -/* Global VLAN variables */ unsigned int vlan_net_id__read_mostly ; -const char vlan_fullname[] ="802.1Q VLAN Support" ; -const char vlan_version[] =DRV_VERSION ; -/* End of global variables definitions. */ static int vlan_group_prealloc_vid(struct vlan_group *vg,@@ -687,7 +682,7 @@ static int __init vlan_proto_init(void) {int err;
Quoted 5 lines
net/8021q/vlan.c static int __init vlan_proto_init(void) · line 685
Quoted 2 lines
net/8021q/vlan.c +1
-1-pr_info ("%s v%s\n" , vlan_fullname, vlan_version); +pr_info ("802.1Q VLAN Support\n" );How do we feel about deleting this not really informative message altogether in a future patch?
It too should be removed. If drivers are working properly, they are quiet.
Quoted 5 lines · Greg KH
Quoted 2 lines
How do we feel about deleting this not really informative message altogether in a future patch?
It too should be removed. If drivers are working properly, they are quiet.
Just sent a separate patch for removing this message. I'll rebase my patch queue when this patch went through.
--mtx
Signature · 8 lines
--- Hinweis: unverschlüsselte E-Mails können leicht abgehört und manipuliert werden ! Für eine vertrauliche Kommunikation senden Sie bitte ihren GPG/PGP-Schlüssel zu. --- Enrico Weigelt, metux IT consult Free software and Linux embedded engineering [email protected] -- +49-151-27565287