tree: https://git.kernel.org/pub/scm/linux/kernel/git/gregkh/tty.git tty-testing head: fd7ea3a98728a4861c23d2c616649238f15890ff commit: fd7ea3a98728a4861c23d2c616649238f15890ff [66/66] tty: fix data race between tty_init_dev and flush of buf config: sparc64-allnoconfig (attached as .config) compiler: sparc64-linux-gnu-gcc (Debian 7.2.0-11) 7.2.0 reproduce: wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross chmod +x ~/bin/make.cross git checkout fd7ea3a98728a4861c23d2c616649238f15890ff # save the attached .config to linux build tree make.cross ARCH=sparc64 All errors (new ones prefixed by >>): In file included from arch/sparc/kernel/signal_64.c:24:0: include/linux/tty.h:437:1: error: expected identifier or '(' before '{' token { return 0; } ^ include/linux/tty.h:439:1: error: expected identifier or '(' before '{' token { } ^ >> include/linux/tty.h:436:19: error: 'tty_ldisc_lock' declared 'static' but never defined [-Werror=unused-function] static inline int tty_ldisc_lock(struct tty_struct *tty, unsigned long timeout); ^~~~~~~~~~~~~~ >> include/linux/tty.h:438:20: error: 'tty_ldisc_unlock' declared 'static' but never defined [-Werror=unused-function] static inline void tty_ldisc_unlock(struct tty_struct *tty); ^~~~~~~~~~~~~~~~ cc1: all warnings being treated as errors vim +436 include/linux/tty.h 393 394 #ifdef CONFIG_TTY 395 extern void tty_kref_put(struct tty_struct *tty); 396 extern struct pid *tty_get_pgrp(struct tty_struct *tty); 397 extern void tty_vhangup_self(void); 398 extern void disassociate_ctty(int priv); 399 extern dev_t tty_devnum(struct tty_struct *tty); 400 extern void proc_clear_tty(struct task_struct *p); 401 extern struct tty_struct *get_current_tty(void); 402 /* tty_io.c */ 403 extern int __init tty_init(void); 404 extern const char *tty_name(const struct tty_struct *tty); 405 extern struct tty_struct *tty_kopen(dev_t device); 406 extern void tty_kclose(struct tty_struct *tty); 407 extern int tty_dev_name_to_number(const char *name, dev_t *number); 408 extern int tty_ldisc_lock(struct tty_struct *tty, unsigned long timeout); 409 extern void tty_ldisc_unlock(struct tty_struct *tty); 410 #else 411 static inline void tty_kref_put(struct tty_struct *tty) 412 { } 413 static inline struct pid *tty_get_pgrp(struct tty_struct *tty) 414 { return NULL; } 415 static inline void tty_vhangup_self(void) 416 { } 417 static inline void disassociate_ctty(int priv) 418 { } 419 static inline dev_t tty_devnum(struct tty_struct *tty) 420 { return 0; } 421 static inline void proc_clear_tty(struct task_struct *p) 422 { } 423 static inline struct tty_struct *get_current_tty(void) 424 { return NULL; } 425 /* tty_io.c */ 426 static inline int __init tty_init(void) 427 { return 0; } 428 static inline const char *tty_name(const struct tty_struct *tty) 429 { return "(none)"; } 430 static inline struct tty_struct *tty_kopen(dev_t device) 431 { return ERR_PTR(-ENODEV); } 432 static inline void tty_kclose(struct tty_struct *tty) 433 { } 434 static inline int tty_dev_name_to_number(const char *name, dev_t *number) 435 { return -ENOTSUPP; } > 436 static inline int tty_ldisc_lock(struct tty_struct *tty, unsigned long timeout); > 437 { return 0; } > 438 static inline void tty_ldisc_unlock(struct tty_struct *tty); 439 { } 440 #endif 441 --- 0-DAY kernel test infrastructure Open Source Technology Center https://lists.01.org/pipermail/kbuild-all Intel Corporation
Attachment:
.config.gz
Description: application/gzip