--- zzzz-none-000/linux-3.10.107/include/linux/kernel.h 2017-06-27 09:49:32.000000000 +0000 +++ vr9-7490-729/linux-3.10.107/include/linux/kernel.h 2021-11-10 11:53:56.000000000 +0000 @@ -176,8 +176,9 @@ # define might_sleep() \ do { __might_sleep(__FILE__, __LINE__, 0); might_resched(); } while (0) #else - static inline void __might_sleep(const char *file, int line, - int preempt_offset) { } + static inline void __might_sleep(const char *file __maybe_unused, + int line __maybe_unused, + int preempt_offset __maybe_unused) { } # define might_sleep() do { might_resched(); } while (0) #endif @@ -507,7 +508,7 @@ extern void ftrace_off_permanent(void); static inline __printf(1, 2) -void ____trace_printk_check_format(const char *fmt, ...) +void ____trace_printk_check_format(const char *fmt __maybe_unused, ...) { } #define __trace_printk_check_format(fmt, args...) \ @@ -653,16 +654,19 @@ static inline void tracing_snapshot_alloc(void) { } static inline __printf(1, 2) -int trace_printk(const char *fmt, ...) +int trace_printk(const char *fmt __maybe_unused, ...) { return 0; } static inline int -ftrace_vprintk(const char *fmt, va_list ap) +ftrace_vprintk(const char *fmt __maybe_unused, va_list ap __maybe_unused) { return 0; } -static inline void ftrace_dump(enum ftrace_dump_mode oops_dump_mode) { } +static inline void ftrace_dump( + enum ftrace_dump_mode oops_dump_mode __maybe_unused) +{ +} #endif /* CONFIG_TRACING */ /*