Re: [PATCH 2/5] sparc32: make show_stack() acquire %fp if @_ksp isnot specified

From: David Miller
Date: Fri Mar 29 2013 - 23:29:41 EST


From: Tejun Heo <tj@xxxxxxxxxx>
Date: Fri, 29 Mar 2013 19:27:05 -0700

> show_stack(current or NULL, NULL) is used by arch-independent code to
> dump backtrace of the current task; however, sparc32 show_stack()
> doesn't implement it and wouldn't print any backtrace when NULL @_ksp
> is specfied.
>
> Make show_stack() acquire and use %fp if @tsk is NULL or current and
> @_ksp is NULL. This makes %fp fetching in dump_stack() unnecessary.
> Make it use NULL for @_ksp instead.
>
> Only compile tested.
>
> Signed-off-by: Tejun Heo <tj@xxxxxxxxxx>

Acked-by: David S. Miller <davem@xxxxxxxxxxxxx>
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/