mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* checkpatch.pl report about "Missing blank line after declarations" in a structure definition
@ 2014-08-04 11:20 Dotan Barak
  2014-08-04 13:35 ` Joe Perches
  0 siblings, 1 reply; 9+ messages in thread
From: Dotan Barak @ 2014-08-04 11:20 UTC (permalink / raw)
  To: Joe Perches; +Cc: linux-kernel

Hi Joe.

Thanks for fixing the issue that I reported about.

It seems that even after your fix, there is still a false warning of "Missing blank line after declarations".

I executed checkpatch.pl on a header file that exists in the Linux tree:
# ./checkpatch.pl --file --no-tree ../include/linux/mlx5/cq.h

And got the following warning:

WARNING: Missing a blank line after declarations
#49: FILE: ../include/linux/mlx5/cq.h:49:
+       int                     irqn;
+       void (*comp)            (struct mlx5_core_cq *);


Here is the structure that checkpatch.pl is complaining about:

<snip start>
struct mlx5_core_cq {
        u32                     cqn;
        int                     cqe_sz;
        __be32                 *set_ci_db;
        __be32                 *arm_db;
        atomic_t                refcount;
        struct completion       free;
        unsigned                vector;
        int                     irqn;
        void (*comp)            (struct mlx5_core_cq *);
        void (*event)           (struct mlx5_core_cq *, enum mlx5_event);
        struct mlx5_uar        *uar;
        u32                     cons_index;
        unsigned                arm_sn;
        struct mlx5_rsc_debug   *dbg;
        int                     pid;
};
<snip end>

As you can see, this is a structure definition and IMHO the warning above is false.


Thanks!

Dotan Barak
Sr. Staff Engineer, Windows verification
Mellanox Technologies
Beit Mellanox
Yokneam, 20692

Office: +972-74-7236271
Fax:     +972-4-9593245
www.mellanox.com


^ permalink raw reply	[flat|nested] 9+ messages in thread

end of thread, other threads:[~2014-08-04 15:31 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2014-08-04 11:20 checkpatch.pl report about "Missing blank line after declarations" in a structure definition Dotan Barak
2014-08-04 13:35 ` Joe Perches
2014-08-04 14:14   ` Dotan Barak
2014-08-04 14:27     ` Joe Perches
2014-08-04 14:50       ` Dotan Barak
2014-08-04 15:11         ` Joe Perches
2014-08-04 15:19           ` Dotan Barak
2014-08-04 15:26             ` Joe Perches
2014-08-04 15:31               ` Dotan Barak

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®