Re: checkpatch.pl report about "Missing blank line after declarations" in a structure definition
From: Joe Perches
Date: Mon Aug 04 2014 - 10:27:26 EST
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@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/