Просмотр исходного кода

Merge branch 'sh/urgent' into sh-fixes-for-linus

Paul Mundt 13 лет назад
Родитель
Сommit
3c3c801fcf
2 измененных файлов с 2 добавлено и 2 удалено
  1. 1 1
      arch/sh/include/asm/atomic.h
  2. 1 1
      arch/sh/mm/fault_32.c

+ 1 - 1
arch/sh/include/asm/atomic.h

@@ -11,7 +11,7 @@
 #include <linux/types.h>
 #include <linux/types.h>
 #include <asm/cmpxchg.h>
 #include <asm/cmpxchg.h>
 
 
-#define ATOMIC_INIT(i)	( (atomic_t) { (i) } )
+#define ATOMIC_INIT(i)	{ (i) }
 
 
 #define atomic_read(v)		(*(volatile int *)&(v)->counter)
 #define atomic_read(v)		(*(volatile int *)&(v)->counter)
 #define atomic_set(v,i)		((v)->counter = (i))
 #define atomic_set(v,i)		((v)->counter = (i))

+ 1 - 1
arch/sh/mm/fault_32.c

@@ -86,7 +86,7 @@ static noinline int vmalloc_fault(unsigned long address)
 	pte_t *pte_k;
 	pte_t *pte_k;
 
 
 	/* Make sure we are in vmalloc/module/P3 area: */
 	/* Make sure we are in vmalloc/module/P3 area: */
-	if (!(address >= VMALLOC_START && address < P3_ADDR_MAX))
+	if (!(address >= P3SEG && address < P3_ADDR_MAX))
 		return -1;
 		return -1;
 
 
 	/*
 	/*