Re: [BUILD-FAILURE] 2.6.26-rc8-mm1 - x86 - __ptep_modify_prot_start() missing

!MAILaRCHIVE_VOTE_RePLACE
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
To: Kamalesh Babulal <kamalesh@...>
Cc: <linux-kernel@...>, <kernel-testers@...>, <apw@...>, Heiko Carstens <heiko.carstens@...>, Martin Schwidefsky <schwidefsky@...>, Jeremy Fitzhardinge <jeremy@...>
Date: Thursday, July 3, 2008 - 1:46 pm

On Thu, 3 Jul 2008 17:59:43 +0530 Kamalesh Babulal <kamalesh@linux.vnet.ibm.com> wrote:


grump.  Who did all this stuff?

I dunno.  I'll drop s390-build-fixes.patch, add some ccs and stomp off.


From: Andrew Morton <akpm@linux-foundation.org>

In file included from include/asm/pgtable.h:1087,
                 from include/linux/mm.h:39,
                 from arch/s390/mm/hugetlbpage.c:8:
include/asm-generic/pgtable.h: In function '__ptep_modify_prot_start':
include/asm-generic/pgtable.h:209: error: dereferencing pointer to incomplete type

Cc: Heiko Carstens <heiko.carstens@de.ibm.com>
Cc: Martin Schwidefsky <schwidefsky@de.ibm.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
---

 include/asm-generic/pgtable.h |   26 +++++++++-----------------
 1 file changed, 9 insertions(+), 17 deletions(-)

diff -puN include/asm-generic/pgtable.h~s390-build-fixes include/asm-generic/pgtable.h
--- a/include/asm-generic/pgtable.h~s390-build-fixes
+++ a/include/asm-generic/pgtable.h
@@ -197,17 +197,13 @@ static inline int pmd_none_or_clear_bad(
 }
 #endif /* CONFIG_MMU */
 
-static inline pte_t __ptep_modify_prot_start(struct mm_struct *mm,
-					     unsigned long addr,
-					     pte_t *ptep)
-{
-	/*
-	 * Get the current pte state, but zero it out to make it
-	 * non-present, preventing the hardware from asynchronously
-	 * updating it.
-	 */
-	return ptep_get_and_clear(mm, addr, ptep);
-}
+/*
+ * Get the current pte state, but zero it out to make it
+ * non-present, preventing the hardware from asynchronously
+ * updating it.
+ */
+#define __ptep_modify_prot_start(mm, addr, ptep)	\
+	ptep_get_and_clear(mm, addr, ptep)
 
 static inline void __ptep_modify_prot_commit(struct mm_struct *mm,
 					     unsigned long addr,
@@ -235,12 +231,8 @@ static inline void __ptep_modify_prot_co
  * queue the update to be done at some later time.  The update must be
  * actually committed before the pte lock is released, however.
  */
-static inline pte_t ptep_modify_prot_start(struct mm_struct *mm,
-					   unsigned long addr,
-					   pte_t *ptep)
-{
-	return __ptep_modify_prot_start(mm, addr, ptep);
-}
+#define ptep_modify_prot_start(mm, addr, ptep)		\
+	__ptep_modify_prot_start(mm, addr, ptep)
 
 /*
  * Commit an update to a pte, leaving any hardware-controlled bits in
_


--
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
2.6.26-rc8-mm1, Andrew Morton, (Thu Jul 3, 5:02 am)
Re: 2.6.26-rc8-mm1 - Missing AC97 power save Kconfig?, Randy Dunlap, (Wed Jul 9, 6:05 pm)
Re: 2.6.26-rc8-mm1: unable to mount nfs shares, Mariusz Kozlowski, (Fri Jul 4, 6:49 pm)
Re: 2.6.26-rc8-mm1: unable to mount nfs shares, Andrew Morton, (Fri Jul 4, 7:07 pm)
[PATCH] memcg: handle shmem's swap cache (Was 2.6.26-rc8-mm1, KAMEZAWA Hiroyuki, (Fri Jul 4, 5:09 am)
memcg: lru scan fix (Was: 2.6.26-rc8-mm1, KAMEZAWA Hiroyuki, (Fri Jul 4, 5:02 am)
Re: memcg: lru scan fix (Was: 2.6.26-rc8-mm1, Rik van Riel, (Fri Jul 4, 3:16 pm)
Re: memcg: lru scan fix (Was: 2.6.26-rc8-mm1, Andrew Morton, (Fri Jul 4, 3:24 pm)
Re: memcg: lru scan fix (Was: 2.6.26-rc8-mm1, KAMEZAWA Hiroyuki, (Fri Jul 4, 11:59 pm)
Question: split-lur // Re: 2.6.26-rc8-mm1, KAMEZAWA Hiroyuki, (Thu Jul 3, 10:48 pm)
Re: [BUILD-FAILURE] 2.6.26-rc8-mm1 - x86 - __ptep_modify_pro..., Andrew Morton, (Thu Jul 3, 1:46 pm)
Re: [BUILD-FAILURE] 2.6.26-rc8-mm1 - x86 - __ptep_modify_pro..., Jeremy Fitzhardinge, (Thu Jul 3, 2:00 pm)
[bug?] tg3: Failed to load firmware "tigon/tg3_tso.bin", KOSAKI Motohiro, (Thu Jul 3, 7:59 am)
Re: [bug?] tg3: Failed to load firmware "tigon/tg3_tso.bin", David Woodhouse, (Fri Jul 4, 10:13 am)
Re: [bug?] tg3: Failed to load firmware "tigon/tg3_tso.bin", Arjan van de Ven, (Fri Jul 4, 4:42 pm)
Re: [bug?] tg3: Failed to load firmware "tigon/tg3_tso.bin", Arjan van de Ven, (Fri Jul 4, 4:59 pm)
Re: [bug?] tg3: Failed to load firmware "tigon/tg3_tso.bin", David Woodhouse, (Fri Jul 4, 10:31 am)
Re: [bug?] tg3: Failed to load firmware "tigon/tg3_tso.bin", maximilian attems, (Fri Jul 4, 10:24 am)
Re: [bug?] tg3: Failed to load firmware "tigon/tg3_tso.bin", maximilian attems, (Sat Jul 5, 6:26 am)
Re: [bug?] tg3: Failed to load firmware "tigon/tg3_tso.bin", Hannes Reinecke, (Fri Jul 4, 10:39 am)
Re: [bug?] tg3: Failed to load firmware "tigon/tg3_tso.bin", David Woodhouse, (Fri Jul 4, 10:42 am)
Re: [bug?] tg3: Failed to load firmware "tigon/tg3_tso.bin", Olivier Galibert, (Fri Jul 4, 7:13 pm)
Re: [bug?] tg3: Failed to load firmware "tigon/tg3_tso.bin", Olivier Galibert, (Sat Jul 5, 6:53 am)
Re: [bug?] tg3: Failed to load firmware "tigon/tg3_tso.bin", Olivier Galibert, (Sat Jul 5, 8:02 am)
Re: [bug?] tg3: Failed to load firmware "tigon/tg3_tso.bin", Christoph Hellwig, (Sat Jul 5, 1:13 pm)
Re: [bug?] tg3: Failed to load firmware "tigon/tg3_tso.bin", Christoph Hellwig, (Sun Jul 6, 6:02 am)
Re: [bug?] tg3: Failed to load firmware "tigon/tg3_tso.bin", Olivier Galibert, (Sat Jul 5, 10:44 am)
Re: [bug?] tg3: Failed to load firmware "tigon/tg3_tso.bin", David Woodhouse, (Sat Jul 5, 11:10 am)
Re: [bug?] tg3: Failed to load firmware "tigon/tg3_tso.bin", Henrique de Moraes Holschuh..., (Fri Jul 4, 7:58 pm)
Re: [bug?] tg3: Failed to load firmware "tigon/tg3_tso.bin", Henrique de Moraes Holschuh..., (Fri Jul 4, 11:52 pm)
Re: [bug?] tg3: Failed to load firmware "tigon/tg3_tso.bin", Henrique de Moraes Holschuh..., (Sat Jul 5, 9:08 am)
Re: [bug?] tg3: Failed to load firmware "tigon/tg3_tso.bin", David Woodhouse, (Fri Jul 4, 10:37 am)
Re: [bug?] tg3: Failed to load firmware "tigon/tg3_tso.bin", Mikael Pettersson, (Thu Jul 3, 10:31 pm)
Re: [bug?] tg3: Failed to load firmware "tigon/tg3_tso.bin", Rafael J. Wysocki, (Thu Jul 3, 5:42 pm)
Re: [bug?] tg3: Failed to load firmware "tigon/tg3_tso.bin", Rafael J. Wysocki, (Thu Jul 3, 5:52 pm)
Re: [bug?] tg3: Failed to load firmware "tigon/tg3_tso.bin", Rafael J. Wysocki, (Thu Jul 3, 6:27 pm)
Re: [bug?] tg3: Failed to load firmware "tigon/tg3_tso.bin", Rafael J. Wysocki, (Thu Jul 3, 4:52 pm)