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 <huangtao@rock-chips.com>
Change-Id: Idb4fb52c8cf76ff02bae3940dc0ca8a0c480e697
diff --git a/scripts/gcc-wrapper.py b/scripts/gcc-wrapper.py
index 78f3c61..ea74ea8 100755
--- a/scripts/gcc-wrapper.py
+++ b/scripts/gcc-wrapper.py
@@ -38,6 +38,7 @@
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]