[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <1407162439.16152.67.camel@joe-AO725>
Date: Mon, 04 Aug 2014 07:27:19 -0700
From: Joe Perches <joe@...ches.com>
To: Dotan Barak <dotanb@...lanox.com>
Cc: "linux-kernel@...r.kernel.org" <linux-kernel@...r.kernel.org>
Subject: Re: checkpatch.pl report about "Missing blank line after
declarations" in a structure definition
On Mon, 2014-08-04 at 14:14 +0000, Dotan Barak wrote:
> Hi Joe.
>
> The patch that you mentioned solved most of the issues, thanks!
>
> However, there is still one more warning of this type within a struct declaration.
>
> # ./checkpatch.pl --file --no-tree ../include/linux/mlx5/driver.h
>
> WARNING: Missing a blank line after declarations
> #508: FILE: ../include/linux/mlx5/driver.h:508:
> + struct mlx5_uuar_info uuari;
> + MLX5_DECLARE_DOORBELL_LOCK(cq_uar_lock);
>
>
> <snip start>
> struct mlx5_priv {
> char name[MLX5_MAX_NAME_LEN];
> struct mlx5_eq_table eq_table;
> struct mlx5_uuar_info uuari;
> MLX5_DECLARE_DOORBELL_LOCK(cq_uar_lock);
MLX5_DECLARE_DOORBELL is not a "normal" DECLARE macro.
Perhaps the exception for the DECLARE_<FOO> declaration
macros in the exceptions list:
(?:$Storage\s+)?(?:DECLARE|DEFINE)_[A-Z]+\s*\(|
could be expanded to:
(?:$Storage\s+)?[A-Z0-9_]*(?:DECLARE|DEFINE)_[A-Z]+\s*\(|
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists