summaryrefslogtreecommitdiffstats
path: root/drivers/net/phy/stubs.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/net/phy/stubs.c')
-rw-r--r--drivers/net/phy/stubs.c10
1 files changed, 10 insertions, 0 deletions
diff --git a/drivers/net/phy/stubs.c b/drivers/net/phy/stubs.c
new file mode 100644
index 0000000000..cfb9f275eb
--- /dev/null
+++ b/drivers/net/phy/stubs.c
@@ -0,0 +1,10 @@
+// SPDX-License-Identifier: GPL-2.0+
+/*
+ * Stubs for PHY library functionality called by the core network stack.
+ * These are necessary because CONFIG_PHYLIB can be a module, and built-in
+ * code cannot directly call symbols exported by modules.
+ */
+#include <linux/phylib_stubs.h>
+
+const struct phylib_stubs *phylib_stubs;
+EXPORT_SYMBOL_GPL(phylib_stubs);