[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20200221132955.GG31668@ziepe.ca>
Date: Fri, 21 Feb 2020 13:30:00 +0000
From: Jason Gunthorpe <jgg@...lanox.com>
To: Nathan Chancellor <natechancellor@...il.com>
CC: Saeed Mahameed <saeedm@...lanox.com>,
Leon Romanovsky <leon@...nel.org>,
Aya Levin <ayal@...lanox.com>,
Moshe Shemesh <moshe@...lanox.com>,
Jiri Pirko <jiri@...lanox.com>,
"netdev@...r.kernel.org" <netdev@...r.kernel.org>,
"linux-rdma@...r.kernel.org" <linux-rdma@...r.kernel.org>,
"linux-kernel@...r.kernel.org" <linux-kernel@...r.kernel.org>,
"clang-built-linux@...glegroups.com"
<clang-built-linux@...glegroups.com>
Subject: Re: [PATCH net-next] net/mlx5: Fix header guard in rsc_dump.h
On Thu, Feb 20, 2020 at 10:24:37PM -0700, Nathan Chancellor wrote:
> Clang warns:
>
> In file included from
> ../drivers/net/ethernet/mellanox/mlx5/core/main.c:73:
> ../drivers/net/ethernet/mellanox/mlx5/core/diag/rsc_dump.h:4:9: warning:
> '__MLX5_RSC_DUMP_H' is used as a header guard here, followed by #define
> of a different macro [-Wheader-guard]
> #ifndef __MLX5_RSC_DUMP_H
> ^~~~~~~~~~~~~~~~~
> ../drivers/net/ethernet/mellanox/mlx5/core/diag/rsc_dump.h:5:9: note:
> '__MLX5_RSC_DUMP__H' is defined here; did you mean '__MLX5_RSC_DUMP_H'?
> #define __MLX5_RSC_DUMP__H
> ^~~~~~~~~~~~~~~~~~
> __MLX5_RSC_DUMP_H
> 1 warning generated.
Wow, that is a neat warning
Reviewed-by: Jason Gunthorpe <jgg@...lanox.com>
Jason
Powered by blists - more mailing lists