mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-09-12 21:57:43 +00:00
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>
This commit is contained in:
parent
a351e9b9fc
commit
435009d406
1 changed files with 4 additions and 4 deletions
|
@ -74,10 +74,10 @@ struct mtd_dev_param {
|
||||||
};
|
};
|
||||||
|
|
||||||
/* Numbers of elements set in the @mtd_dev_param array */
|
/* Numbers of elements set in the @mtd_dev_param array */
|
||||||
static int __initdata mtd_devs;
|
static int mtd_devs;
|
||||||
|
|
||||||
/* MTD devices specification parameters */
|
/* MTD devices specification parameters */
|
||||||
static struct mtd_dev_param __initdata mtd_dev_param[UBI_MAX_DEVICES];
|
static struct mtd_dev_param mtd_dev_param[UBI_MAX_DEVICES];
|
||||||
#ifdef CONFIG_MTD_UBI_FASTMAP
|
#ifdef CONFIG_MTD_UBI_FASTMAP
|
||||||
/* UBI module parameter to enable fastmap automatically on non-fastmap images */
|
/* UBI module parameter to enable fastmap automatically on non-fastmap images */
|
||||||
static bool fm_autoconvert;
|
static bool fm_autoconvert;
|
||||||
|
@ -1351,7 +1351,7 @@ module_exit(ubi_exit);
|
||||||
* This function returns positive resulting integer in case of success and a
|
* This function returns positive resulting integer in case of success and a
|
||||||
* negative error code in case of failure.
|
* negative error code in case of failure.
|
||||||
*/
|
*/
|
||||||
static int __init bytes_str_to_int(const char *str)
|
static int bytes_str_to_int(const char *str)
|
||||||
{
|
{
|
||||||
char *endp;
|
char *endp;
|
||||||
unsigned long result;
|
unsigned long result;
|
||||||
|
@ -1389,7 +1389,7 @@ static int __init bytes_str_to_int(const char *str)
|
||||||
* This function returns zero in case of success and a negative error code in
|
* This function returns zero in case of success and a negative error code in
|
||||||
* case of error.
|
* case of error.
|
||||||
*/
|
*/
|
||||||
static int __init ubi_mtd_param_parse(const char *val, struct kernel_param *kp)
|
static int ubi_mtd_param_parse(const char *val, struct kernel_param *kp)
|
||||||
{
|
{
|
||||||
int i, len;
|
int i, len;
|
||||||
struct mtd_dev_param *p;
|
struct mtd_dev_param *p;
|
||||||
|
|
Loading…
Reference in a new issue