[PATCH] selftests/fs/mount-notify: fix the indentation in the fsmount test

From: Sasha Levin

Date: Tue Nov 03 2026 - 12:51:39 EST


A few lines in the fsmount test are indented with spaces instead of a
tab. That puts them deeper than the ASSERT_*() in front of them, which
ends in a for loop with an empty body, so clang warns:

mount-notify_test.c:338:18: warning: for loop has empty body [-Wempty-body]

Indent them with tabs.

Signed-off-by: Sasha Levin <sashal@xxxxxxxxxx>
---
Found with clang 21; KernelCI's clang builds show the same warnings.
Amir's pending fanotify series moves this file to filesystems/fanotify/,
and its rename still applies on top of this.

.../filesystems/mount-notify/mount-notify_test.c | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)

diff --git a/tools/testing/selftests/filesystems/mount-notify/mount-notify_test.c b/tools/testing/selftests/filesystems/mount-notify/mount-notify_test.c
index 6381af6a40e30..6c95c275b1629 100644
--- a/tools/testing/selftests/filesystems/mount-notify/mount-notify_test.c
+++ b/tools/testing/selftests/filesystems/mount-notify/mount-notify_test.c
@@ -337,18 +337,18 @@ TEST_F(fanotify, fsmount)
fs = fsopen("tmpfs", 0);
ASSERT_GE(fs, 0);

- ret = fsconfig(fs, FSCONFIG_CMD_CREATE, 0, 0, 0);
+ ret = fsconfig(fs, FSCONFIG_CMD_CREATE, 0, 0, 0);
ASSERT_EQ(ret, 0);

- mnt = fsmount(fs, 0, 0);
+ mnt = fsmount(fs, 0, 0);
ASSERT_GE(mnt, 0);

- close(fs);
+ close(fs);

ret = move_mount(mnt, "", AT_FDCWD, "/a", MOVE_MOUNT_F_EMPTY_PATH);
ASSERT_EQ(ret, 0);

- close(mnt);
+ close(mnt);

mnts[1] = expect_notify_mask(_metadata, self, FAN_MNT_ATTACH);
ASSERT_NE(mnts[0], mnts[1]);
--
2.53.0