There are many uses of printk_once(KERN_<level>. Add pr_<level>_once macros to avoid printk_once(KERN_<level> pr_fmt(fmt). Add an #ifdef CONFIG_PRINTK for print_hex_dump and static inline void functions for the #else cases to reduce embedded code size. Neaten and organize the rest of the code. Joe Perches (7): include/linux/printk.h: Move console functions and variables together include/linux/printk.h: Use space after #define include/linux/printk.h: Use and neaten no_printk include/linux/printk.h: Add pr_<level>_once macros include/linux/printk.h lib/hexdump.c: Neatening and add CONFIG_PRINTK guard include/linux/printk.h: Organize printk_ratelimited macros include/linux/printk.h: Use tab not spaces for indent include/linux/printk.h | 247 +++++++++++++++++++++++++++++------------------- lib/hexdump.c | 2 + 2 files changed, 152 insertions(+), 97 deletions(-) -- 1.7.3.2.245.g03276.dirty -- To unsubscribe from this list: send the line "unsubscribe linux-embedded" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html