fs_context: fix parameter name in infofc() macro
authorRubenKelevra <rubenkelevra@gmail.com>
Tue, 17 Jun 2025 23:09:27 +0000 (01:09 +0200)
committerChristian Brauner <brauner@kernel.org>
Wed, 18 Jun 2025 09:20:19 +0000 (11:20 +0200)
The macro takes a parameter called "p" but references "fc" internally.
This happens to compile as long as callers pass a variable named fc,
but breaks otherwise. Rename the first parameter to “fc” to match the
usage and to be consistent with warnfc() / errorfc().

Fixes: a3ff937b33d9 ("prefix-handling analogues of errorf() and friends")
Signed-off-by: RubenKelevra <rubenkelevra@gmail.com>
Link: https://lore.kernel.org/20250617230927.1790401-1-rubenkelevra@gmail.com
Signed-off-by: Christian Brauner <brauner@kernel.org>
include/linux/fs_context.h

index a19e4bd32e4d3151a21e6d514f76fb9c4408f4fb..7773eb870039c497b3ddc1fbaa605c2a7a934f51 100644 (file)
@@ -200,7 +200,7 @@ void logfc(struct fc_log *log, const char *prefix, char level, const char *fmt,
  */
 #define infof(fc, fmt, ...) __logfc(fc, 'i', fmt, ## __VA_ARGS__)
 #define info_plog(p, fmt, ...) __plog(p, 'i', fmt, ## __VA_ARGS__)
-#define infofc(p, fmt, ...) __plog((&(fc)->log), 'i', fmt, ## __VA_ARGS__)
+#define infofc(fc, fmt, ...) __plog((&(fc)->log), 'i', fmt, ## __VA_ARGS__)
 
 /**
  * warnf - Store supplementary warning message