Skip to contentSkip to conversation

thp: unbalanced parenthesis

PATCH In review Nicolas Kaiser 2 participants 3 messages May 7, 2011 – May 30, 2011 Generic include/asm header files

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 thp: unbalanced parenthesis

---
Untested.

 include/asm-generic/pgtable.h |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
include/asm-generic/pgtable.h +1 -1
index b4bfe33..b80daee 100644
@@ -88,7 +88,7 @@ static inline pmd_t pmdp_get_and_clear(struct mm_struct *mm,
 	pmd_t pmd = *pmdp;
 	pmd_clear(mm, address, pmdp);
 	return pmd;
-})
+}
 #endif /* CONFIG_TRANSPARENT_HUGEPAGE */
 #endif
 
Signature · 1 line
1.7.5.rc3
#1 lore raw

Cc'ed Andrea Arcangeli.

* Nicolas Kaiser <[email protected]>:

Quoted 20 lines

---
Untested.

 include/asm-generic/pgtable.h |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
include/asm-generic/pgtable.h +1 -1
index b4bfe33..b80daee 100644
@@ -88,7 +88,7 @@ static inline pmd_t pmdp_get_and_clear(struct mm_struct *mm,
 	pmd_t pmd = *pmdp;
 	pmd_clear(mm, address, pmdp);
 	return pmd;
-})
+}
 #endif /* CONFIG_TRANSPARENT_HUGEPAGE */
 #endif
 
Reviewed-by
#2 lore raw
Quoted 10 lines · Nicolas Kaiser

Cc'ed Andrea Arcangeli.

* Nicolas Kaiser <[email protected]>:

Quoted 7 lines

---
Untested.

 include/asm-generic/pgtable.h |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
Quoted 12 lines

include/asm-generic/pgtable.h static inline pmd_t pmdp_get_and_clear(struct mm_struct *mm, · line 93

Quoted 12 lines
include/asm-generic/pgtable.h +1 -1
index b4bfe33..b80daee 100644
@@ -88,7 +88,7 @@ static inline pmd_t pmdp_get_and_clear(struct mm_struct *mm,
 	pmd_t pmd = *pmdp;
 	pmd_clear(mm, address, pmdp);
 	return pmd;
-})
+}
 #endif /* CONFIG_TRANSPARENT_HUGEPAGE */
 #endif

All archs supporting THP aren't using that function so it isn't possible to notice it in any config but it's better to fix it in case some arch will use it in the future.

Thanks,
Andrea