]> git.ipfire.org Git - thirdparty/kernel/stable-queue.git/blame - releases/4.19.54/net-tulip-de4x5-drop-redundant-module_device_table.patch
Linux 4.19.54
[thirdparty/kernel/stable-queue.git] / releases / 4.19.54 / net-tulip-de4x5-drop-redundant-module_device_table.patch
CommitLineData
a15a8890
SL
1From c6fc2e580a1af3e201909459c849afe64d11ee03 Mon Sep 17 00:00:00 2001
2From: Kees Cook <keescook@chromium.org>
3Date: Fri, 24 May 2019 13:20:19 -0700
4Subject: net: tulip: de4x5: Drop redundant MODULE_DEVICE_TABLE()
5
6[ Upstream commit 3e66b7cc50ef921121babc91487e1fb98af1ba6e ]
7
8Building with Clang reports the redundant use of MODULE_DEVICE_TABLE():
9
10drivers/net/ethernet/dec/tulip/de4x5.c:2110:1: error: redefinition of '__mod_eisa__de4x5_eisa_ids_device_table'
11MODULE_DEVICE_TABLE(eisa, de4x5_eisa_ids);
12^
13./include/linux/module.h:229:21: note: expanded from macro 'MODULE_DEVICE_TABLE'
14extern typeof(name) __mod_##type##__##name##_device_table \
15 ^
16<scratch space>:90:1: note: expanded from here
17__mod_eisa__de4x5_eisa_ids_device_table
18^
19drivers/net/ethernet/dec/tulip/de4x5.c:2100:1: note: previous definition is here
20MODULE_DEVICE_TABLE(eisa, de4x5_eisa_ids);
21^
22./include/linux/module.h:229:21: note: expanded from macro 'MODULE_DEVICE_TABLE'
23extern typeof(name) __mod_##type##__##name##_device_table \
24 ^
25<scratch space>:85:1: note: expanded from here
26__mod_eisa__de4x5_eisa_ids_device_table
27^
28
29This drops the one further from the table definition to match the common
30use of MODULE_DEVICE_TABLE().
31
32Fixes: 07563c711fbc ("EISA bus MODALIAS attributes support")
33Signed-off-by: Kees Cook <keescook@chromium.org>
34Signed-off-by: David S. Miller <davem@davemloft.net>
35Signed-off-by: Sasha Levin <sashal@kernel.org>
36---
37 drivers/net/ethernet/dec/tulip/de4x5.c | 1 -
38 1 file changed, 1 deletion(-)
39
40diff --git a/drivers/net/ethernet/dec/tulip/de4x5.c b/drivers/net/ethernet/dec/tulip/de4x5.c
41index 66535d1653f6..f16853c3c851 100644
42--- a/drivers/net/ethernet/dec/tulip/de4x5.c
43+++ b/drivers/net/ethernet/dec/tulip/de4x5.c
44@@ -2107,7 +2107,6 @@ static struct eisa_driver de4x5_eisa_driver = {
45 .remove = de4x5_eisa_remove,
46 }
47 };
48-MODULE_DEVICE_TABLE(eisa, de4x5_eisa_ids);
49 #endif
50
51 #ifdef CONFIG_PCI
52--
532.20.1
54