ubi: Fix section mismatch

WARNING: vmlinux.o(.text+0x1f2a80): Section mismatch in reference from the variable __param_ops_mtd to the function .init.text:ubi_mtd_param_parse()
The function __param_ops_mtd() references
the function __init ubi_mtd_param_parse().
This is often because __param_ops_mtd lacks a __init
annotation or the annotation of ubi_mtd_param_parse is wrong.

Cc: Richard Weinberger <richard@nod.at>
Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Signed-off-by: Richard Weinberger <richard@nod.at>

authored by Andy Shevchenko and committed by Richard Weinberger 435009d4 a351e9b9

+4 -4
+4 -4
drivers/mtd/ubi/build.c
··· 74 }; 75 76 /* Numbers of elements set in the @mtd_dev_param array */ 77 - static int __initdata mtd_devs; 78 79 /* MTD devices specification parameters */ 80 - static struct mtd_dev_param __initdata mtd_dev_param[UBI_MAX_DEVICES]; 81 #ifdef CONFIG_MTD_UBI_FASTMAP 82 /* UBI module parameter to enable fastmap automatically on non-fastmap images */ 83 static bool fm_autoconvert; ··· 1351 * This function returns positive resulting integer in case of success and a 1352 * negative error code in case of failure. 1353 */ 1354 - static int __init bytes_str_to_int(const char *str) 1355 { 1356 char *endp; 1357 unsigned long result; ··· 1389 * This function returns zero in case of success and a negative error code in 1390 * case of error. 1391 */ 1392 - static int __init ubi_mtd_param_parse(const char *val, struct kernel_param *kp) 1393 { 1394 int i, len; 1395 struct mtd_dev_param *p;
··· 74 }; 75 76 /* Numbers of elements set in the @mtd_dev_param array */ 77 + static int mtd_devs; 78 79 /* MTD devices specification parameters */ 80 + static struct mtd_dev_param mtd_dev_param[UBI_MAX_DEVICES]; 81 #ifdef CONFIG_MTD_UBI_FASTMAP 82 /* UBI module parameter to enable fastmap automatically on non-fastmap images */ 83 static bool fm_autoconvert; ··· 1351 * This function returns positive resulting integer in case of success and a 1352 * negative error code in case of failure. 1353 */ 1354 + static int bytes_str_to_int(const char *str) 1355 { 1356 char *endp; 1357 unsigned long result; ··· 1389 * This function returns zero in case of success and a negative error code in 1390 * case of error. 1391 */ 1392 + static int ubi_mtd_param_parse(const char *val, struct kernel_param *kp) 1393 { 1394 int i, len; 1395 struct mtd_dev_param *p;