Skip to contentSkip to conversation

xtensa: fix closing endif comment

PATCH In review Max Filippov 2 participants 2 messages Jul 21, 2020 Tensilica Xtensa port (xtensa)

lore
Share & tools
lore

Max Filippov

author maintainer
#0 lore raw

PATCH 1/1 xtensa: fix closing endif comment

Commit 8f74afa22d9b ("xtensa: switch to generic version of pte allocation") introduced the following build warning for xtensa
arch/xtensa/include/asm/pgalloc.h:67:8: warning: extra tokens at end of #endif directive [-Wendif-labels]
Fix #endif comment.

Cc Mike Rapoport <[email protected]>
Fixes 8f74afa22d9b ("xtensa: switch to generic version of pte allocation")
---
 arch/xtensa/include/asm/pgalloc.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
arch/xtensa/include/asm/pgalloc.h +1 -1
index 699a8fdf9005..d3a22da4d2c9 100644
@@ -64,6 +64,6 @@ static inline pgtable_t pte_alloc_one(struct mm_struct *mm)
 }
 
 #define pmd_pgtable(pmd) pmd_page(pmd)
-#endif CONFIG_MMU
+#endif /* CONFIG_MMU */
 
 #endif /* _XTENSA_PGALLOC_H */
Signature · 1 line
2.20.1
Reviewed-by on v1 1/1
#1 lore raw
Quoted 5 lines · Max Filippov

Commit 8f74afa22d9b ("xtensa: switch to generic version of pte allocation") introduced the following build warning for xtensa
arch/xtensa/include/asm/pgalloc.h:67:8: warning: extra tokens at end of #endif directive [-Wendif-labels]
Fix #endif comment.

Oops :)

Quoted 3 lines
Cc Mike Rapoport <[email protected]>
Fixes 8f74afa22d9b ("xtensa: switch to generic version of pte allocation")
Quoted 19 lines
---
 arch/xtensa/include/asm/pgalloc.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
arch/xtensa/include/asm/pgalloc.h +1 -1
index 699a8fdf9005..d3a22da4d2c9 100644
@@ -64,6 +64,6 @@ static inline pgtable_t pte_alloc_one(struct mm_struct *mm)
 }
 
 #define pmd_pgtable(pmd) pmd_page(pmd)
-#endif CONFIG_MMU
+#endif /* CONFIG_MMU */
 
 #endif /* _XTENSA_PGALLOC_H */
Signature · 1 line
2.20.1
Signature · 2 lines
Sincerely yours,
Mike.