drivers: Remove inclusion of vermagic header
authorLeon Romanovsky <leonro@mellanox.com>
Sun, 19 Apr 2020 14:18:47 +0000 (17:18 +0300)
committerDavid S. Miller <davem@davemloft.net>
Tue, 21 Apr 2020 20:27:37 +0000 (13:27 -0700)
Get rid of linux/vermagic.h includes, so that MODULE_ARCH_VERMAGIC from
the arch header arch/x86/include/asm/module.h won't be redefined.

  In file included from ./include/linux/module.h:30,
                   from drivers/net/ethernet/3com/3c515.c:56:
  ./arch/x86/include/asm/module.h:73: warning: "MODULE_ARCH_VERMAGIC"
redefined
     73 | # define MODULE_ARCH_VERMAGIC MODULE_PROC_FAMILY
        |
  In file included from drivers/net/ethernet/3com/3c515.c:25:
  ./include/linux/vermagic.h:28: note: this is the location of the
previous definition
     28 | #define MODULE_ARCH_VERMAGIC ""
        |

Fixes: 6bba2e89a88c ("net/3com: Delete driver and module versions from 3com drivers")
Co-developed-by: Borislav Petkov <bp@suse.de>
Signed-off-by: Borislav Petkov <bp@suse.de>
Acked-by: Shannon Nelson <snelson@pensando.io> # ionic
Acked-by: Sebastian Reichel <sre@kernel.org> # power
Signed-off-by: Leon Romanovsky <leonro@mellanox.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/bonding/bonding_priv.h
drivers/net/ethernet/3com/3c509.c
drivers/net/ethernet/3com/3c515.c
drivers/net/ethernet/adaptec/starfire.c
drivers/net/ethernet/pensando/ionic/ionic_main.c
drivers/power/supply/test_power.c
net/ethtool/ioctl.c

index 45b77bc8c7b3e5409292aae231c030c89b915a2f..48cdf3a49a7d745ff50dc9ad1e7ca90ebd3c8afc 100644 (file)
@@ -14,7 +14,7 @@
 
 #ifndef _BONDING_PRIV_H
 #define _BONDING_PRIV_H
-#include <linux/vermagic.h>
+#include <generated/utsrelease.h>
 
 #define DRV_NAME       "bonding"
 #define DRV_DESCRIPTION        "Ethernet Channel Bonding Driver"
index b762176a140630b0a66637d2d59f7856243b8e0e..139d0120f5114e416e2ef71effba41a50e66e668 100644 (file)
@@ -85,7 +85,6 @@
 #include <linux/device.h>
 #include <linux/eisa.h>
 #include <linux/bitops.h>
-#include <linux/vermagic.h>
 
 #include <linux/uaccess.h>
 #include <asm/io.h>
index 90312fcd6319a27a72d825c5de57a219d7cb7c66..47b4215bb93b9c70c1a83f6103c0ef17d9399795 100644 (file)
@@ -22,7 +22,6 @@
 
 */
 
-#include <linux/vermagic.h>
 #define DRV_NAME               "3c515"
 
 #define CORKSCREW 1
index 2db42211329f53da4511d82757a1efb18a2d2ff8..a64191fc2af9079adda61155b25f9d8f4322c855 100644 (file)
@@ -45,7 +45,6 @@
 #include <asm/processor.h>             /* Processor type for cache alignment. */
 #include <linux/uaccess.h>
 #include <asm/io.h>
-#include <linux/vermagic.h>
 
 /*
  * The current frame processor firmware fails to checksum a fragment
index 588c62e9add7136e480770d36bf9b2b02e42f6a9..3ed1505120919b3e268af411d89e0d56d1b4d539 100644 (file)
@@ -6,7 +6,7 @@
 #include <linux/module.h>
 #include <linux/netdevice.h>
 #include <linux/utsname.h>
-#include <linux/vermagic.h>
+#include <generated/utsrelease.h>
 
 #include "ionic.h"
 #include "ionic_bus.h"
index 65c23ef6408df2cb03b284624173860c9bb9ecbf..b3c05ff05783fb64494d9e09075ac0c1cde1eafd 100644 (file)
@@ -16,7 +16,7 @@
 #include <linux/power_supply.h>
 #include <linux/errno.h>
 #include <linux/delay.h>
-#include <linux/vermagic.h>
+#include <generated/utsrelease.h>
 
 enum test_power_id {
        TEST_AC,
index 593fa665f820686b755e18c6c9bfe0d83c51d6fc..226d5ecdd5673942d0e5d85a8798f84af2c12afd 100644 (file)
@@ -17,7 +17,6 @@
 #include <linux/phy.h>
 #include <linux/bitops.h>
 #include <linux/uaccess.h>
-#include <linux/vermagic.h>
 #include <linux/vmalloc.h>
 #include <linux/sfp.h>
 #include <linux/slab.h>
@@ -28,7 +27,7 @@
 #include <net/xdp_sock.h>
 #include <net/flow_offload.h>
 #include <linux/ethtool_netlink.h>
-
+#include <generated/utsrelease.h>
 #include "common.h"
 
 /*