From 90bffb482bc586db2cc8705ab1edab10f65d325d Mon Sep 17 00:00:00 2001 From: Tao Huang Date: Fri, 15 Jul 2022 19:27:22 +0800 Subject: [PATCH] scripts/gcc-wrapper.py: ignore cgroup.h:35 In file included from ./include/trace/syscall.h:5, from ./include/linux/syscalls.h:84, from kernel/freezer.c:11: ./include/trace/hooks/cgroup.h:35:18: warning: 'struct cgroup_subsys' declared inside parameter list will not be visible outside of this definition or declaration 35 | TP_PROTO(struct cgroup_subsys *ss, struct cgroup_taskset *tset), | ^~~~~~~~~~~~~ ./include/linux/tracepoint.h:577:34: note: in definition of macro 'DECLARE_EVENT_NOP' 577 | static inline void trace_##name(proto) \ | ^~~~~ ./include/trace/hooks/cgroup.h:35:2: note: in expansion of macro 'TP_PROTO' 35 | TP_PROTO(struct cgroup_subsys *ss, struct cgroup_taskset *tset), | ^~~~~~~~ Signed-off-by: Tao Huang Change-Id: Idb4fb52c8cf76ff02bae3940dc0ca8a0c480e697 --- scripts/gcc-wrapper.py | 1 + 1 file changed, 1 insertion(+) diff --git a/scripts/gcc-wrapper.py b/scripts/gcc-wrapper.py index 78f3c61b1d9b..ea74ea852242 100755 --- a/scripts/gcc-wrapper.py +++ b/scripts/gcc-wrapper.py @@ -38,6 +38,7 @@ import sys import subprocess allowed_warnings = set([ + "cgroup.h:35", # include/trace/hooks/cgroup.h:35:18: warning: 'struct cgroup_subsys' declared inside parameter list will not be visible outside of this definition or declaration "vfs.c:1259", # fs/incfs/vfs.c:1259:10: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast] "pseudo_files.c:655", # fs/incfs/pseudo_files.c:655:10: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast] "km_apphint.c:230", # drivers/staging/imgtec/rogue/km_apphint.c:230:48: warning: division 'sizeof (void *) / sizeof (void)' does not compute the number of array elements [-Wsizeof-pointer-div]