• A
    ras: mark stub functions as 'inline' · 0607512d
    Arnd Bergmann 提交于
    With CONFIG_RAS disabled, we get two harmless warnings about
    unused functions:
    
    include/linux/ras.h:37:13: error: 'log_arm_hw_error' defined but not used [-Werror=unused-function]
     static void log_arm_hw_error(struct cper_sec_proc_arm *err) { return; }
    include/linux/ras.h:33:13: error: 'log_non_standard_event' defined but not used [-Werror=unused-function]
     static void log_non_standard_event(const guid_t *sec_type,
    
    Clearly these are meant to be 'inline', like the other stubs
    in the same header.
    
    Fixes: 297b64c7 ("ras: acpi / apei: generate trace event for unrecognized CPER section")
    Fixes: e9279e83 ("trace, ras: add ARM processor error trace event")
    Acked-by: NBorislav Petkov <bp@suse.de>
    Signed-off-by: NArnd Bergmann <arnd@arndb.de>
    Signed-off-by: NWill Deacon <will.deacon@arm.com>
    0607512d
ras.h 1.1 KB