2018-11-24 09:36:38

by Alexey Dobriyan

[permalink] [raw]
Subject: [PATCH] drop silly "static inline asmlinkage" from dump_stack()

Signed-off-by: Alexey Dobriyan <[email protected]>
---

include/linux/printk.h | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)

--- a/include/linux/printk.h
+++ b/include/linux/printk.h
@@ -269,7 +269,7 @@ static inline void show_regs_print_info(const char *log_lvl)
{
}

-static inline asmlinkage void dump_stack(void)
+static inline void dump_stack(void)
{
}



2018-12-02 07:34:38

by Joey Pabalinas

[permalink] [raw]
Subject: Re: [PATCH] drop silly "static inline asmlinkage" from dump_stack()

On Sat, Nov 24, 2018 at 12:35:30PM +0300, Alexey Dobriyan wrote:
> -static inline asmlinkage void dump_stack(void)
> +static inline void dump_stack(void)

Why is it "silly"? An explanation in the commit message would be useful.

> Signed-off-by: Alexey Dobriyan <[email protected]>
> ---
>
> include/linux/printk.h | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
> --- a/include/linux/printk.h
> +++ b/include/linux/printk.h
> @@ -269,7 +269,7 @@ static inline void show_regs_print_info(const char *log_lvl)
> {
> }
>
> -static inline asmlinkage void dump_stack(void)
> +static inline void dump_stack(void)
> {
> }
>

--
Cheers,
Joey Pabalinas


Attachments:
(No filename) (698.00 B)
signature.asc (849.00 B)
Download all attachments

2018-12-02 09:03:54

by Alexey Dobriyan

[permalink] [raw]
Subject: Re: [PATCH] drop silly "static inline asmlinkage" from dump_stack()

On Sat, Dec 01, 2018 at 09:33:38PM -1000, Joey Pabalinas wrote:
> On Sat, Nov 24, 2018 at 12:35:30PM +0300, Alexey Dobriyan wrote:
> > -static inline asmlinkage void dump_stack(void)
> > +static inline void dump_stack(void)
>
> Why is it "silly"? An explanation in the commit message would be useful.

Empty function will be inlined so asmlinkage doesn't do anything.

2018-12-02 09:52:48

by Joey Pabalinas

[permalink] [raw]
Subject: Re: [PATCH] drop silly "static inline asmlinkage" from dump_stack()

On Sun, Dec 02, 2018 at 12:02:54PM +0300, Alexey Dobriyan wrote:
> Empty function will be inlined so asmlinkage doesn't do anything.

Yes, that is an example of a perfect explanation to have in the
commit message :) Ack from me after that addition.

Acked-by: Joey Pabalinas <[email protected]>

--
Cheers,
Joey Pabalinas


Attachments:
(No filename) (340.00 B)
signature.asc (849.00 B)
Download all attachments