Skip to content

Commit 435009d

Browse files
andy-shevrichardweinberger
authored andcommitted
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 <[email protected]> Signed-off-by: Andy Shevchenko <[email protected]> Signed-off-by: Richard Weinberger <[email protected]>
1 parent a351e9b commit 435009d

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

drivers/mtd/ubi/build.c

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -74,10 +74,10 @@ struct mtd_dev_param {
7474
};
7575

7676
/* Numbers of elements set in the @mtd_dev_param array */
77-
static int __initdata mtd_devs;
77+
static int mtd_devs;
7878

7979
/* MTD devices specification parameters */
80-
static struct mtd_dev_param __initdata mtd_dev_param[UBI_MAX_DEVICES];
80+
static struct mtd_dev_param mtd_dev_param[UBI_MAX_DEVICES];
8181
#ifdef CONFIG_MTD_UBI_FASTMAP
8282
/* UBI module parameter to enable fastmap automatically on non-fastmap images */
8383
static bool fm_autoconvert;
@@ -1351,7 +1351,7 @@ module_exit(ubi_exit);
13511351
* This function returns positive resulting integer in case of success and a
13521352
* negative error code in case of failure.
13531353
*/
1354-
static int __init bytes_str_to_int(const char *str)
1354+
static int bytes_str_to_int(const char *str)
13551355
{
13561356
char *endp;
13571357
unsigned long result;
@@ -1389,7 +1389,7 @@ static int __init bytes_str_to_int(const char *str)
13891389
* This function returns zero in case of success and a negative error code in
13901390
* case of error.
13911391
*/
1392-
static int __init ubi_mtd_param_parse(const char *val, struct kernel_param *kp)
1392+
static int ubi_mtd_param_parse(const char *val, struct kernel_param *kp)
13931393
{
13941394
int i, len;
13951395
struct mtd_dev_param *p;

0 commit comments

Comments
 (0)