File tree Expand file tree Collapse file tree 6 files changed +24
-5
lines changed Expand file tree Collapse file tree 6 files changed +24
-5
lines changed Original file line number Diff line number Diff line change @@ -20,8 +20,8 @@ if NET_VENDOR_ATHEROS
20
20
config AG71XX
21
21
tristate "Atheros AR7XXX/AR9XXX built-in ethernet mac support"
22
22
depends on ATH79
23
- select NET_SELFTESTS
24
23
select PHYLINK
24
+ imply NET_SELFTESTS
25
25
help
26
26
If you wish to compile a kernel for AR7XXX/91XXX and enable
27
27
ethernet support, then you should always answer Y to this.
Original file line number Diff line number Diff line change @@ -26,8 +26,8 @@ config FEC
26
26
ARCH_MXC || SOC_IMX28 || COMPILE_TEST)
27
27
default ARCH_MXC || SOC_IMX28 if ARM
28
28
select CRC32
29
- select NET_SELFTESTS
30
29
select PHYLIB
30
+ imply NET_SELFTESTS
31
31
imply PTP_1588_CLOCK
32
32
help
33
33
Say Y here if you want to use the built-in 10/100 Fast ethernet
Original file line number Diff line number Diff line change 4
4
5
5
#include <linux/ethtool.h>
6
6
7
+ #if IS_ENABLED (CONFIG_NET_SELFTESTS )
8
+
7
9
void net_selftest (struct net_device * ndev , struct ethtool_test * etest ,
8
10
u64 * buf );
9
11
int net_selftest_get_count (void );
10
12
void net_selftest_get_strings (u8 * data );
11
13
14
+ #else
15
+
16
+ static inline void net_selftest (struct net_device * ndev , struct ethtool_test * etest ,
17
+ u64 * buf )
18
+ {
19
+ }
20
+
21
+ static inline int net_selftest_get_count (void )
22
+ {
23
+ return 0 ;
24
+ }
25
+
26
+ static inline void net_selftest_get_strings (u8 * data )
27
+ {
28
+ }
29
+
30
+ #endif
12
31
#endif /* _NET_SELFTESTS */
Original file line number Diff line number Diff line change @@ -431,7 +431,7 @@ config SOCK_VALIDATE_XMIT
431
431
432
432
config NET_SELFTESTS
433
433
def_tristate PHYLIB
434
- depends on PHYLIB
434
+ depends on PHYLIB && INET
435
435
436
436
config NET_SOCK_MSG
437
437
bool
Original file line number Diff line number Diff line change @@ -21,6 +21,7 @@ obj-$(CONFIG_NETPOLL) += netpoll.o
21
21
obj-$(CONFIG_FIB_RULES) += fib_rules.o
22
22
obj-$(CONFIG_TRACEPOINTS) += net-traces.o
23
23
obj-$(CONFIG_NET_DROP_MONITOR) += drop_monitor.o
24
+ obj-$(CONFIG_NET_SELFTESTS) += selftests.o
24
25
obj-$(CONFIG_NETWORK_PHY_TIMESTAMPING) += timestamping.o
25
26
obj-$(CONFIG_NET_PTP_CLASSIFY) += ptp_classifier.o
26
27
obj-$(CONFIG_CGROUP_NET_PRIO) += netprio_cgroup.o
@@ -33,7 +34,6 @@ obj-$(CONFIG_NET_DEVLINK) += devlink.o
33
34
obj-$(CONFIG_GRO_CELLS) += gro_cells.o
34
35
obj-$(CONFIG_FAILOVER) += failover.o
35
36
ifeq ($(CONFIG_INET ) ,y)
36
- obj-$(CONFIG_NET_SELFTESTS) += selftests.o
37
37
obj-$(CONFIG_NET_SOCK_MSG) += skmsg.o
38
38
obj-$(CONFIG_BPF_SYSCALL) += sock_map.o
39
39
endif
Original file line number Diff line number Diff line change @@ -9,7 +9,7 @@ menuconfig NET_DSA
9
9
select NET_SWITCHDEV
10
10
select PHYLINK
11
11
select NET_DEVLINK
12
- select NET_SELFTESTS
12
+ imply NET_SELFTESTS
13
13
help
14
14
Say Y if you want to enable support for the hardware switches supported
15
15
by the Distributed Switch Architecture.
You can’t perform that action at this time.
0 commit comments