public inbox for ltp@lists.linux.it
 help / color / mirror / Atom feed
* [LTP] [PATCH 1/1] checkpatch: Ignore warnings irrelevant in userspace
@ 2022-09-06  5:46 Petr Vorel
  2022-09-16 14:08 ` Cyril Hrubis
  0 siblings, 1 reply; 6+ messages in thread
From: Petr Vorel @ 2022-09-06  5:46 UTC (permalink / raw)
  To: ltp; +Cc: Richard Palethorpe

* 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 {

Signed-off-by: Petr Vorel <pvorel@suse.cz>
---
 include/mk/env_post.mk | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/include/mk/env_post.mk b/include/mk/env_post.mk
index a00f31b08..184481f6c 100644
--- a/include/mk/env_post.mk
+++ b/include/mk/env_post.mk
@@ -94,7 +94,7 @@ CHECK_TARGETS			?= $(addprefix check-,$(notdir $(patsubst %.c,%,$(sort $(wildcar
 CHECK_TARGETS			:= $(filter-out $(addprefix check-, $(FILTER_OUT_MAKE_TARGETS)), $(CHECK_TARGETS))
 CHECK_HEADER_TARGETS		?= $(addprefix check-,$(notdir $(sort $(wildcard $(abs_srcdir)/*.h))))
 CHECK				?= $(abs_top_srcdir)/tools/sparse/sparse-ltp
-CHECK_NOFLAGS			?= $(abs_top_srcdir)/scripts/checkpatch.pl -f --no-tree --terse --no-summary --ignore CONST_STRUCT,VOLATILE,SPLIT_STRING
+CHECK_NOFLAGS			?= $(abs_top_srcdir)/scripts/checkpatch.pl -f --no-tree --terse --no-summary --ignore CONST_STRUCT,VOLATILE,SPLIT_STRING,EMBEDDED_FILENAME,ENOSYS,NEW_TYPEDEFS
 SHELL_CHECK			?= $(abs_top_srcdir)/scripts/checkbashisms.pl --force --extra
 SHELL_CHECK_TARGETS		?= $(addprefix check-,$(notdir $(sort $(wildcard $(abs_srcdir)/*.sh))))
 
-- 
2.37.3


-- 
Mailing list info: https://lists.linux.it/listinfo/ltp

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

end of thread, other threads:[~2022-10-17 10:41 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2022-09-06  5:46 [LTP] [PATCH 1/1] checkpatch: Ignore warnings irrelevant in userspace Petr Vorel
2022-09-16 14:08 ` Cyril Hrubis
2022-09-16 19:04   ` Petr Vorel
2022-09-19  7:49     ` Cyril Hrubis
2022-09-21 11:22       ` Petr Vorel
2022-10-17 10:41         ` Richard Palethorpe

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