Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752160AbbBVPYa (ORCPT ); Sun, 22 Feb 2015 10:24:30 -0500 Received: from mail-we0-f176.google.com ([74.125.82.176]:42713 "EHLO mail-we0-f176.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751890AbbBVPY2 (ORCPT ); Sun, 22 Feb 2015 10:24:28 -0500 From: Adrien Schildknecht To: tglx@linutronix.de, mingo@redhat.com, hpa@zytor.com, x86@kernel.org, srostedt@redhat.com, luto@amacapital.net, adrien+dev@schischi.me, rostedt@goodmis.org, bp@alien8.de, linux-kernel@vger.kernel.org Subject: [PATCH] x86_64: use kstack_end() in dumpstack_64.c Date: Sun, 22 Feb 2015 16:23:58 +0100 Message-Id: <1424618638-6375-1-git-send-email-adrien+dev@schischi.me> X-Mailer: git-send-email 2.2.1 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1066 Lines: 32 i386 is already using kstack_end() in dumpstack_32.c. We should also use it to make the code clearer and unify the stack printing logic some more. This patch depends on patch "x86: fix output of show_stack_log_lvl()" Signed-off-by: Adrien Schildknecht --- arch/x86/kernel/dumpstack_64.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/x86/kernel/dumpstack_64.c b/arch/x86/kernel/dumpstack_64.c index 553573b..5f1c626 100644 --- a/arch/x86/kernel/dumpstack_64.c +++ b/arch/x86/kernel/dumpstack_64.c @@ -280,7 +280,7 @@ show_stack_log_lvl(struct task_struct *task, struct pt_regs *regs, pr_cont(" "); } } else { - if (((long) stack & (THREAD_SIZE-1)) == 0) + if (kstack_end(stack)) break; } if ((i % STACKSLOTS_PER_LINE) == 0) { -- 2.2.1 -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/