randconfig build error with next-20140624, in drivers/net/ethernet/cisco/enic/enic_main.c

4 messages, 3 authors, 2014-06-27 · open the first message on its own page

randconfig build error with next-20140624, in drivers/net/ethernet/cisco/enic/enic_main.c

From: Jim Davis <hidden>
Date: 2014-06-24 21:00:29

Building with the attached random configuration file,

drivers/net/ethernet/cisco/enic/enic_main.c: In function ‘enic_open’:
drivers/net/ethernet/cisco/enic/enic_main.c:1603:2: error: implicit declaration
of function ‘enic_rfs_flw_tbl_init’ [-Werror=implicit-function-declaration]
  enic_rfs_flw_tbl_init(enic);
  ^
drivers/net/ethernet/cisco/enic/enic_main.c: In function ‘enic_stop’:
drivers/net/ethernet/cisco/enic/enic_main.c:1630:2: error: implicit declaration
of function ‘enic_rfs_flw_tbl_free’ [-Werror=implicit-function-declaration]
  enic_rfs_flw_tbl_free(enic);
  ^
cc1: some warnings being treated as errors
  CC      drivers/scsi/fcoe/fcoe_sysfs.o
make[5]: *** [drivers/net/ethernet/cisco/enic/enic_main.o] Error 1

[PATCH] enic: fix a building failure

From: <hidden>
Date: 2014-06-27 02:09:40

From: Li RongQing <redacted>

When RFS_ACCEL is disabled, the building failed:
    drivers/net/ethernet/cisco/enic/enic_main.c: In function ‘enic_open’:
    drivers/net/ethernet/cisco/enic/enic_main.c:1603:2: error: implicit declaration
    of function ‘enic_rfs_flw_tbl_init’ [-Werror=implicit-function-declaration]
      enic_rfs_flw_tbl_init(enic);
      ^
    drivers/net/ethernet/cisco/enic/enic_main.c: In function ‘enic_stop’:
    drivers/net/ethernet/cisco/enic/enic_main.c:1630:2: error: implicit declaration
    of function ‘enic_rfs_flw_tbl_free’ [-Werror=implicit-function-declaration]
      enic_rfs_flw_tbl_free(enic);

In fact, these two functions have been defined separately for enabling RFS_ACCEL
and disabling RFS_ACCEL.

Reported-by: Jim Davis <redacted>
Cc: Govindarajulu Varadarajan <redacted>
Signed-off-by: Li RongQing <redacted>
---
 drivers/net/ethernet/cisco/enic/enic_clsf.h |    3 ---
 1 file changed, 3 deletions(-)
diff --git a/drivers/net/ethernet/cisco/enic/enic_clsf.h b/drivers/net/ethernet/cisco/enic/enic_clsf.h
index 76a85bb..b38cc7e 100644
--- a/drivers/net/ethernet/cisco/enic/enic_clsf.h
+++ b/drivers/net/ethernet/cisco/enic/enic_clsf.h
@@ -9,11 +9,8 @@
 int enic_addfltr_5t(struct enic *enic, struct flow_keys *keys, u16 rq);
 int enic_delfltr(struct enic *enic, u16 filter_id);
 
-#ifdef CONFIG_RFS_ACCEL
 void enic_rfs_flw_tbl_init(struct enic *enic);
 void enic_rfs_flw_tbl_free(struct enic *enic);
 int enic_rx_flow_steer(struct net_device *dev, const struct sk_buff *skb,
 		       u16 rxq_index, u32 flow_id);
-#endif /* CONFIG_RFS_ACCEL */
-
 #endif /* _ENIC_CLSF_H_ */
-- 
1.7.10.4

Re: [PATCH] enic: fix a building failure

From: Li RongQing <hidden>
Date: 2014-06-27 02:20:49

On Fri, Jun 27, 2014 at 10:09 AM,  [off-list ref] wrote:
From: Li RongQing <redacted>
It is for net-next.

Re: [PATCH] enic: fix a building failure

From: David Miller <davem@davemloft.net>
Date: 2014-06-27 02:21:11

From: roy.qing.li@gmail.com
Date: Fri, 27 Jun 2014 10:09:39 +0800
From: Li RongQing <redacted>

When RFS_ACCEL is disabled, the building failed:
    drivers/net/ethernet/cisco/enic/enic_main.c: In function ‘enic_open’:
    drivers/net/ethernet/cisco/enic/enic_main.c:1603:2: error: implicit declaration
    of function ‘enic_rfs_flw_tbl_init’ [-Werror=implicit-function-declaration]
      enic_rfs_flw_tbl_init(enic);
      ^
    drivers/net/ethernet/cisco/enic/enic_main.c: In function ‘enic_stop’:
    drivers/net/ethernet/cisco/enic/enic_main.c:1630:2: error: implicit declaration
    of function ‘enic_rfs_flw_tbl_free’ [-Werror=implicit-function-declaration]
      enic_rfs_flw_tbl_free(enic);

In fact, these two functions have been defined separately for enabling RFS_ACCEL
and disabling RFS_ACCEL.

Reported-by: Jim Davis <redacted>
Cc: Govindarajulu Varadarajan <redacted>
Signed-off-by: Li RongQing <redacted>
Please pay attention, there is already a better fix checked into the
net-next tree.

The tree would still fail with your version of the fix, did you test
with RFS_ACCEL disabled?  You have to provide an actual implementation
when RFC_ACCEL is off, via an empty inline function in enic_clsf.h which is
what was done in net-next already.
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help