From: Greg Kroah-Hartman Date: Mon, 10 Jun 2019 05:56:38 +0000 (+0200) Subject: 4.4-stable patches X-Git-Tag: v5.1.9~10 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=1c321be79ab75a5e0d18322ec842a000931715e0;p=thirdparty%2Fkernel%2Fstable-queue.git 4.4-stable patches added patches: ipv4-define-__ipv4_neigh_lookup_noref-when-config_inet-is-disabled.patch --- diff --git a/queue-4.4/ipv4-define-__ipv4_neigh_lookup_noref-when-config_inet-is-disabled.patch b/queue-4.4/ipv4-define-__ipv4_neigh_lookup_noref-when-config_inet-is-disabled.patch new file mode 100644 index 00000000000..9498cda4947 --- /dev/null +++ b/queue-4.4/ipv4-define-__ipv4_neigh_lookup_noref-when-config_inet-is-disabled.patch @@ -0,0 +1,46 @@ +From 9b3040a6aafd7898ece7fc7efcbca71e42aa8069 Mon Sep 17 00:00:00 2001 +From: David Ahern +Date: Sun, 5 May 2019 11:16:20 -0700 +Subject: ipv4: Define __ipv4_neigh_lookup_noref when CONFIG_INET is disabled + +From: David Ahern + +commit 9b3040a6aafd7898ece7fc7efcbca71e42aa8069 upstream. + +Define __ipv4_neigh_lookup_noref to return NULL when CONFIG_INET is disabled. + +Fixes: 4b2a2bfeb3f0 ("neighbor: Call __ipv4_neigh_lookup_noref in neigh_xmit") +Reported-by: kbuild test robot +Signed-off-by: David Ahern +Signed-off-by: David S. Miller +Cc: Nobuhiro Iwamatsu +Signed-off-by: Greg Kroah-Hartman + +--- + include/net/arp.h | 8 ++++++++ + 1 file changed, 8 insertions(+) + +--- a/include/net/arp.h ++++ b/include/net/arp.h +@@ -17,6 +17,7 @@ static inline u32 arp_hashfn(const void + return val * hash_rnd[0]; + } + ++#ifdef CONFIG_INET + static inline struct neighbour *__ipv4_neigh_lookup_noref(struct net_device *dev, u32 key) + { + if (dev->flags & (IFF_LOOPBACK | IFF_POINTOPOINT)) +@@ -24,6 +25,13 @@ static inline struct neighbour *__ipv4_n + + return ___neigh_lookup_noref(&arp_tbl, neigh_key_eq32, arp_hashfn, &key, dev); + } ++#else ++static inline ++struct neighbour *__ipv4_neigh_lookup_noref(struct net_device *dev, u32 key) ++{ ++ return NULL; ++} ++#endif + + static inline struct neighbour *__ipv4_neigh_lookup(struct net_device *dev, u32 key) + { diff --git a/queue-4.4/series b/queue-4.4/series index ee9a795b75b..4cd4abc3e05 100644 --- a/queue-4.4/series +++ b/queue-4.4/series @@ -239,3 +239,4 @@ genwqe-prevent-an-integer-overflow-in-the-ioctl.patch drm-gma500-cdv-check-vbt-config-bits-when-detecting-lvds-panels.patch fs-stream_open-opener-for-stream-like-files-so-that-read-and-write-can-run-simultaneously-without-deadlock.patch fuse-add-fopen_stream-to-use-stream_open.patch +ipv4-define-__ipv4_neigh_lookup_noref-when-config_inet-is-disabled.patch