Skip to contentSkip to conversation

fs_parse-mark-fs_param_bad_value-as-static.patch removed from -mm tree

merged [email protected] 1 participant 1 message Oct 14, 2020

lore
Share & tools
lore

[email protected]

author tree notice Applied
#0 lore raw

The patch titled
Subject: fs_parse: mark fs_param_bad_value() as static
has been removed from the -mm tree. Its filename was
fs_parse-mark-fs_param_bad_value-as-static.patch

This patch was dropped because it was merged into mainline or a subsystem tree

------------------------------------------------------
From: Luo Jiaxing <[email protected]>
Subject: fs_parse: mark fs_param_bad_value() as static

We found the following warning when build kernel with W=1:

fs/fs_parser.c:192:5: warning: no previous prototype for `fs_param_bad_value' [-Wmissing-prototypes] int fs_param_bad_value(struct p_log *log, struct fs_parameter *param)

     ^

CC drivers/usb/gadget/udc/snps_udc_core.o

And no header file define a prototype for this function, so we should mark it as static.

---

 fs/fs_parser.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
fs/fs_parser.c renamed from fs/fs_parser.c~fs_parse-mark-fs_param_bad_value-as-static +1 -1
@@ -189,7 +189,7 @@ out:
 }
 EXPORT_SYMBOL(fs_lookup_param);
 
-int fs_param_bad_value(struct p_log *log, struct fs_parameter *param)
+static int fs_param_bad_value(struct p_log *log, struct fs_parameter *param)
 {
 	return inval_plog(log, "Bad value for '%s'", param->key);
 }

_

Patches currently in -mm which might be from [email protected] are