Skip to contentSkip to conversation

net/mlx5e: include net/nexthop.h where needed

PATCH In review Arnd Bergmann 3 participants 3 messages Mar 8, 2021 – Mar 11, 2021

Subsystems (4)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 net/mlx5e: include net/nexthop.h where needed

From: Arnd Bergmann <[email protected]>

drivers/net/ethernet/mellanox/mlx5/core/en/tc_tun_encap.c:1510:12: error: implicit declaration of function 'fib_info_nh' [-Werror,-Wimplicit-function-declaration]

        fib_dev = fib_info_nh(fen_info->fi, 0)->fib_nh_dev;
                  ^
drivers/net/ethernet/mellanox/mlx5/core/en/tc_tun_encap.c:1510:12: note: did you mean 'fib_info_put'?
include/net/ip_fib.h:529:20: note: 'fib_info_put' declared here
static inline void fib_info_put(struct fib_info *fi)
                   ^
Fixes 8914add2c9e5 ("net/mlx5e: Handle FIB events to update tunnel endpoint device")
---
 drivers/net/ethernet/mellanox/mlx5/core/en/tc_tun_encap.c | 1 +
 1 file changed, 1 insertion(+)
drivers/net/ethernet/mellanox/mlx5/core/en/tc_tun_encap.c +1 -0
index 6a116335bb21..32d06fe94acc 100644
@@ -2,6 +2,7 @@
 /* Copyright (c) 2021 Mellanox Technologies. */
 
 #include <net/fib_notifier.h>
+#include <net/nexthop.h>
 #include "tc_tun_encap.h"
 #include "en_tc.h"
 #include "tc_tun.h"
Signature · 1 line
2.29.2
#1 lore raw
Quoted 22 lines · Arnd Bergmann

From: Arnd Bergmann <[email protected]>

drivers/net/ethernet/mellanox/mlx5/core/en/tc_tun_encap.c:1510:12: error: implicit declaration of function 'fib_info_nh' [-Werror,-Wimplicit-function-declaration]

         fib_dev = fib_info_nh(fen_info->fi, 0)->fib_nh_dev;
                   ^
drivers/net/ethernet/mellanox/mlx5/core/en/tc_tun_encap.c:1510:12: note: did you mean 'fib_info_put'?
include/net/ip_fib.h:529:20: note: 'fib_info_put' declared here
static inline void fib_info_put(struct fib_info *fi)
                    ^
Fixes 8914add2c9e5 ("net/mlx5e: Handle FIB events to update tunnel endpoint device")
---
  drivers/net/ethernet/mellanox/mlx5/core/en/tc_tun_encap.c | 1 +
  1 file changed, 1 insertion(+)
drivers/net/ethernet/mellanox/mlx5/core/en/tc_tun_encap.c +0 -0
index 6a116335bb21..32d06fe94acc 100644

drivers/net/ethernet/mellanox/mlx5/core/en/tc_tun_encap.c line 8

Quoted 7 lines
drivers/net/ethernet/mellanox/mlx5/core/en/tc_tun_encap.c +1 -0
@@ -2,6 +2,7 @@
  /* Copyright (c) 2021 Mellanox Technologies. */
 
  #include <net/fib_notifier.h>
+#include <net/nexthop.h>
  #include "tc_tun_encap.h"
  #include "en_tc.h"
  #include "tc_tun.h"

Hi,

I see internally we have a pending commit from Vlad fixing this already, with few more fixes. "net/mlx5e: Add missing include"

I'll check why it's being held.

Thanks,
Roi

#2 lore raw
Quoted 41 lines · Roi Dayan
Quoted 28 lines · Arnd Bergmann

From: Arnd Bergmann <[email protected]>

drivers/net/ethernet/mellanox/mlx5/core/en/tc_tun_encap.c:1510:12:
error: implicit declaration of function 'fib_info_nh' [-Werror,- Wimplicit-function-declaration]
         fib_dev = fib_info_nh(fen_info->fi, 0)->fib_nh_dev; ^ drivers/net/ethernet/mellanox/mlx5/core/en/tc_tun_encap.c:1510:12:
note: did you mean 'fib_info_put'? include/net/ip_fib.h:529:20: note: 'fib_info_put' declared here static inline void fib_info_put(struct fib_info *fi)
                    ^

Fixes 8914add2c9e5 ("net/mlx5e: Handle FIB events to update tunnel

endpoint device")

---
  drivers/net/ethernet/mellanox/mlx5/core/en/tc_tun_encap.c | 1 +

  1 file changed, 1 insertion(+)

diff --git a/drivers/net/ethernet/mellanox/mlx5/core/en/tc_tun_encap.c b/drivers/net/ethernet/mellanox/mlx5/core/en/tc_tun_encap.c index 6a116335bb21..32d06fe94acc 100644

drivers/net/ethernet/mellanox/mlx5/core/en/tc_tun_encap.c +0 -0
@@ -2,6 +2,7 @@
   /* Copyright (c) 2021 Mellanox Technologies. */
Quoted 7 lines


  #include <net/fib_notifier.h>
+#include <net/nexthop.h>
  #include "tc_tun_encap.h"
  #include "en_tc.h"
  #include "tc_tun.h"

Hi,

Quoted 5 lines

I see internally we have a pending commit from Vlad fixing this already,
with few more fixes. "net/mlx5e: Add missing include"

I'll check why it's being held.

Just submitted to net-next.
Thanks!