diff mbox series

[net-next] team: remove unreferenced header in activebackup/broadcast/roundrobin files

Message ID 20230804113035.1698118-1-shaozhengchao@huawei.com (mailing list archive)
State Changes Requested
Delegated to: Netdev Maintainers
Headers show
Series [net-next] team: remove unreferenced header in activebackup/broadcast/roundrobin files | expand

Checks

Context Check Description
netdev/series_format success Single patches do not need cover letters
netdev/tree_selection success Clearly marked for net-next, async
netdev/fixes_present success Fixes tag not required for -next series
netdev/header_inline success No static functions without inline keyword in header files
netdev/build_32bit success Errors and warnings before: 1329 this patch: 1329
netdev/cc_maintainers success CCed 6 of 6 maintainers
netdev/build_clang success Errors and warnings before: 1351 this patch: 1351
netdev/verify_signedoff success Signed-off-by tag matches author and committer
netdev/deprecated_api success None detected
netdev/check_selftest success No net selftest shell script
netdev/verify_fixes success No Fixes tag
netdev/build_allmodconfig_warn success Errors and warnings before: 1352 this patch: 1352
netdev/checkpatch success total: 0 errors, 0 warnings, 0 checks, 21 lines checked
netdev/kdoc success Errors and warnings before: 0 this patch: 0
netdev/source_inline success Was 0 now: 0

Commit Message

shaozhengchao Aug. 4, 2023, 11:30 a.m. UTC
Because linux/errno.h is unreferenced in activebackup/broadcast/roundrobin
files, so remove it.

Signed-off-by: Zhengchao Shao <shaozhengchao@huawei.com>
---
 drivers/net/team/team_mode_activebackup.c | 1 -
 drivers/net/team/team_mode_broadcast.c    | 1 -
 drivers/net/team/team_mode_roundrobin.c   | 1 -
 3 files changed, 3 deletions(-)

Comments

Simon Horman Aug. 5, 2023, 11:48 a.m. UTC | #1
On Fri, Aug 04, 2023 at 07:30:35PM +0800, Zhengchao Shao wrote:
> Because linux/errno.h is unreferenced in activebackup/broadcast/roundrobin
> files, so remove it.
> 
> Signed-off-by: Zhengchao Shao <shaozhengchao@huawei.com>
> ---
>  drivers/net/team/team_mode_activebackup.c | 1 -
>  drivers/net/team/team_mode_broadcast.c    | 1 -
>  drivers/net/team/team_mode_roundrobin.c   | 1 -
>  3 files changed, 3 deletions(-)
> 
> diff --git a/drivers/net/team/team_mode_activebackup.c b/drivers/net/team/team_mode_activebackup.c
> index e0f599e2a51d..419b9083515e 100644
> --- a/drivers/net/team/team_mode_activebackup.c
> +++ b/drivers/net/team/team_mode_activebackup.c
> @@ -8,7 +8,6 @@
>  #include <linux/types.h>
>  #include <linux/module.h>
>  #include <linux/init.h>
> -#include <linux/errno.h>
>  #include <linux/netdevice.h>
>  #include <net/rtnetlink.h>
>  #include <linux/if_team.h>

Hi Zhengchao Shao,

Removing the inclusion of errno.h from team_mode_activebackup.c doesn't
seem right to me, ENOENT is used in that file.

The other two below seem fine to me.

> diff --git a/drivers/net/team/team_mode_broadcast.c b/drivers/net/team/team_mode_broadcast.c
> index 313a3e2d68bf..61d7d79f0c36 100644
> --- a/drivers/net/team/team_mode_broadcast.c
> +++ b/drivers/net/team/team_mode_broadcast.c
> @@ -8,7 +8,6 @@
>  #include <linux/types.h>
>  #include <linux/module.h>
>  #include <linux/init.h>
> -#include <linux/errno.h>
>  #include <linux/netdevice.h>
>  #include <linux/if_team.h>
>  
> diff --git a/drivers/net/team/team_mode_roundrobin.c b/drivers/net/team/team_mode_roundrobin.c
> index 3ec63de97ae3..dd405d82c6ac 100644
> --- a/drivers/net/team/team_mode_roundrobin.c
> +++ b/drivers/net/team/team_mode_roundrobin.c
> @@ -8,7 +8,6 @@
>  #include <linux/types.h>
>  #include <linux/module.h>
>  #include <linux/init.h>
> -#include <linux/errno.h>
>  #include <linux/netdevice.h>
>  #include <linux/if_team.h>
shaozhengchao Aug. 7, 2023, 1:01 a.m. UTC | #2
On 2023/8/5 19:48, Simon Horman wrote:
> On Fri, Aug 04, 2023 at 07:30:35PM +0800, Zhengchao Shao wrote:
>> Because linux/errno.h is unreferenced in activebackup/broadcast/roundrobin
>> files, so remove it.
>>
>> Signed-off-by: Zhengchao Shao <shaozhengchao@huawei.com>
>> ---
>>   drivers/net/team/team_mode_activebackup.c | 1 -
>>   drivers/net/team/team_mode_broadcast.c    | 1 -
>>   drivers/net/team/team_mode_roundrobin.c   | 1 -
>>   3 files changed, 3 deletions(-)
>>
>> diff --git a/drivers/net/team/team_mode_activebackup.c b/drivers/net/team/team_mode_activebackup.c
>> index e0f599e2a51d..419b9083515e 100644
>> --- a/drivers/net/team/team_mode_activebackup.c
>> +++ b/drivers/net/team/team_mode_activebackup.c
>> @@ -8,7 +8,6 @@
>>   #include <linux/types.h>
>>   #include <linux/module.h>
>>   #include <linux/init.h>
>> -#include <linux/errno.h>
>>   #include <linux/netdevice.h>
>>   #include <net/rtnetlink.h>
>>   #include <linux/if_team.h>
> 
> Hi Zhengchao Shao,
> 
> Removing the inclusion of errno.h from team_mode_activebackup.c doesn't
> seem right to me, ENOENT is used in that file.
> 
> The other two below seem fine to me.
> 
Hi Simon:
	Thank you for your review. You are right here and I will send V2.

Zhengchao Shao
>> diff --git a/drivers/net/team/team_mode_broadcast.c b/drivers/net/team/team_mode_broadcast.c
>> index 313a3e2d68bf..61d7d79f0c36 100644
>> --- a/drivers/net/team/team_mode_broadcast.c
>> +++ b/drivers/net/team/team_mode_broadcast.c
>> @@ -8,7 +8,6 @@
>>   #include <linux/types.h>
>>   #include <linux/module.h>
>>   #include <linux/init.h>
>> -#include <linux/errno.h>
>>   #include <linux/netdevice.h>
>>   #include <linux/if_team.h>
>>   
>> diff --git a/drivers/net/team/team_mode_roundrobin.c b/drivers/net/team/team_mode_roundrobin.c
>> index 3ec63de97ae3..dd405d82c6ac 100644
>> --- a/drivers/net/team/team_mode_roundrobin.c
>> +++ b/drivers/net/team/team_mode_roundrobin.c
>> @@ -8,7 +8,6 @@
>>   #include <linux/types.h>
>>   #include <linux/module.h>
>>   #include <linux/init.h>
>> -#include <linux/errno.h>
>>   #include <linux/netdevice.h>
>>   #include <linux/if_team.h>
>
diff mbox series

Patch

diff --git a/drivers/net/team/team_mode_activebackup.c b/drivers/net/team/team_mode_activebackup.c
index e0f599e2a51d..419b9083515e 100644
--- a/drivers/net/team/team_mode_activebackup.c
+++ b/drivers/net/team/team_mode_activebackup.c
@@ -8,7 +8,6 @@ 
 #include <linux/types.h>
 #include <linux/module.h>
 #include <linux/init.h>
-#include <linux/errno.h>
 #include <linux/netdevice.h>
 #include <net/rtnetlink.h>
 #include <linux/if_team.h>
diff --git a/drivers/net/team/team_mode_broadcast.c b/drivers/net/team/team_mode_broadcast.c
index 313a3e2d68bf..61d7d79f0c36 100644
--- a/drivers/net/team/team_mode_broadcast.c
+++ b/drivers/net/team/team_mode_broadcast.c
@@ -8,7 +8,6 @@ 
 #include <linux/types.h>
 #include <linux/module.h>
 #include <linux/init.h>
-#include <linux/errno.h>
 #include <linux/netdevice.h>
 #include <linux/if_team.h>
 
diff --git a/drivers/net/team/team_mode_roundrobin.c b/drivers/net/team/team_mode_roundrobin.c
index 3ec63de97ae3..dd405d82c6ac 100644
--- a/drivers/net/team/team_mode_roundrobin.c
+++ b/drivers/net/team/team_mode_roundrobin.c
@@ -8,7 +8,6 @@ 
 #include <linux/types.h>
 #include <linux/module.h>
 #include <linux/init.h>
-#include <linux/errno.h>
 #include <linux/netdevice.h>
 #include <linux/if_team.h>