Re: [checkpatch] - Confusion

Joe Perches
2013-06-12T04:48:30Z

On Tue, 2013-06-11 at 21:15 -0700, Joe Perches wrote:

> > typedef struct ctl_table ctl_table; (include/linux/sysctl.h)
> > is not correctly picked up by checkpatch.
>
> checkpatch isn't a c compiler.
> It assumes any <foo>_t is a typedef.
>
> > So, I assume this actually is a false positive.
>
> Yup.

Another option is to use "struct ctl_table" instead of bare ctl_table.