Re: [PATCH v4 1/2] asm-generic/bug.h: declare struct pt_regs; before function prototype

2017-05-23 Thread Michal Nazarewicz
On Tue, May 23 2017, Ian Abbott wrote: > The declaration of `__warn()` has `struct pt_regs *regs` as one of its > parameters. This can result in compiler warnings if `struct regs` is > not already declared. Add an empty declaration of `struct pt_regs` to > avoid the warnings. > > Signed-off-by:

Re: [PATCH v4 1/2] asm-generic/bug.h: declare struct pt_regs; before function prototype

2017-05-23 Thread Michal Nazarewicz
On Tue, May 23 2017, Ian Abbott wrote: > The declaration of `__warn()` has `struct pt_regs *regs` as one of its > parameters. This can result in compiler warnings if `struct regs` is > not already declared. Add an empty declaration of `struct pt_regs` to > avoid the warnings. > > Signed-off-by:

[PATCH v4 1/2] asm-generic/bug.h: declare struct pt_regs; before function prototype

2017-05-23 Thread Ian Abbott
The declaration of `__warn()` has `struct pt_regs *regs` as one of its parameters. This can result in compiler warnings if `struct regs` is not already declared. Add an empty declaration of `struct pt_regs` to avoid the warnings. Signed-off-by: Ian Abbott Cc: Arnd Bergmann

[PATCH v4 1/2] asm-generic/bug.h: declare struct pt_regs; before function prototype

2017-05-23 Thread Ian Abbott
The declaration of `__warn()` has `struct pt_regs *regs` as one of its parameters. This can result in compiler warnings if `struct regs` is not already declared. Add an empty declaration of `struct pt_regs` to avoid the warnings. Signed-off-by: Ian Abbott Cc: Arnd Bergmann Acked-by: Arnd