Message ID | 20211014090055.2058949-1-arnd@kernel.org |
---|---|
State | Not Applicable, archived |
Headers | show |
Series | [net-next] net: of: fix stub of_net helpers for CONFIG_NET=n | expand |
Context | Check | Description |
---|---|---|
robh/checkpatch | warning | total: 0 errors, 2 warnings, 8 lines checked |
Hello: This patch was applied to netdev/net-next.git (master) by Jakub Kicinski <kuba@kernel.org>: On Thu, 14 Oct 2021 11:00:37 +0200 you wrote: > From: Arnd Bergmann <arnd@arndb.de> > > Moving the of_net code from drivers/of/ to net/core means we > no longer stub out the helpers when networking is disabled, > which leads to a randconfig build failure with at least one > ARM platform that calls this from non-networking code: > > [...] Here is the summary with links: - [net-next] net: of: fix stub of_net helpers for CONFIG_NET=n https://git.kernel.org/netdev/net-next/c/8b017fbe0bbb You are awesome, thank you! -- Deet-doot-dot, I am a bot. https://korg.docs.kernel.org/patchwork/pwbot.html
diff --git a/include/linux/of_net.h b/include/linux/of_net.h index 0797e2edb8c2..0484b613ca64 100644 --- a/include/linux/of_net.h +++ b/include/linux/of_net.h @@ -8,7 +8,7 @@ #include <linux/phy.h> -#ifdef CONFIG_OF +#if defined(CONFIG_OF) && defined(CONFIG_NET) #include <linux/of.h> struct net_device;