• Y
    memblock: add error return when CONFIG_HAVE_MEMBLOCK is not set · 95dde501
    Yinghai Lu 提交于
    On larger systems, information in the kernel log is lost because there is
    so much early text printed, that it overflows the static log buffer before
    the log_buf_len kernel parameter can be processed, and a bigger log buffer
    allocated.
    
    Distros are relunctant to increase memory usage by increasing the size of
    the static log buffer, so minimize the problem by allocating the new log
    buffer as early as possible.
    
    This patch:
    
    Add an error return if CONFIG_HAVE_MEMBLOCK is not set instead of having
    to add #ifdef CONFIG_HAVE_MEMBLOCK around blocks of code calling that
    function.
    Signed-off-by: NMike Travis <travis@sgi.com>
    Cc: Yinghai Lu <yhlu.kernel@gmail.com>
    Cc: "H. Peter Anvin" <hpa@zytor.com>
    Cc: Jack Steiner <steiner@sgi.com>
    Cc: Thomas Gleixner <tglx@linutronix.de>
    Cc: Ingo Molnar <mingo@elte.hu>
    Signed-off-by: NAndrew Morton <akpm@linux-foundation.org>
    Signed-off-by: NLinus Torvalds <torvalds@linux-foundation.org>
    95dde501
memblock.h 5.1 KB