All of lore.kernel.org
 help / color / mirror / Atom feed
* [KJ] [PATCH] cleaning of HANDLE_STACK definition
@ 2006-10-29 19:14 Giangiacomo Mariotti
  2006-10-29 19:36 ` Matthew Wilcox
                   ` (10 more replies)
  0 siblings, 11 replies; 12+ messages in thread
From: Giangiacomo Mariotti @ 2006-10-29 19:14 UTC (permalink / raw)
  To: kernel-janitors


[-- Attachment #1.1: Type: text/plain, Size: 134 bytes --]

This little patch cleans the definition of HANDLE_STACK in arch/x86_64/kernel/traps.c because it's syntax is misleading.







[-- Attachment #1.2: Type: text/html, Size: 346 bytes --]

[-- Attachment #2: 0001-cleaning-of-HANDLE_STACK-definition.txt --]
[-- Type: text/plain, Size: 1810 bytes --]

From 2ee917c5863439ed08236855300386511e7380ae Mon Sep 17 00:00:00 2001
From: Giangiacomo Mariotti <giangiacomo_mariotti@yahoo.com>
Date: Sun, 29 Oct 2006 12:56:28 +0100
Subject: [PATCH] cleaning of HANDLE_STACK definition

---
 arch/x86_64/kernel/traps.c |   30 ++++++++++++++++--------------
 1 files changed, 16 insertions(+), 14 deletions(-)

diff --git a/arch/x86_64/kernel/traps.c b/arch/x86_64/kernel/traps.c
index 7819022..a0b1e1f 100644
--- a/arch/x86_64/kernel/traps.c
+++ b/arch/x86_64/kernel/traps.c
@@ -297,20 +297,22 @@ void dump_trace(struct task_struct *tsk,
 	 * iteration will eventually trigger.
 	 */
 #define HANDLE_STACK(cond) \
-	do while (cond) { \
-		unsigned long addr = *stack++; \
-		if (oops_in_progress ? 		\
-			__kernel_text_address(addr) : \
-			kernel_text_address(addr)) { \
-			/* \
-			 * If the address is either in the text segment of the \
-			 * kernel, or in the region which contains vmalloc'ed \
-			 * memory, it *may* be the address of a calling \
-			 * routine; if so, print it so that someone tracing \
-			 * down the cause of the crash will be able to figure \
-			 * out the call path that was taken. \
-			 */ \
-			ops->address(data, addr);   \
+	do { \
+		while (cond) { \
+			unsigned long addr = *stack++; \
+			if (oops_in_progress ? 		\
+				__kernel_text_address(addr) : \
+				kernel_text_address(addr)) { \
+				/* \
+			 	* If the address is either in the text segment of the \
+			 	* kernel, or in the region which contains vmalloc'ed \
+			 	* memory, it *may* be the address of a calling \
+			 	* routine; if so, print it so that someone tracing \
+			 	* down the cause of the crash will be able to figure \
+			 	* out the call path that was taken. \
+			 	*/ \
+				ops->address(data, addr);   \
+			} \
 		} \
 	} while (0)
 
-- 
1.4.3.2


[-- Attachment #3: Type: text/plain, Size: 168 bytes --]

_______________________________________________
Kernel-janitors mailing list
Kernel-janitors@lists.osdl.org
https://lists.osdl.org/mailman/listinfo/kernel-janitors

^ permalink raw reply related	[flat|nested] 12+ messages in thread

end of thread, other threads:[~2006-10-30 13:52 UTC | newest]

Thread overview: 12+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-10-29 19:14 [KJ] [PATCH] cleaning of HANDLE_STACK definition Giangiacomo Mariotti
2006-10-29 19:36 ` Matthew Wilcox
2006-10-29 20:11 ` Giangiacomo Mariotti
2006-10-29 22:41 ` Giangiacomo Mariotti
2006-10-30  3:12 ` Amit Choudhary
2006-10-30 12:07 ` Darren Jenkins
2006-10-30 12:22 ` Giangiacomo Mariotti
2006-10-30 12:52 ` Jaco Kroon
2006-10-30 13:26 ` Giangiacomo Mariotti
2006-10-30 13:42 ` Jaco Kroon
2006-10-30 13:46 ` Giangiacomo Mariotti
2006-10-30 13:52 ` Giangiacomo Mariotti

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.