--- zzzz-none-000/linux-3.10.107/include/linux/dynamic_debug.h 2017-06-27 09:49:32.000000000 +0000 +++ vr9-7490-729/linux-3.10.107/include/linux/dynamic_debug.h 2021-11-10 11:53:56.000000000 +0000 @@ -111,13 +111,13 @@ #include #include -static inline int ddebug_remove_module(const char *mod) +static inline int ddebug_remove_module(const char *mod __attribute__((unused))) { return 0; } -static inline int ddebug_dyndbg_module_param_cb(char *param, char *val, - const char *modname) +static inline int ddebug_dyndbg_module_param_cb(char *param, char *val __attribute__((unused)), + const char *modname __attribute__((unused))) { if (strstr(param, "dyndbg")) { /* avoid pr_warn(), which wants pr_fmt() fully defined */ @@ -132,6 +132,13 @@ do { if (0) printk(KERN_DEBUG pr_fmt(fmt), ##__VA_ARGS__); } while (0) #define dynamic_dev_dbg(dev, fmt, ...) \ do { if (0) dev_printk(KERN_DEBUG, dev, fmt, ##__VA_ARGS__); } while (0) +#define dynamic_hex_dump(prefix_str, prefix_type, rowsize, \ + groupsize, buf, len, ascii) \ +while (0) { \ + print_hex_dump(KERN_DEBUG, prefix_str, \ + prefix_type, rowsize, groupsize, \ + buf, len, ascii); \ +} #endif #endif