Skip to content
  • Kishon Vijay Abraham I's avatar
    include: extcon: Fix compilation error caused because of incomplete merge · eeb7df27
    Kishon Vijay Abraham I authored
    
    
    Fix the following compilation error caused due to incomplete merge. This is
    observed if CONFIG_EXTCON is not set.
    
    In file included from ./include/linux/mfd/palmas.h:23:0,
                     from drivers/input/misc/palmas-pwrbutton.c:22:
    ./include/linux/extcon.h: In function ‘extcon_sync’:
    ./include/linux/extcon.h:361:1: error: expected declaration specifiers before ‘<<’ token
    ./include/linux/extcon.h:370:1: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘{’ token
    ./include/linux/extcon.h:376:1: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘>>’ token
    ./include/linux/extcon.h:381:1: error: expected declaration specifiers before ‘<<’ token
    ./include/linux/extcon.h:390:1: error: expected declaration specifiers or ‘...’ before ‘==’ token
    ./include/linux/extcon.h:476:11: warning: ‘struct extcon_specific_cable_nb’ declared inside parameter list [enabled by default]
    ./include/linux/extcon.h:476:11: warning: its scope is only this definition or declaration, which is probably not what you want [enabled by default]
    ./include/linux/extcon.h:474:19: error: storage class specified for parameter ‘extcon_register_interest’
    ./include/linux/extcon.h:474:19: warning: parameter ‘extcon_register_interest’ declared ‘inline’ [enabled by default]
    ./include/linux/extcon.h:477:1: warning: ‘always_inline’ attribute ignored [-Wattributes]
    ./include/linux/extcon.h:474:19: error: ‘no_instrument_function’ attribute applies only to functions
    ./include/linux/extcon.h:477:1: error: expected ‘;’, ‘,’ or ‘)’ before ‘{’ token
    
    Signed-off-by: default avatarKishon Vijay Abraham I <kishon@ti.com>
    Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
    eeb7df27