Skip to contentSkip to conversation

kernel: exit: fix coding style missing spaces

PATCH RESEND Applied Mingzhu Wang 2 participants 2 messages Jun 9 – Jun 19

lore
Share & tools
lore
#0 lore raw

PATCH RESEND 1/1 kernel: exit: fix coding style missing spaces

From: mingzhu wang <[email protected]>

Add spaces around bitwise AND and shift operators in sys_exit() to comply with the Linux kernel coding style.

---
 kernel/exit.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
kernel/exit.c +1 -1
index f50d73c272d6..56a3f4453aa5 100644
@@ -1083,7 +1083,7 @@ void __noreturn make_task_dead(int signr)
 
 SYSCALL_DEFINE1(exit, int, error_code)
 {
-	do_exit((error_code&0xff)<<8);
+	do_exit((error_code & 0xff) << 8);
 }
 
 /*
Signature · 1 line
2.53.0
#1 lore raw
Quoted 2 lines · Mingzhu Wang

Add spaces around bitwise AND and shift operators in sys_exit() to comply with the Linux kernel coding style.

Applied to the kernel-7.3.misc branch of the vfs/vfs.git tree. Patches in the kernel-7.3.misc branch should appear in linux-next soon.

Please report any outstanding bugs that were missed during review in a new review to the original patch series allowing us to drop it.

It's encouraged to provide Acked-bys and Reviewed-bys even though the patch has now been applied. If possible patch trailers will be updated.

Note that commit hashes shown below are subject to change due to rebase, trailer updates or similar. If in doubt, please check the listed branch.

tree:   https://git.kernel.org/pub/scm/linux/kernel/git/vfs/vfs.git
branch: kernel-7.3.misc

[1/1] kernel: exit: fix coding style missing spaces

      https://git.kernel.org/vfs/vfs/c/6e73e8791d2e