• V
    [PATCH] x86-64: modpost add more symbols to whitelist pattern2 · 118c0ace
    Vivek Goyal 提交于
    o MODPOST generates warning for i386 if compiled with CONFIG_RELOCATABLE=y
      and serial console support is enabled.
    
    o Serial console setup function, serial8250_console_setup(), is a non __init
      function and it calls functions which are of type __init().
      (uart_parse_options() and uart_set_options()). Assuming, setup will
      be called during init time, changing serial8250_console_setup() to __init.
    
    o Adding one more pattern to modpost whitelist. Console drivers might
      have *_console structures containing references to setup functions which
      can be of __init type. Don't generate warnings for those.
    
    WARNING: vmlinux - Section mismatch: reference to .init.text: from .data between 'serial8250_console' (at offset 0xc05a33d8) and 'serial8250_reg'
    Signed-off-by: NVivek Goyal <vgoyal@in.ibm.com>
    Signed-off-by: NAndi Kleen <ak@suse.de>
    Cc: "Eric W. Biederman" <ebiederm@xmission.com>
    Cc: Andi Kleen <ak@suse.de>
    Signed-off-by: NAndrew Morton <akpm@osdl.org>
    118c0ace
modpost.c 36.5 KB