Skip to contentSkip to conversation

RT-Patch: Fixed sparc's anon_rwsem_is_locked() and page_address_init() define

PATCH New Tkhai Kirill 1 participant 1 message Sep 7, 2010

Subsystems (3)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 RT-Patch: Fixed sparc's anon_rwsem_is_locked() and page_address_init() define

RT-Patch: Fixed sparc's anon_rwsem_is_locked() and page_address_init() define

---

Fixed compilation errors. Kernel version 2.6.33.7-rt29.

arch/sparc/include/asm/rwsem.h +1 -1
diff -uprN a/arch/sparc/include/asm/rwsem.h b/arch/sparc/include/asm/rwsem.h
@@ -75,7 +75,7 @@ static inline void rwsem_atomic_add(int 
 	atomic_add(delta, (atomic_t *)(&sem->count));
 }
 
-static inline int anon_rwsem_is_locked(struct rw_semaphore *sem)
+static inline int anon_rwsem_is_locked(struct rw_anon_semaphore *sem)
 {
 	return (sem->count != 0);
 }
mm/highmem.c +1 -1
diff -uprN a/mm/highmem.c b/mm/highmem.c
@@ -590,7 +590,7 @@ static int __set_page_address(struct pag
 
 #endif	/* defined(CONFIG_HIGHMEM) && !defined(WANT_PAGE_VIRTUAL) */
 
-#if defined(CONFIG_HIGHMEM) || defined(HASHED_PAGE_VIRTUAL)
+#if defined(WANT_PAGE_VIRTUAL) || defined(HASHED_PAGE_VIRTUAL)
 
 void __init page_address_init(void)
 {