[PATCH v1] powerpc/process: Tag an #endif to help locate the matching #ifdef.

Subsystems: linux for powerpc (32-bit and 64-bit), the rest

STALE2182d LANDED

Landed in mainline as 60d62bfd24ef on 2020-09-15.

2 messages, 2 authors, 2020-09-17 · open the first message on its own page

[PATCH v1] powerpc/process: Tag an #endif to help locate the matching #ifdef.

From: Christophe Leroy <hidden>
Date: 2020-08-17 05:46:59

That #endif is more than 100 lines after the matching #ifdef,
and there are several #ifdef/#else/#endif inbetween.

Tag it as /* CONFIG_PPC_BOOK3S_64 */ to help locate the
matching #ifdef.

Signed-off-by: Christophe Leroy <redacted>
---
 arch/powerpc/kernel/process.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/arch/powerpc/kernel/process.c b/arch/powerpc/kernel/process.c
index 016bd831908e..ffbe79960c73 100644
--- a/arch/powerpc/kernel/process.c
+++ b/arch/powerpc/kernel/process.c
@@ -575,7 +575,7 @@ void notrace restore_math(struct pt_regs *regs)
 		regs->msr |= new_msr;
 	}
 }
-#endif
+#endif /* CONFIG_PPC_BOOK3S_64 */
 
 static void save_all(struct task_struct *tsk)
 {
-- 
2.25.0

Re: [PATCH v1] powerpc/process: Tag an #endif to help locate the matching #ifdef.

From: Michael Ellerman <hidden>
Date: 2020-09-17 11:31:14

On Mon, 17 Aug 2020 05:46:45 +0000 (UTC), Christophe Leroy wrote:
That #endif is more than 100 lines after the matching #ifdef,
and there are several #ifdef/#else/#endif inbetween.

Tag it as /* CONFIG_PPC_BOOK3S_64 */ to help locate the
matching #ifdef.
Applied to powerpc/next.

[1/1] powerpc/process: Tag an #endif to help locate the matching #ifdef.
      https://git.kernel.org/powerpc/c/60d62bfd24efce1a595d259100b8a4e7a489e834

cheers
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help