Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.kernel > #1533723 > unrolled thread
| Started by | Sergey Senozhatsky <sergey.senozhatsky.work@gmail.com> |
|---|---|
| First post | 2016-12-01 02:10 +0100 |
| Last post | 2016-12-01 13:20 +0100 |
| Articles | 2 — 2 participants |
Back to article view | Back to linux.kernel
This discussion starts older than the indexed window; earlier articles aren't shown. The article labeled Started by
below is the oldest one visible, not the original post.
Re: [RFC][PATCHv4 2/6] printk: rename nmi.c and exported api Sergey Senozhatsky <sergey.senozhatsky.work@gmail.com> - 2016-12-01 02:10 +0100
Re: [RFC][PATCHv4 2/6] printk: rename nmi.c and exported api Petr Mladek <pmladek@suse.com> - 2016-12-01 13:20 +0100
| From | Sergey Senozhatsky <sergey.senozhatsky.work@gmail.com> |
|---|---|
| Date | 2016-12-01 02:10 +0100 |
| Subject | Re: [RFC][PATCHv4 2/6] printk: rename nmi.c and exported api |
| Message-ID | <sJo2S-5lf-33@gated-at.bofh.it> |
On (11/24/16 17:35), Petr Mladek wrote: [..] > > #ifdef CONFIG_PRINTK_NMI > > -extern void printk_nmi_init(void); > > -extern void printk_nmi_enter(void); > > -extern void printk_nmi_exit(void); > > -extern void printk_nmi_flush(void); > > -extern void printk_nmi_flush_on_panic(void); > > +extern void printk_safe_init(void); > > +extern void printk_safe_nmi_enter(void); > > +extern void printk_safe_nmi_exit(void); > > I would personally keep the short names pritnk_nmi_enter() and > printk_nmi_exit(). These are the only functions that will stay > in this CONFIG_PRINT_NMI section. The others are generic and > will be moved to the generic section in the next patch. I'd probably prefer all printk_safe functions to be printk_safe prefixed, just to show the fact that those are printk_safe functions (IOW, indirect output to a per-CPU buffer and flush it to logbuf later). > Well, it is just a cosmetic problem and a personal opinion. > The patch makes sense and looks fine: > > Reviewed-by: Petr Mladek <pmladek@pmladek@suse.com> thanks. -ss
[toc] | [next] | [standalone]
| From | Petr Mladek <pmladek@suse.com> |
|---|---|
| Date | 2016-12-01 13:20 +0100 |
| Message-ID | <sJyvf-3KW-3@gated-at.bofh.it> |
| In reply to | #1533723 |
On Thu 2016-12-01 10:07:01, Sergey Senozhatsky wrote: > On (11/24/16 17:35), Petr Mladek wrote: > [..] > > > #ifdef CONFIG_PRINTK_NMI > > > -extern void printk_nmi_init(void); > > > -extern void printk_nmi_enter(void); > > > -extern void printk_nmi_exit(void); > > > -extern void printk_nmi_flush(void); > > > -extern void printk_nmi_flush_on_panic(void); > > > +extern void printk_safe_init(void); > > > +extern void printk_safe_nmi_enter(void); > > > +extern void printk_safe_nmi_exit(void); > > > > I would personally keep the short names pritnk_nmi_enter() and > > printk_nmi_exit(). These are the only functions that will stay > > in this CONFIG_PRINT_NMI section. The others are generic and > > will be moved to the generic section in the next patch. > > I'd probably prefer all printk_safe functions to be printk_safe > prefixed, just to show the fact that those are printk_safe > functions (IOW, indirect output to a per-CPU buffer and flush > it to logbuf later). Fair enough. Best regards, Petr
[toc] | [prev] | [standalone]
Back to top | Article view | linux.kernel
csiph-web