From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mga11.intel.com ([192.55.52.93]) by bombadil.infradead.org with esmtps (Exim 4.87 #1 (Red Hat Linux)) id 1cQfiU-00039d-Ct for linux-mtd@lists.infradead.org; Mon, 09 Jan 2017 19:34:51 +0000 Message-ID: <1483990466.26691.47.camel@linux.intel.com> Subject: Re: [PATCH v1 1/1] UBI: Fix section mismatch From: Andy Shevchenko To: Artem Bityutskiy , Boris Brezillon , linux-mtd@lists.infradead.org, Brian Norris Cc: Richard Weinberger Date: Mon, 09 Jan 2017 21:34:26 +0200 In-Reply-To: <20170109181004.195157-1-andriy.shevchenko@linux.intel.com> References: <20170109181004.195157-1-andriy.shevchenko@linux.intel.com> Content-Type: text/plain; charset="UTF-8" Mime-Version: 1.0 Content-Transfer-Encoding: 8bit List-Id: Linux MTD discussion mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , On Mon, 2017-01-09 at 20:10 +0200, Andy Shevchenko wrote: > 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. Please, discard this. It fixes one and add another. > > Cc: Richard Weinberger > Signed-off-by: Andy Shevchenko > --- >  drivers/mtd/ubi/build.c | 2 +- >  1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/drivers/mtd/ubi/build.c b/drivers/mtd/ubi/build.c > index 85d54f37e28f..00a46ff61528 100644 > --- a/drivers/mtd/ubi/build.c > +++ b/drivers/mtd/ubi/build.c > @@ -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 >   * 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; >   struct mtd_dev_param *p; -- Andy Shevchenko Intel Finland Oy