From: Zijun Hu Date: Wed, 7 May 2025 11:50:25 +0000 (+0800) Subject: configfs: Delete semicolon from macro type_print() definition X-Git-Tag: v6.16-rc1~213^2~5 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=d78aa60cfa7ece7477a4089a3a4b520ec7beba1b;p=thirdparty%2Fkernel%2Flinux.git 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 Signed-off-by: Zijun Hu Link: https://lore.kernel.org/r/20250507-fix_configfs-v3-1-fe2d96de8dc4@quicinc.com Signed-off-by: Andreas Hindborg --- diff --git a/fs/configfs/dir.c b/fs/configfs/dir.c index 5568cb74b3224..6d4a1190f694f 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);