diff mbox series

[net-next] net: hns3: Supply missing hclge_dcb.h include file

Message ID 20200918130653.20064-1-wanghai38@huawei.com
State Accepted
Delegated to: David Miller
Headers show
Series [net-next] net: hns3: Supply missing hclge_dcb.h include file | expand

Commit Message

Wang Hai Sept. 18, 2020, 1:06 p.m. UTC
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]

Signed-off-by: Wang Hai <wanghai38@huawei.com>
---
 drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_dcb.c | 1 +
 1 file changed, 1 insertion(+)

Comments

Saeed Mahameed Sept. 18, 2020, 5:43 p.m. UTC | #1
On Fri, 2020-09-18 at 21:06 +0800, Wang Hai wrote:
> 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]
> 
> Signed-off-by: Wang Hai <wanghai38@huawei.com>
> ---

Reviewed-by: Saeed Mahameed <saeedm@nvidia.com>
David Miller Sept. 18, 2020, 9:55 p.m. UTC | #2
From: Wang Hai <wanghai38@huawei.com>
Date: Fri, 18 Sep 2020 21:06:53 +0800

> 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]
> 
> Signed-off-by: Wang Hai <wanghai38@huawei.com>

Applied.
diff mbox series

Patch

diff --git a/drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_dcb.c b/drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_dcb.c
index d6c3952aba04..f990f6915226 100644
--- a/drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_dcb.c
+++ b/drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_dcb.c
@@ -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"