mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [PATCH] fs: fix switch/case indentation in sysfs() syscall
@ 2026-08-08 18:28 Manush Prajwal
  2026-08-12  7:24 ` Christian Brauner
  0 siblings, 1 reply; 2+ messages in thread
From: Manush Prajwal @ 2026-08-08 18:28 UTC (permalink / raw)
  To: viro, brauner; +Cc: jack, linux-fsdevel, linux-kernel, Manush Prajwal

The case labels in the sysfs(2) syscall implementation are indented
one level deeper than the switch statement itself, which does not
match the kernel coding style (switch and case should be at the same
indentation level). Fix the indentation; no functional change.

Signed-off-by: Manush Prajwal <manushprajwal555@gmail.com>
---
 fs/filesystems.c | 18 +++++++++---------
 1 file changed, 9 insertions(+), 9 deletions(-)

diff --git a/fs/filesystems.c b/fs/filesystems.c
index 673a03b5f..3083d904d 100644
--- a/fs/filesystems.c
+++ b/fs/filesystems.c
@@ -201,17 +201,17 @@ SYSCALL_DEFINE3(sysfs, int, option, unsigned long, arg1, unsigned long, arg2)
 	int retval = -EINVAL;
 
 	switch (option) {
-		case 1:
-			retval = fs_index((const char __user *) arg1);
-			break;
+	case 1:
+		retval = fs_index((const char __user *) arg1);
+		break;
 
-		case 2:
-			retval = fs_name(arg1, (char __user *) arg2);
-			break;
+	case 2:
+		retval = fs_name(arg1, (char __user *) arg2);
+		break;
 
-		case 3:
-			retval = fs_maxindex();
-			break;
+	case 3:
+		retval = fs_maxindex();
+		break;
 	}
 	return retval;
 }
-- 
2.46.2.windows.1


^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: [PATCH] fs: fix switch/case indentation in sysfs() syscall
  2026-08-08 18:28 [PATCH] fs: fix switch/case indentation in sysfs() syscall Manush Prajwal
@ 2026-08-12  7:24 ` Christian Brauner
  0 siblings, 0 replies; 2+ messages in thread
From: Christian Brauner @ 2026-08-12  7:24 UTC (permalink / raw)
  To: viro, Manush Prajwal; +Cc: jack, linux-fsdevel, linux-kernel

On Sat, 08 Aug 2026 23:58:16 +0530, Manush Prajwal wrote:
> fs: fix switch/case indentation in sysfs() syscall

Applied to the vfs-7.3.misc branch of the vfs/vfs.git tree.
Patches in the vfs-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: vfs-7.3.misc

[1/1] fs: fix switch/case indentation in sysfs() syscall
      https://git.kernel.org/vfs/vfs/c/c5e7f72a9c91


^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2026-08-12  7:25 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-08-08 18:28 [PATCH] fs: fix switch/case indentation in sysfs() syscall Manush Prajwal
2026-08-12  7:24 ` Christian Brauner

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®