--- zzzz-none-000/linux-2.6.39.4/include/trace/events/kmem.h 2011-08-03 19:43:28.000000000 +0000 +++ puma6-arm-6490-729/linux-2.6.39.4/include/trace/events/kmem.h 2021-11-10 13:23:10.000000000 +0000 @@ -8,6 +8,9 @@ #include #include "gfpflags.h" +#pragma GCC diagnostic push +#pragma GCC diagnostic ignored "-Wunused-parameter" + DECLARE_EVENT_CLASS(kmem_alloc, TP_PROTO(unsigned long call_site, @@ -302,6 +305,7 @@ __entry->alloc_migratetype == __entry->fallback_migratetype) ); +#pragma GCC diagnostic pop #endif /* _TRACE_KMEM_H */ /* This part must be outside protection */