[LTP] [PATCH 1/1] checkpatch: Ignore warnings irrelevant in userspace
Cyril Hrubis
chrubis@suse.cz
Fri Sep 16 16:08:24 CEST 2022
Hi!
> * EMBEDDED_FILENAME
> fanotify.h:15: WARNING: It's generally not useful to have the filename in the file
> on #include <sys/fanotify.h> in fanotify.h
>
> * ENOSYS
> fanotify.h:26: WARNING: ENOSYS means 'invalid syscall nr' and nothing else
> on if (errno == ENOSYS)
>
> * NEW_TYPEDEFS
> fanotify.h:180: WARNING: do not add new typedefs
> on typedef struct {
I'm not 100% sure about the NEW_TYPEDEFS check, that one is mostly
right. The later two are fine.
--
Cyril Hrubis
chrubis@suse.cz
More information about the ltp
mailing list