mirror of
https://github.com/torvalds/linux.git
synced 2026-10-07 05:31:08 -04:00
alpha: use is_kernel_text() helper
Use is_kernel_text() helper to simplify code. Link: https://lkml.kernel.org/r/[email protected] Signed-off-by: Kefeng Wang <[email protected]> Reviewed-by: Sergey Senozhatsky <[email protected]> Cc: Richard Henderson <[email protected]> Cc: Ivan Kokshaysky <[email protected]> Cc: Matt Turner <[email protected]> Cc: Alexander Potapenko <[email protected]> Cc: Alexei Starovoitov <[email protected]> Cc: Andrey Konovalov <[email protected]> Cc: Andrey Ryabinin <[email protected]> Cc: Arnd Bergmann <[email protected]> Cc: Benjamin Herrenschmidt <[email protected]> Cc: Borislav Petkov <[email protected]> Cc: Christophe Leroy <[email protected]> Cc: "David S. Miller" <[email protected]> Cc: Dmitry Vyukov <[email protected]> Cc: Ingo Molnar <[email protected]> Cc: Michael Ellerman <[email protected]> Cc: Michal Simek <[email protected]> Cc: Paul Mackerras <[email protected]> Cc: Petr Mladek <[email protected]> Cc: Steven Rostedt <[email protected]> Cc: Thomas Gleixner <[email protected]> Signed-off-by: Andrew Morton <[email protected]> Signed-off-by: Linus Torvalds <[email protected]>
This commit is contained in:
1 parent
4b5ef1e114
commit
2d93a5835a
1 file changed
+1
-3
@@ -129,9 +129,7 @@ dik_show_trace(unsigned long *sp, const char *loglvl)
|
||||
extern char _stext[], _etext[];
|
||||
unsigned long tmp = *sp;
|
||||
sp++;
|
||||
if (tmp < (unsigned long) &_stext)
|
||||
continue;
|
||||
if (tmp >= (unsigned long) &_etext)
|
||||
if (!is_kernel_text(tmp))
|
||||
continue;
|
||||
printk("%s[<%lx>] %pSR\n", loglvl, tmp, (void *)tmp);
|
||||
if (i > 40) {
|
||||
|
||||
Reference in new issue
Block a user