Skip to content

Commit 923f614

Browse files
Brian Vazquezdavem330
authored andcommitted
fib: fix fib_rule_ops indirect call wrappers when CONFIG_IPV6=m
If CONFIG_IPV6=m, the IPV6 functions won't be found by the linker: ld: net/core/fib_rules.o: in function `fib_rules_lookup': fib_rules.c:(.text+0x606): undefined reference to `fib6_rule_match' ld: fib_rules.c:(.text+0x611): undefined reference to `fib6_rule_match' ld: fib_rules.c:(.text+0x68c): undefined reference to `fib6_rule_action' ld: fib_rules.c:(.text+0x693): undefined reference to `fib6_rule_action' ld: fib_rules.c:(.text+0x6aa): undefined reference to `fib6_rule_suppress' ld: fib_rules.c:(.text+0x6bc): undefined reference to `fib6_rule_suppress' make: *** [Makefile:1166: vmlinux] Error 1 Reported-by: Sven Joachim <[email protected]> Fixes: b9aaec8 ("fib: use indirect call wrappers in the most common fib_rules_ops") Acked-by: Randy Dunlap <[email protected]> # build-tested Signed-off-by: Brian Vazquez <[email protected]> Signed-off-by: David S. Miller <[email protected]>
1 parent 2650be2 commit 923f614

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

net/core/fib_rules.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
#include <net/ip_tunnels.h>
1717
#include <linux/indirect_call_wrapper.h>
1818

19-
#ifdef CONFIG_IPV6_MULTIPLE_TABLES
19+
#if defined(CONFIG_IPV6) && defined(CONFIG_IPV6_MULTIPLE_TABLES)
2020
#ifdef CONFIG_IP_MULTIPLE_TABLES
2121
#define INDIRECT_CALL_MT(f, f2, f1, ...) \
2222
INDIRECT_CALL_INET(f, f2, f1, __VA_ARGS__)

0 commit comments

Comments
 (0)