[PATCH v2 7/7] x86/syscall/32: Add comment to conditional

From: Brian Gerst
Date: Fri Mar 14 2025 - 11:14:26 EST


Add a CONFIG_X86_FRED comment, since this conditional is nested.

Signed-off-by: Brian Gerst <brgerst@xxxxxxxxx>
Suggested-by: Sohil Mehta <sohil.mehta@xxxxxxxxx>
---
arch/x86/entry/syscall_32.c | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/arch/x86/entry/syscall_32.c b/arch/x86/entry/syscall_32.c
index 993d72504fc5..2b15ea17bb7c 100644
--- a/arch/x86/entry/syscall_32.c
+++ b/arch/x86/entry/syscall_32.c
@@ -238,7 +238,8 @@ DEFINE_FREDENTRY_RAW(int80_emulation)
instrumentation_end();
syscall_exit_to_user_mode(regs);
}
-#endif
+#endif /* CONFIG_X86_FRED */
+
#else /* CONFIG_IA32_EMULATION */

/* Handles int $0x80 on a 32bit kernel */
--
2.48.1