diff mbox series

net/mlx5: Remove the repeated declaration

Message ID 20211207123515.61295-1-zhangshaokun@hisilicon.com (mailing list archive)
State Awaiting Upstream
Delegated to: Netdev Maintainers
Headers show
Series net/mlx5: Remove the repeated declaration | expand

Checks

Context Check Description
netdev/fixes_present success Fixes tag not required for -next series
netdev/subject_prefix warning Target tree name not specified in the subject
netdev/cover_letter success Single patches do not need cover letters
netdev/patch_count success Link
netdev/header_inline success No static functions without inline keyword in header files
netdev/build_32bit success Errors and warnings before: 3 this patch: 3
netdev/cc_maintainers success CCed 6 of 6 maintainers
netdev/build_clang success Errors and warnings before: 0 this patch: 0
netdev/module_param success Was 0 now: 0
netdev/verify_signedoff success Signed-off-by tag matches author and committer
netdev/verify_fixes success No Fixes tag
netdev/build_allmodconfig_warn success Errors and warnings before: 1 this patch: 1
netdev/checkpatch success total: 0 errors, 0 warnings, 0 checks, 9 lines checked
netdev/kdoc success Errors and warnings before: 1 this patch: 1
netdev/source_inline success Was 0 now: 0
netdev/tree_selection success Guessing tree name failed - patch did not apply

Commit Message

Shaokun Zhang Dec. 7, 2021, 12:35 p.m. UTC
Function 'mlx5_esw_vport_match_metadata_supported' and
'mlx5_esw_offloads_vport_metadata_set' are declared twice, so remove
the repeated declaration and blank line.

Cc: Saeed Mahameed <saeedm@nvidia.com>
Cc: Leon Romanovsky <leon@kernel.org>
Cc: "David S. Miller" <davem@davemloft.net>
Cc: Jakub Kicinski <kuba@kernel.org>
Signed-off-by: Shaokun Zhang <zhangshaokun@hisilicon.com>
---
 drivers/net/ethernet/mellanox/mlx5/core/eswitch.h | 3 ---
 1 file changed, 3 deletions(-)

Comments

Leon Romanovsky Dec. 7, 2021, 12:40 p.m. UTC | #1
On Tue, Dec 07, 2021 at 08:35:15PM +0800, Shaokun Zhang wrote:
> Function 'mlx5_esw_vport_match_metadata_supported' and
> 'mlx5_esw_offloads_vport_metadata_set' are declared twice, so remove
> the repeated declaration and blank line.
> 
> Cc: Saeed Mahameed <saeedm@nvidia.com>
> Cc: Leon Romanovsky <leon@kernel.org>
> Cc: "David S. Miller" <davem@davemloft.net>
> Cc: Jakub Kicinski <kuba@kernel.org>
> Signed-off-by: Shaokun Zhang <zhangshaokun@hisilicon.com>
> ---
>  drivers/net/ethernet/mellanox/mlx5/core/eswitch.h | 3 ---
>  1 file changed, 3 deletions(-)
> 

Fixes: 4f4edcc2b84f ("net/mlx5: E-Switch, Add ovs internal port mapping to metadata support")

Thanks,
Reviewed-by: Leon Romanovsky <leonro@nvidia.com>
Shaokun Zhang Dec. 8, 2021, 1:27 a.m. UTC | #2
Hi Leon,

On 2021/12/7 20:40, Leon Romanovsky wrote:
> On Tue, Dec 07, 2021 at 08:35:15PM +0800, Shaokun Zhang wrote:
>> Function 'mlx5_esw_vport_match_metadata_supported' and
>> 'mlx5_esw_offloads_vport_metadata_set' are declared twice, so remove
>> the repeated declaration and blank line.
>>
>> Cc: Saeed Mahameed <saeedm@nvidia.com>
>> Cc: Leon Romanovsky <leon@kernel.org>
>> Cc: "David S. Miller" <davem@davemloft.net>
>> Cc: Jakub Kicinski <kuba@kernel.org>
>> Signed-off-by: Shaokun Zhang <zhangshaokun@hisilicon.com>
>> ---
>>  drivers/net/ethernet/mellanox/mlx5/core/eswitch.h | 3 ---
>>  1 file changed, 3 deletions(-)
>>
> 
> Fixes: 4f4edcc2b84f ("net/mlx5: E-Switch, Add ovs internal port mapping to metadata support")
> 

Shall we need this tag since it is trivial cleanup patch?

> Thanks,
> Reviewed-by: Leon Romanovsky <leonro@nvidia.com>

Thanks your reply.

> .
>
Leon Romanovsky Dec. 8, 2021, 8:59 a.m. UTC | #3
On Wed, Dec 08, 2021 at 09:27:37AM +0800, Shaokun Zhang wrote:
> Hi Leon,
> 
> On 2021/12/7 20:40, Leon Romanovsky wrote:
> > On Tue, Dec 07, 2021 at 08:35:15PM +0800, Shaokun Zhang wrote:
> >> Function 'mlx5_esw_vport_match_metadata_supported' and
> >> 'mlx5_esw_offloads_vport_metadata_set' are declared twice, so remove
> >> the repeated declaration and blank line.
> >>
> >> Cc: Saeed Mahameed <saeedm@nvidia.com>
> >> Cc: Leon Romanovsky <leon@kernel.org>
> >> Cc: "David S. Miller" <davem@davemloft.net>
> >> Cc: Jakub Kicinski <kuba@kernel.org>
> >> Signed-off-by: Shaokun Zhang <zhangshaokun@hisilicon.com>
> >> ---
> >>  drivers/net/ethernet/mellanox/mlx5/core/eswitch.h | 3 ---
> >>  1 file changed, 3 deletions(-)
> >>
> > 
> > Fixes: 4f4edcc2b84f ("net/mlx5: E-Switch, Add ovs internal port mapping to metadata support")
> > 
> 
> Shall we need this tag since it is trivial cleanup patch?

I don't know about netdev policy about Fixes line.

IMHO, it should be always when the bug is fixed.

Thansk

> 
> > Thanks,
> > Reviewed-by: Leon Romanovsky <leonro@nvidia.com>
> 
> Thanks your reply.
> 
> > .
> >
Jakub Kicinski Dec. 8, 2021, 3:08 p.m. UTC | #4
On Wed, 8 Dec 2021 10:59:45 +0200 Leon Romanovsky wrote:
> > > Fixes: 4f4edcc2b84f ("net/mlx5: E-Switch, Add ovs internal port mapping to metadata support")
> > 
> > Shall we need this tag since it is trivial cleanup patch?  
> 
> I don't know about netdev policy about Fixes line.
> 
> IMHO, it should be always when the bug is fixed.

This is not a bug, tho. Bugs bother users.
Saeed Mahameed Dec. 13, 2021, 6:29 p.m. UTC | #5
On Tue, 2021-12-07 at 20:35 +0800, Shaokun Zhang wrote:
> Function 'mlx5_esw_vport_match_metadata_supported' and
> 'mlx5_esw_offloads_vport_metadata_set' are declared twice, so remove
> the repeated declaration and blank line.
> 
> Cc: Saeed Mahameed <saeedm@nvidia.com>
> Cc: Leon Romanovsky <leon@kernel.org>
> Cc: "David S. Miller" <davem@davemloft.net>
> Cc: Jakub Kicinski <kuba@kernel.org>
> Signed-off-by: Shaokun Zhang <zhangshaokun@hisilicon.com>

Applied to net-next-mlx5.
Thanks !
diff mbox series

Patch

diff --git a/drivers/net/ethernet/mellanox/mlx5/core/eswitch.h b/drivers/net/ethernet/mellanox/mlx5/core/eswitch.h
index 42f8ee2e5d9f..844e673ff73c 100644
--- a/drivers/net/ethernet/mellanox/mlx5/core/eswitch.h
+++ b/drivers/net/ethernet/mellanox/mlx5/core/eswitch.h
@@ -339,9 +339,6 @@  void mlx5_esw_match_metadata_free(struct mlx5_eswitch *esw, u32 metadata);
 
 int mlx5_esw_qos_modify_vport_rate(struct mlx5_eswitch *esw, u16 vport_num, u32 rate_mbps);
 
-bool mlx5_esw_vport_match_metadata_supported(const struct mlx5_eswitch *esw);
-int mlx5_esw_offloads_vport_metadata_set(struct mlx5_eswitch *esw, bool enable);
-
 /* E-Switch API */
 int mlx5_eswitch_init(struct mlx5_core_dev *dev);
 void mlx5_eswitch_cleanup(struct mlx5_eswitch *esw);