Skip to contentSkip to conversation

net: hns3: Supply missing hclge_dcb.h include file

PATCH Applied Wang Hai 3 participants 3 messages Sep 18, 2020

Subsystems (4)
lore
Share & tools
lore

Wang Hai

author
#0 lore raw

PATCH 1/1 net: hns3: Supply missing hclge_dcb.h include file

If the header file containing a function's prototype isn't included by the sourcefile containing the associated function, the build system complains of missing prototypes.

Fixes the following W=1 kernel build warning(s):

drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_dcb.c:453:6: warning: no previous prototype for ‘hclge_dcb_ops_set’ [-Wmissing-prototypes]

---
 drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_dcb.c | 1 +
 1 file changed, 1 insertion(+)
drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_dcb.c +1 -0
index d6c3952aba04..f990f6915226 100644
@@ -2,6 +2,7 @@
 // Copyright (c) 2016-2017 Hisilicon Limited.
 
 #include "hclge_main.h"
+#include "hclge_dcb.h"
 #include "hclge_tm.h"
 #include "hnae3.h"
 
Signature · 1 line
2.17.1
Reviewed-by on v1 1/1
#1 lore raw
Quoted 5 lines · Wang Hai

If the header file containing a function's prototype isn't included by
the sourcefile containing the associated function, the build system complains of missing prototypes.

Quoted 8 lines

Fixes the following W=1 kernel build warning(s):

drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_dcb.c:453:6:
warning: no previous prototype for ‘hclge_dcb_ops_set’ [-Wmissing- prototypes]

---

maintainer Applied
#2 lore raw
In reply to Wang Hai

From: Wang Hai <[email protected]>
Date: Fri, 18 Sep 2020 21:06:53 +0800

Quoted 9 lines

If the header file containing a function's prototype isn't included by the sourcefile containing the associated function, the build system complains of missing prototypes.

Fixes the following W=1 kernel build warning(s):

drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_dcb.c:453:6: warning: no previous prototype for ‘hclge_dcb_ops_set’ [-Wmissing-prototypes]

Applied.