On Thu, 26 Jun 2014, Luis R. Rodriguez wrote: > diff --git a/kernel/printk/printk.c b/kernel/printk/printk.c > index 83f7a95..65ed0a6 100644 > --- a/kernel/printk/printk.c > +++ b/kernel/printk/printk.c > @@ -266,7 +266,11 @@ static u32 clear_idx; > #define LOG_ALIGN __alignof__(struct printk_log) > #endif > #define __LOG_BUF_LEN (1 << CONFIG_LOG_BUF_SHIFT) > +#if defined(CONFIG_LOG_CPU_MAX_BUF_SHIFT) > #define __LOG_CPU_MAX_BUF_LEN (1 << CONFIG_LOG_CPU_MAX_BUF_SHIFT) > +#else > +#define __LOG_CPU_MAX_BUF_LEN 1 > +#endif > static char __log_buf[__LOG_BUF_LEN] __aligned(LOG_ALIGN); > static char *log_buf = __log_buf; > static u32 log_buf_len = __LOG_BUF_LEN; No, I think this would be much cleaner to just define CONFIG_LOG_CPU_MAX_BUF_SHIFT unconditionally to 0 when !SMP || BASE_SMALL and otherwise allow it to be configured according to the allowed range. The verbosity of this configuration option is just downright excessive. -- To unsubscribe, send a message with 'unsubscribe linux-mm' in the body to majordomo@xxxxxxxxx. For more info on Linux MM, see: http://www.linux-mm.org/ . Don't email: <a href=mailto:"dont@xxxxxxxxx"> email@xxxxxxxxx </a>