From: kernel test robot <lkp@intel.com> To: Tetsuo Handa <penguin-kernel@I-love.SAKURA.ne.jp>, Greg Kroah-Hartman <gregkh@linuxfoundation.org>, Jiri Slaby <jirislaby@kernel.org>, Petr Mladek <pmladek@suse.com>, Sergey Senozhatsky <sergey.senozhatsky@gmail.com>, Steven Rostedt <rostedt@goodmis.org>, John Ogness <john.ogness@linutronix.de> Cc: kbuild-all@lists.01.org, linux-kernel@vger.kernel.org, Tetsuo Handa <penguin-kernel@I-love.SAKURA.ne.jp> Subject: Re: [PATCH] tty: use printk_safe context at tty_msg() Date: Sat, 3 Apr 2021 14:52:54 +0800 [thread overview] Message-ID: <202104031438.RuTk02Vc-lkp@intel.com> (raw) In-Reply-To: <20210403041444.4081-1-penguin-kernel@I-love.SAKURA.ne.jp> [-- Attachment #1: Type: text/plain, Size: 11862 bytes --] Hi Tetsuo, I love your patch! Yet something to improve: [auto build test ERROR on tty/tty-testing] [also build test ERROR on v5.12-rc5 next-20210401] [If your patch is applied to the wrong git tree, kindly drop us a note. And when submitting patch, we suggest to use '--base' as documented in https://git-scm.com/docs/git-format-patch] url: https://github.com/0day-ci/linux/commits/Tetsuo-Handa/tty-use-printk_safe-context-at-tty_msg/20210403-121636 base: https://git.kernel.org/pub/scm/linux/kernel/git/gregkh/tty.git tty-testing config: microblaze-randconfig-r001-20210403 (attached as .config) compiler: microblaze-linux-gcc (GCC) 9.3.0 reproduce (this is a W=1 build): wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross chmod +x ~/bin/make.cross # https://github.com/0day-ci/linux/commit/88235b87a105a519a205a28753857b7db5e6b3d1 git remote add linux-review https://github.com/0day-ci/linux git fetch --no-tags linux-review Tetsuo-Handa/tty-use-printk_safe-context-at-tty_msg/20210403-121636 git checkout 88235b87a105a519a205a28753857b7db5e6b3d1 # save the attached .config to linux build tree COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-9.3.0 make.cross ARCH=microblaze If you fix the issue, kindly add following tag as appropriate Reported-by: kernel test robot <lkp@intel.com> All error/warnings (new ones prefixed by >>): In file included from include/linux/tty.h:17, from kernel/signal.c:26: >> include/uapi/../../kernel/printk/internal.h:59:20: warning: no previous prototype for 'vprintk_func' [-Wmissing-prototypes] 59 | __printf(1, 0) int vprintk_func(const char *fmt, va_list args) { return 0; } | ^~~~~~~~~~~~ -- In file included from include/linux/tty.h:17, from kernel/audit.h:13, from kernel/audit.c:63: >> include/uapi/../../kernel/printk/internal.h:59:20: warning: no previous prototype for 'vprintk_func' [-Wmissing-prototypes] 59 | __printf(1, 0) int vprintk_func(const char *fmt, va_list args) { return 0; } | ^~~~~~~~~~~~ kernel/audit.c:1778:14: warning: no previous prototype for 'audit_serial' [-Wmissing-prototypes] 1778 | unsigned int audit_serial(void) | ^~~~~~~~~~~~ kernel/audit.c: In function 'audit_log_vformat': kernel/audit.c:1926:2: warning: function 'audit_log_vformat' might be a candidate for 'gnu_printf' format attribute [-Wsuggest-attribute=format] 1926 | len = vsnprintf(skb_tail_pointer(skb), avail, fmt, args); | ^~~ kernel/audit.c:1935:3: warning: function 'audit_log_vformat' might be a candidate for 'gnu_printf' format attribute [-Wsuggest-attribute=format] 1935 | len = vsnprintf(skb_tail_pointer(skb), avail, fmt, args2); | ^~~ -- In file included from include/linux/tty.h:17, from kernel/audit.h:13, from kernel/auditfilter.c:23: >> include/uapi/../../kernel/printk/internal.h:59:20: warning: no previous prototype for 'vprintk_func' [-Wmissing-prototypes] 59 | __printf(1, 0) int vprintk_func(const char *fmt, va_list args) { return 0; } | ^~~~~~~~~~~~ kernel/auditfilter.c: In function 'audit_data_to_entry': kernel/auditfilter.c:609:37: warning: suggest braces around empty body in an 'if' statement [-Wempty-body] 609 | audit_remove_mark(entry->rule.exe); /* that's the template one */ | ^ kernel/auditfilter.c: In function 'audit_dupe_rule': kernel/auditfilter.c:875:32: warning: suggest braces around empty body in an 'if' statement [-Wempty-body] 875 | audit_remove_mark(new->exe); | ^ kernel/auditfilter.c: In function 'audit_del_rule': kernel/auditfilter.c:1045:35: warning: suggest braces around empty body in an 'if' statement [-Wempty-body] 1045 | audit_remove_mark_rule(&e->rule); | ^ kernel/auditfilter.c: In function 'audit_rule_change': kernel/auditfilter.c:1150:38: warning: suggest braces around empty body in an 'if' statement [-Wempty-body] 1150 | audit_remove_mark(entry->rule.exe); | ^ kernel/auditfilter.c: In function 'update_lsm_rule': kernel/auditfilter.c:1402:37: warning: suggest braces around empty body in an 'if' statement [-Wempty-body] 1402 | audit_remove_mark(entry->rule.exe); | ^ -- In file included from include/linux/tty.h:17, from kernel/fork.c:78: >> include/uapi/../../kernel/printk/internal.h:59:20: warning: no previous prototype for 'vprintk_func' [-Wmissing-prototypes] 59 | __printf(1, 0) int vprintk_func(const char *fmt, va_list args) { return 0; } | ^~~~~~~~~~~~ kernel/fork.c:161:13: warning: no previous prototype for 'arch_release_task_struct' [-Wmissing-prototypes] 161 | void __weak arch_release_task_struct(struct task_struct *tsk) | ^~~~~~~~~~~~~~~~~~~~~~~~ kernel/fork.c:746:20: warning: no previous prototype for 'arch_task_cache_init' [-Wmissing-prototypes] 746 | void __init __weak arch_task_cache_init(void) { } | ^~~~~~~~~~~~~~~~~~~~ kernel/fork.c:836:12: warning: no previous prototype for 'arch_dup_task_struct' [-Wmissing-prototypes] 836 | int __weak arch_dup_task_struct(struct task_struct *dst, | ^~~~~~~~~~~~~~~~~~~~ -- In file included from include/linux/tty.h:17, from include/linux/vt_kern.h:12, from kernel/panic.c:19: >> include/uapi/../../kernel/printk/internal.h:59:20: warning: no previous prototype for 'vprintk_func' [-Wmissing-prototypes] 59 | __printf(1, 0) int vprintk_func(const char *fmt, va_list args) { return 0; } | ^~~~~~~~~~~~ kernel/panic.c:85:13: warning: no previous prototype for 'panic_smp_self_stop' [-Wmissing-prototypes] 85 | void __weak panic_smp_self_stop(void) | ^~~~~~~~~~~~~~~~~~~ kernel/panic.c:95:13: warning: no previous prototype for 'nmi_panic_self_stop' [-Wmissing-prototypes] 95 | void __weak nmi_panic_self_stop(struct pt_regs *regs) | ^~~~~~~~~~~~~~~~~~~ kernel/panic.c:106:13: warning: no previous prototype for 'crash_smp_send_stop' [-Wmissing-prototypes] 106 | void __weak crash_smp_send_stop(void) | ^~~~~~~~~~~~~~~~~~~ kernel/panic.c:576:6: warning: no previous prototype for '__warn' [-Wmissing-prototypes] 576 | void __warn(const char *file, int line, void *caller, unsigned taint, | ^~~~~~ kernel/panic.c: In function '__warn': kernel/panic.c:590:3: warning: function '__warn' might be a candidate for 'gnu_printf' format attribute [-Wsuggest-attribute=format] 590 | vprintk(args->fmt, args->args); | ^~~~~~~ kernel/panic.c: At top level: kernel/panic.c:620:6: warning: no previous prototype for 'warn_slowpath_fmt' [-Wmissing-prototypes] 620 | void warn_slowpath_fmt(const char *file, int line, unsigned taint, | ^~~~~~~~~~~~~~~~~ -- In file included from include/linux/tty.h:17, from kernel/exit.c:21: >> include/uapi/../../kernel/printk/internal.h:59:20: warning: no previous prototype for 'vprintk_func' [-Wmissing-prototypes] 59 | __printf(1, 0) int vprintk_func(const char *fmt, va_list args) { return 0; } | ^~~~~~~~~~~~ kernel/exit.c:1763:13: warning: no previous prototype for 'abort' [-Wmissing-prototypes] 1763 | __weak void abort(void) | ^~~~~ -- In file included from include/linux/tty.h:17, from kernel/printk/printk.c:24: >> include/uapi/../../kernel/printk/internal.h:59:20: warning: no previous prototype for 'vprintk_func' [-Wmissing-prototypes] 59 | __printf(1, 0) int vprintk_func(const char *fmt, va_list args) { return 0; } | ^~~~~~~~~~~~ In file included from kernel/printk/printk.c:61: >> kernel/printk/internal.h:59:20: error: redefinition of 'vprintk_func' 59 | __printf(1, 0) int vprintk_func(const char *fmt, va_list args) { return 0; } | ^~~~~~~~~~~~ In file included from include/linux/tty.h:17, from kernel/printk/printk.c:24: include/uapi/../../kernel/printk/internal.h:59:20: note: previous definition of 'vprintk_func' was here 59 | __printf(1, 0) int vprintk_func(const char *fmt, va_list args) { return 0; } | ^~~~~~~~~~~~ In file included from kernel/printk/printk.c:61: >> kernel/printk/internal.h:72:20: error: redefinition of 'printk_safe_init' 72 | static inline void printk_safe_init(void) { } | ^~~~~~~~~~~~~~~~ In file included from include/linux/tty.h:17, from kernel/printk/printk.c:24: include/uapi/../../kernel/printk/internal.h:72:20: note: previous definition of 'printk_safe_init' was here 72 | static inline void printk_safe_init(void) { } | ^~~~~~~~~~~~~~~~ In file included from kernel/printk/printk.c:61: >> kernel/printk/internal.h:73:20: error: redefinition of 'printk_percpu_data_ready' 73 | static inline bool printk_percpu_data_ready(void) { return false; } | ^~~~~~~~~~~~~~~~~~~~~~~~ In file included from include/linux/tty.h:17, from kernel/printk/printk.c:24: include/uapi/../../kernel/printk/internal.h:73:20: note: previous definition of 'printk_percpu_data_ready' was here 73 | static inline bool printk_percpu_data_ready(void) { return false; } | ^~~~~~~~~~~~~~~~~~~~~~~~ kernel/printk/printk.c:175:5: warning: no previous prototype for 'devkmsg_sysctl_set_loglvl' [-Wmissing-prototypes] 175 | int devkmsg_sysctl_set_loglvl(struct ctl_table *table, int write, | ^~~~~~~~~~~~~~~~~~~~~~~~~ vim +/vprintk_func +59 kernel/printk/internal.h 099f1c84c0052e Sergey Senozhatsky 2016-12-27 58 099f1c84c0052e Sergey Senozhatsky 2016-12-27 @59 __printf(1, 0) int vprintk_func(const char *fmt, va_list args) { return 0; } 099f1c84c0052e Sergey Senozhatsky 2016-12-27 60 099f1c84c0052e Sergey Senozhatsky 2016-12-27 61 /* 099f1c84c0052e Sergey Senozhatsky 2016-12-27 62 * In !PRINTK builds we still export logbuf_lock spin_lock, console_sem 099f1c84c0052e Sergey Senozhatsky 2016-12-27 63 * semaphore and some of console functions (console_unlock()/etc.), so 099f1c84c0052e Sergey Senozhatsky 2016-12-27 64 * printk-safe must preserve the existing local IRQ guarantees. 099f1c84c0052e Sergey Senozhatsky 2016-12-27 65 */ 099f1c84c0052e Sergey Senozhatsky 2016-12-27 66 #define printk_safe_enter_irqsave(flags) local_irq_save(flags) 099f1c84c0052e Sergey Senozhatsky 2016-12-27 67 #define printk_safe_exit_irqrestore(flags) local_irq_restore(flags) 099f1c84c0052e Sergey Senozhatsky 2016-12-27 68 099f1c84c0052e Sergey Senozhatsky 2016-12-27 69 #define printk_safe_enter_irq() local_irq_disable() 099f1c84c0052e Sergey Senozhatsky 2016-12-27 70 #define printk_safe_exit_irq() local_irq_enable() 099f1c84c0052e Sergey Senozhatsky 2016-12-27 71 ab6f762f0f5316 Sergey Senozhatsky 2020-03-03 @72 static inline void printk_safe_init(void) { } ab6f762f0f5316 Sergey Senozhatsky 2020-03-03 @73 static inline bool printk_percpu_data_ready(void) { return false; } --- 0-DAY CI Kernel Test Service, Intel Corporation https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org [-- Attachment #2: .config.gz --] [-- Type: application/gzip, Size: 32620 bytes --]
WARNING: multiple messages have this Message-ID (diff)
From: kernel test robot <lkp@intel.com> To: kbuild-all@lists.01.org Subject: Re: [PATCH] tty: use printk_safe context at tty_msg() Date: Sat, 03 Apr 2021 14:52:54 +0800 [thread overview] Message-ID: <202104031438.RuTk02Vc-lkp@intel.com> (raw) In-Reply-To: <20210403041444.4081-1-penguin-kernel@I-love.SAKURA.ne.jp> [-- Attachment #1: Type: text/plain, Size: 12053 bytes --] Hi Tetsuo, I love your patch! Yet something to improve: [auto build test ERROR on tty/tty-testing] [also build test ERROR on v5.12-rc5 next-20210401] [If your patch is applied to the wrong git tree, kindly drop us a note. And when submitting patch, we suggest to use '--base' as documented in https://git-scm.com/docs/git-format-patch] url: https://github.com/0day-ci/linux/commits/Tetsuo-Handa/tty-use-printk_safe-context-at-tty_msg/20210403-121636 base: https://git.kernel.org/pub/scm/linux/kernel/git/gregkh/tty.git tty-testing config: microblaze-randconfig-r001-20210403 (attached as .config) compiler: microblaze-linux-gcc (GCC) 9.3.0 reproduce (this is a W=1 build): wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross chmod +x ~/bin/make.cross # https://github.com/0day-ci/linux/commit/88235b87a105a519a205a28753857b7db5e6b3d1 git remote add linux-review https://github.com/0day-ci/linux git fetch --no-tags linux-review Tetsuo-Handa/tty-use-printk_safe-context-at-tty_msg/20210403-121636 git checkout 88235b87a105a519a205a28753857b7db5e6b3d1 # save the attached .config to linux build tree COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-9.3.0 make.cross ARCH=microblaze If you fix the issue, kindly add following tag as appropriate Reported-by: kernel test robot <lkp@intel.com> All error/warnings (new ones prefixed by >>): In file included from include/linux/tty.h:17, from kernel/signal.c:26: >> include/uapi/../../kernel/printk/internal.h:59:20: warning: no previous prototype for 'vprintk_func' [-Wmissing-prototypes] 59 | __printf(1, 0) int vprintk_func(const char *fmt, va_list args) { return 0; } | ^~~~~~~~~~~~ -- In file included from include/linux/tty.h:17, from kernel/audit.h:13, from kernel/audit.c:63: >> include/uapi/../../kernel/printk/internal.h:59:20: warning: no previous prototype for 'vprintk_func' [-Wmissing-prototypes] 59 | __printf(1, 0) int vprintk_func(const char *fmt, va_list args) { return 0; } | ^~~~~~~~~~~~ kernel/audit.c:1778:14: warning: no previous prototype for 'audit_serial' [-Wmissing-prototypes] 1778 | unsigned int audit_serial(void) | ^~~~~~~~~~~~ kernel/audit.c: In function 'audit_log_vformat': kernel/audit.c:1926:2: warning: function 'audit_log_vformat' might be a candidate for 'gnu_printf' format attribute [-Wsuggest-attribute=format] 1926 | len = vsnprintf(skb_tail_pointer(skb), avail, fmt, args); | ^~~ kernel/audit.c:1935:3: warning: function 'audit_log_vformat' might be a candidate for 'gnu_printf' format attribute [-Wsuggest-attribute=format] 1935 | len = vsnprintf(skb_tail_pointer(skb), avail, fmt, args2); | ^~~ -- In file included from include/linux/tty.h:17, from kernel/audit.h:13, from kernel/auditfilter.c:23: >> include/uapi/../../kernel/printk/internal.h:59:20: warning: no previous prototype for 'vprintk_func' [-Wmissing-prototypes] 59 | __printf(1, 0) int vprintk_func(const char *fmt, va_list args) { return 0; } | ^~~~~~~~~~~~ kernel/auditfilter.c: In function 'audit_data_to_entry': kernel/auditfilter.c:609:37: warning: suggest braces around empty body in an 'if' statement [-Wempty-body] 609 | audit_remove_mark(entry->rule.exe); /* that's the template one */ | ^ kernel/auditfilter.c: In function 'audit_dupe_rule': kernel/auditfilter.c:875:32: warning: suggest braces around empty body in an 'if' statement [-Wempty-body] 875 | audit_remove_mark(new->exe); | ^ kernel/auditfilter.c: In function 'audit_del_rule': kernel/auditfilter.c:1045:35: warning: suggest braces around empty body in an 'if' statement [-Wempty-body] 1045 | audit_remove_mark_rule(&e->rule); | ^ kernel/auditfilter.c: In function 'audit_rule_change': kernel/auditfilter.c:1150:38: warning: suggest braces around empty body in an 'if' statement [-Wempty-body] 1150 | audit_remove_mark(entry->rule.exe); | ^ kernel/auditfilter.c: In function 'update_lsm_rule': kernel/auditfilter.c:1402:37: warning: suggest braces around empty body in an 'if' statement [-Wempty-body] 1402 | audit_remove_mark(entry->rule.exe); | ^ -- In file included from include/linux/tty.h:17, from kernel/fork.c:78: >> include/uapi/../../kernel/printk/internal.h:59:20: warning: no previous prototype for 'vprintk_func' [-Wmissing-prototypes] 59 | __printf(1, 0) int vprintk_func(const char *fmt, va_list args) { return 0; } | ^~~~~~~~~~~~ kernel/fork.c:161:13: warning: no previous prototype for 'arch_release_task_struct' [-Wmissing-prototypes] 161 | void __weak arch_release_task_struct(struct task_struct *tsk) | ^~~~~~~~~~~~~~~~~~~~~~~~ kernel/fork.c:746:20: warning: no previous prototype for 'arch_task_cache_init' [-Wmissing-prototypes] 746 | void __init __weak arch_task_cache_init(void) { } | ^~~~~~~~~~~~~~~~~~~~ kernel/fork.c:836:12: warning: no previous prototype for 'arch_dup_task_struct' [-Wmissing-prototypes] 836 | int __weak arch_dup_task_struct(struct task_struct *dst, | ^~~~~~~~~~~~~~~~~~~~ -- In file included from include/linux/tty.h:17, from include/linux/vt_kern.h:12, from kernel/panic.c:19: >> include/uapi/../../kernel/printk/internal.h:59:20: warning: no previous prototype for 'vprintk_func' [-Wmissing-prototypes] 59 | __printf(1, 0) int vprintk_func(const char *fmt, va_list args) { return 0; } | ^~~~~~~~~~~~ kernel/panic.c:85:13: warning: no previous prototype for 'panic_smp_self_stop' [-Wmissing-prototypes] 85 | void __weak panic_smp_self_stop(void) | ^~~~~~~~~~~~~~~~~~~ kernel/panic.c:95:13: warning: no previous prototype for 'nmi_panic_self_stop' [-Wmissing-prototypes] 95 | void __weak nmi_panic_self_stop(struct pt_regs *regs) | ^~~~~~~~~~~~~~~~~~~ kernel/panic.c:106:13: warning: no previous prototype for 'crash_smp_send_stop' [-Wmissing-prototypes] 106 | void __weak crash_smp_send_stop(void) | ^~~~~~~~~~~~~~~~~~~ kernel/panic.c:576:6: warning: no previous prototype for '__warn' [-Wmissing-prototypes] 576 | void __warn(const char *file, int line, void *caller, unsigned taint, | ^~~~~~ kernel/panic.c: In function '__warn': kernel/panic.c:590:3: warning: function '__warn' might be a candidate for 'gnu_printf' format attribute [-Wsuggest-attribute=format] 590 | vprintk(args->fmt, args->args); | ^~~~~~~ kernel/panic.c: At top level: kernel/panic.c:620:6: warning: no previous prototype for 'warn_slowpath_fmt' [-Wmissing-prototypes] 620 | void warn_slowpath_fmt(const char *file, int line, unsigned taint, | ^~~~~~~~~~~~~~~~~ -- In file included from include/linux/tty.h:17, from kernel/exit.c:21: >> include/uapi/../../kernel/printk/internal.h:59:20: warning: no previous prototype for 'vprintk_func' [-Wmissing-prototypes] 59 | __printf(1, 0) int vprintk_func(const char *fmt, va_list args) { return 0; } | ^~~~~~~~~~~~ kernel/exit.c:1763:13: warning: no previous prototype for 'abort' [-Wmissing-prototypes] 1763 | __weak void abort(void) | ^~~~~ -- In file included from include/linux/tty.h:17, from kernel/printk/printk.c:24: >> include/uapi/../../kernel/printk/internal.h:59:20: warning: no previous prototype for 'vprintk_func' [-Wmissing-prototypes] 59 | __printf(1, 0) int vprintk_func(const char *fmt, va_list args) { return 0; } | ^~~~~~~~~~~~ In file included from kernel/printk/printk.c:61: >> kernel/printk/internal.h:59:20: error: redefinition of 'vprintk_func' 59 | __printf(1, 0) int vprintk_func(const char *fmt, va_list args) { return 0; } | ^~~~~~~~~~~~ In file included from include/linux/tty.h:17, from kernel/printk/printk.c:24: include/uapi/../../kernel/printk/internal.h:59:20: note: previous definition of 'vprintk_func' was here 59 | __printf(1, 0) int vprintk_func(const char *fmt, va_list args) { return 0; } | ^~~~~~~~~~~~ In file included from kernel/printk/printk.c:61: >> kernel/printk/internal.h:72:20: error: redefinition of 'printk_safe_init' 72 | static inline void printk_safe_init(void) { } | ^~~~~~~~~~~~~~~~ In file included from include/linux/tty.h:17, from kernel/printk/printk.c:24: include/uapi/../../kernel/printk/internal.h:72:20: note: previous definition of 'printk_safe_init' was here 72 | static inline void printk_safe_init(void) { } | ^~~~~~~~~~~~~~~~ In file included from kernel/printk/printk.c:61: >> kernel/printk/internal.h:73:20: error: redefinition of 'printk_percpu_data_ready' 73 | static inline bool printk_percpu_data_ready(void) { return false; } | ^~~~~~~~~~~~~~~~~~~~~~~~ In file included from include/linux/tty.h:17, from kernel/printk/printk.c:24: include/uapi/../../kernel/printk/internal.h:73:20: note: previous definition of 'printk_percpu_data_ready' was here 73 | static inline bool printk_percpu_data_ready(void) { return false; } | ^~~~~~~~~~~~~~~~~~~~~~~~ kernel/printk/printk.c:175:5: warning: no previous prototype for 'devkmsg_sysctl_set_loglvl' [-Wmissing-prototypes] 175 | int devkmsg_sysctl_set_loglvl(struct ctl_table *table, int write, | ^~~~~~~~~~~~~~~~~~~~~~~~~ vim +/vprintk_func +59 kernel/printk/internal.h 099f1c84c0052e Sergey Senozhatsky 2016-12-27 58 099f1c84c0052e Sergey Senozhatsky 2016-12-27 @59 __printf(1, 0) int vprintk_func(const char *fmt, va_list args) { return 0; } 099f1c84c0052e Sergey Senozhatsky 2016-12-27 60 099f1c84c0052e Sergey Senozhatsky 2016-12-27 61 /* 099f1c84c0052e Sergey Senozhatsky 2016-12-27 62 * In !PRINTK builds we still export logbuf_lock spin_lock, console_sem 099f1c84c0052e Sergey Senozhatsky 2016-12-27 63 * semaphore and some of console functions (console_unlock()/etc.), so 099f1c84c0052e Sergey Senozhatsky 2016-12-27 64 * printk-safe must preserve the existing local IRQ guarantees. 099f1c84c0052e Sergey Senozhatsky 2016-12-27 65 */ 099f1c84c0052e Sergey Senozhatsky 2016-12-27 66 #define printk_safe_enter_irqsave(flags) local_irq_save(flags) 099f1c84c0052e Sergey Senozhatsky 2016-12-27 67 #define printk_safe_exit_irqrestore(flags) local_irq_restore(flags) 099f1c84c0052e Sergey Senozhatsky 2016-12-27 68 099f1c84c0052e Sergey Senozhatsky 2016-12-27 69 #define printk_safe_enter_irq() local_irq_disable() 099f1c84c0052e Sergey Senozhatsky 2016-12-27 70 #define printk_safe_exit_irq() local_irq_enable() 099f1c84c0052e Sergey Senozhatsky 2016-12-27 71 ab6f762f0f5316 Sergey Senozhatsky 2020-03-03 @72 static inline void printk_safe_init(void) { } ab6f762f0f5316 Sergey Senozhatsky 2020-03-03 @73 static inline bool printk_percpu_data_ready(void) { return false; } --- 0-DAY CI Kernel Test Service, Intel Corporation https://lists.01.org/hyperkitty/list/kbuild-all(a)lists.01.org [-- Attachment #2: config.gz --] [-- Type: application/gzip, Size: 32620 bytes --]
next prev parent reply other threads:[~2021-04-03 6:53 UTC|newest] Thread overview: 45+ messages / expand[flat|nested] mbox.gz Atom feed top 2021-04-03 4:14 [PATCH] tty: use printk_safe context at tty_msg() Tetsuo Handa 2021-04-03 6:52 ` kernel test robot [this message] 2021-04-03 6:52 ` kernel test robot 2021-04-03 10:11 ` [PATCH] printk: Make multiple inclusion of kernel/printk/internal.h safe Tetsuo Handa 2021-04-03 10:11 ` Tetsuo Handa 2021-04-06 4:51 ` [PATCH] tty: use printk_safe context at tty_msg() Jiri Slaby 2021-04-06 5:31 ` Tetsuo Handa 2021-04-06 7:10 ` Greg Kroah-Hartman 2021-04-06 11:16 ` Tetsuo Handa 2021-04-06 13:42 ` Greg Kroah-Hartman 2021-04-06 15:10 ` Petr Mladek 2021-04-06 16:22 ` Tetsuo Handa 2021-04-06 19:10 ` Greg Kroah-Hartman 2021-04-07 9:20 ` Petr Mladek 2021-04-07 13:26 ` [PATCH v2] tty: use printk_deferred() " Tetsuo Handa 2021-04-07 13:48 ` Greg Kroah-Hartman 2021-04-07 14:24 ` Tetsuo Handa 2021-04-12 10:39 ` How to handle concurrent access to /dev/ttyprintk ? Tetsuo Handa 2021-04-12 10:44 ` Greg Kroah-Hartman 2021-04-12 11:25 ` Tetsuo Handa 2021-04-12 12:04 ` Greg Kroah-Hartman 2021-04-14 0:45 ` Tetsuo Handa 2021-04-14 11:11 ` Tetsuo Handa 2021-04-14 16:15 ` Samo Pogačnik 2021-04-15 0:22 ` [PATCH] ttyprintk: Add TTY hangup callback Tetsuo Handa 2021-04-18 11:16 ` Samo Pogačnik 2021-04-22 10:02 ` Greg Kroah-Hartman 2021-04-23 4:22 ` Jiri Slaby 2021-04-23 9:55 ` Samo Pogačnik 2021-04-23 10:12 ` Tetsuo Handa 2021-04-23 19:47 ` Samo Pogačnik 2021-04-24 1:16 ` Tetsuo Handa 2021-04-24 9:57 ` Samo Pogačnik 2021-04-26 10:00 ` Petr Mladek 2021-04-26 16:42 ` Samo Pogačnik 2021-04-27 10:08 ` Petr Mladek 2021-04-27 11:31 ` Samo Pogačnik 2021-04-23 10:28 ` Jiri Slaby 2021-04-23 12:23 ` [PATCH] ttyprintk: Add TTY port shutdown callback Samo Pogačnik 2021-04-12 12:41 ` How to handle concurrent access to /dev/ttyprintk ? Samo Pogačnik 2021-04-13 9:41 ` Petr Mladek 2021-04-13 11:10 ` Samo Pogačnik 2021-04-13 14:32 ` Petr Mladek 2021-04-13 15:22 ` Samo Pogačnik 2021-04-14 17:36 ` Petr Mladek
Reply instructions: You may reply publicly to this message via plain-text email using any one of the following methods: * Save the following mbox file, import it into your mail client, and reply-to-all from there: mbox Avoid top-posting and favor interleaved quoting: https://en.wikipedia.org/wiki/Posting_style#Interleaved_style * Reply using the --to, --cc, and --in-reply-to switches of git-send-email(1): git send-email \ --in-reply-to=202104031438.RuTk02Vc-lkp@intel.com \ --to=lkp@intel.com \ --cc=gregkh@linuxfoundation.org \ --cc=jirislaby@kernel.org \ --cc=john.ogness@linutronix.de \ --cc=kbuild-all@lists.01.org \ --cc=linux-kernel@vger.kernel.org \ --cc=penguin-kernel@I-love.SAKURA.ne.jp \ --cc=pmladek@suse.com \ --cc=rostedt@goodmis.org \ --cc=sergey.senozhatsky@gmail.com \ /path/to/YOUR_REPLY https://kernel.org/pub/software/scm/git/docs/git-send-email.html * If your mail client supports setting the In-Reply-To header via mailto: links, try the mailto: linkBe sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes, see mirroring instructions on how to clone and mirror all data and code used by this external index.