lkml.org 
[lkml]   [2019]   [Apr]   [10]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [RFC patch 20/41] backtrace-test: Simplify stack trace handling
On Wed, Apr 10, 2019 at 12:28:14PM +0200, Thomas Gleixner wrote:
> Replace the indirection through struct stack_trace by using the storage
> array based interfaces.
>
> Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
> ---
> kernel/backtracetest.c | 11 +++--------
> 1 file changed, 3 insertions(+), 8 deletions(-)
>
> --- a/kernel/backtracetest.c
> +++ b/kernel/backtracetest.c
> @@ -48,19 +48,14 @@ static void backtrace_test_irq(void)
> #ifdef CONFIG_STACKTRACE
> static void backtrace_test_saved(void)
> {
> - struct stack_trace trace;
> unsigned long entries[8];
> + unsigned int nent;

"Nent" isn't immediately readable to my eyes. How about just good old
"nr_entries"? (for this patch and all the others)

--
Josh

\
 
 \ /
  Last update: 2019-04-11 04:48    [W:2.460 / U:0.012 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site