Skip to contentSkip to conversation

x86: ldt.c fix style problems

PATCH In review Jaswinder Singh Rajput 2 participants 2 messages Dec 31, 2008 – Jan 2, 2009 x86

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 x86: ldt.c fix style problems

Impact: cleanup, fix style problems

Fixes style problems:
WARNING: Use #include <linux/uaccess.h> instead of <asm/uaccess.h>
ERROR: space required before the open parenthesis '('

total: 1 errors, 1 warnings

---
 arch/x86/kernel/ldt.c |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)
arch/x86/kernel/ldt.c +2 -2
index eee32b4..71f1d99 100644
@@ -12,8 +12,8 @@
 #include <linux/mm.h>
 #include <linux/smp.h>
 #include <linux/vmalloc.h>
+#include <linux/uaccess.h>
 
-#include <asm/uaccess.h>
 #include <asm/system.h>
 #include <asm/ldt.h>
 #include <asm/desc.h>
@@ -93,7 +93,7 @@ static inline int copy_ldt(mm_context_t *new, mm_context_t *old)
 	if (err < 0)
 		return err;
 
-	for(i = 0; i < old->size; i++)
+	for (i = 0; i < old->size; i++)
 		write_ldt_entry(new->ldt, i, old->ldt + i * LDT_ENTRY_SIZE);
 	return 0;
 }
Signature · 1 line
1.5.5.1
#1 lore raw
Quoted 6 lines · Jaswinder Singh Rajput

Impact: cleanup, fix style problems

Fixes style problems:
WARNING: Use #include <linux/uaccess.h> instead of <asm/uaccess.h>
ERROR: space required before the open parenthesis '('

Quoted 6 lines

total: 1 errors, 1 warnings

---
 arch/x86/kernel/ldt.c |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

applied to tip/x86/cleanups, thanks,

Ingo