Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

include: extcon: Fix compilation error caused because of incomplete merge

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: Kishon Vijay Abraham I <kishon@ti.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>

authored by

Kishon Vijay Abraham I and committed by
Greg Kroah-Hartman
eeb7df27 48ab6f53

-29
-29
include/linux/extcon.h
··· 358 358 } 359 359 360 360 static inline int extcon_sync(struct extcon_dev *edev, unsigned int id) 361 - <<<<<<< HEAD 362 - ======= 363 361 { 364 362 return 0; 365 363 } ··· 371 373 static inline int extcon_set_property(struct extcon_dev *edev, unsigned int id, 372 374 unsigned int prop, 373 375 union extcon_property_value prop_val) 374 - >>>>>>> next 375 376 { 376 377 return 0; 377 378 } 378 379 379 - <<<<<<< HEAD 380 - static inline int extcon_get_property(struct extcon_dev *edev, unsigned int id, 381 - unsigned int prop, 382 - union extcon_property_value *prop_val) 383 - { 384 - return 0; 385 - } 386 - static inline int extcon_set_property(struct extcon_dev *edev, unsigned int id, 387 - unsigned int prop, 388 - ======= 389 - static inline int extcon_set_property_sync(struct extcon_dev *edev, 390 - unsigned int id, unsigned int prop, 391 - >>>>>>> next 392 - union extcon_property_value prop_val) 393 - { 394 - return 0; 395 - } 396 - 397 - <<<<<<< HEAD 398 380 static inline int extcon_set_property_sync(struct extcon_dev *edev, 399 381 unsigned int id, unsigned int prop, 400 382 union extcon_property_value prop_val) 401 - ======= 402 - static inline int extcon_get_property_capability(struct extcon_dev *edev, 403 - unsigned int id, unsigned int prop) 404 - >>>>>>> next 405 383 { 406 384 return 0; 407 385 } 408 386 409 - <<<<<<< HEAD 410 387 static inline int extcon_get_property_capability(struct extcon_dev *edev, 411 388 unsigned int id, unsigned int prop) 412 389 { 413 390 return 0; 414 391 } 415 392 416 - ======= 417 - >>>>>>> next 418 393 static inline int extcon_set_property_capability(struct extcon_dev *edev, 419 394 unsigned int id, unsigned int prop) 420 395 {