aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorZijun Hu <[email protected]>2025-05-07 11:50:25 +0000
committerAndreas Hindborg <[email protected]>2025-05-09 08:11:13 +0000
commitd78aa60cfa7ece7477a4089a3a4b520ec7beba1b (patch)
treeb422d4fa5368994160b22158523da9d7a53e7890
parentconfigfs: Add CONFIGFS_ATTR_PERM helper (diff)
downloadkernel-d78aa60cfa7ece7477a4089a3a4b520ec7beba1b.tar.gz
kernel-d78aa60cfa7ece7477a4089a3a4b520ec7beba1b.zip
configfs: Delete semicolon from macro type_print() definition
Macro type_print() definition ends with semicolon, so will cause the subsequent macro invocations end with two semicolons. Fix by deleting the semicolon from the macro definition. Reviewed-by: Joel Becker <[email protected]> Signed-off-by: Zijun Hu <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Andreas Hindborg <[email protected]>
-rw-r--r--fs/configfs/dir.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/configfs/dir.c b/fs/configfs/dir.c
index 5568cb74b322..6d4a1190f694 100644
--- a/fs/configfs/dir.c
+++ b/fs/configfs/dir.c
@@ -970,7 +970,7 @@ static void configfs_dump_one(struct configfs_dirent *sd, int level)
{
pr_info("%*s\"%s\":\n", level, " ", configfs_get_name(sd));
-#define type_print(_type) if (sd->s_type & _type) pr_info("%*s %s\n", level, " ", #_type);
+#define type_print(_type) if (sd->s_type & _type) pr_info("%*s %s\n", level, " ", #_type)
type_print(CONFIGFS_ROOT);
type_print(CONFIGFS_DIR);
type_print(CONFIGFS_ITEM_ATTR);