From mboxrd@z Thu Jan 1 00:00:00 1970 From: Simon Horman Subject: Re: [PATCH] i2c: rcar: fixup section mismatch on rcar_i2c_probe/remove() Date: Thu, 1 Nov 2012 08:22:45 +0800 Message-ID: <20121101002234.GD8879@verge.net.au> References: <871uk04aa2.wl%kuninori.morimoto.gx@renesas.com> <878vczd1hw.wl%kuninori.morimoto.gx@renesas.com> <20120828101259.409b410b@endymion.delvare> <874nnnct03.wl%kuninori.morimoto.gx@renesas.com> <877gred4u1.wl%kuninori.morimoto.gx@renesas.com> <20121031062128.GA31555@verge.net.au> <877gq7m97r.wl%kuninori.morimoto.gx@renesas.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Return-path: Content-Disposition: inline In-Reply-To: <877gq7m97r.wl%kuninori.morimoto.gx-zM6kxYcvzFBBDgjK7y7TUQ@public.gmane.org> Sender: linux-i2c-owner-u79uwXL29TY76Z2rM5mHXA@public.gmane.org To: Kuninori Morimoto Cc: Shubhrajyoti Datta , Wolfram Sang , Jean Delvare , Ben Dooks , Magnus , Linux-I2C , Kuninori Morimoto , phil.edworthy-zM6kxYcvzFBBDgjK7y7TUQ@public.gmane.org List-Id: linux-i2c@vger.kernel.org On Tue, Oct 30, 2012 at 11:44:44PM -0700, Kuninori Morimoto wrote: > This patch fixup below WARNING > > make CONFIG_DEBUG_SECTION_MISMATCH=y > ... > WARNING: vmlinux.o(.data+0x11798): Section mismatch in reference from the variable rcar_i2c_drv to the function .devinit.text:rcar_i2c_probe() > The variable rcar_i2c_drv references > the function __devinit rcar_i2c_probe() > If the reference is valid then annotate the > variable with __init* or __refdata (see linux/init.h) or name the variable: > *driver, *_template, *_timer, *_sht, *_ops, *_probe, *_probe_one, *_console > > WARNING: vmlinux.o(.data+0x1179c): Section mismatch in reference from the variable rcar_i2c_drv to the function .devexit.text:rcar_i2c_remove() > The variable rcar_i2c_drv references > the function __devexit rcar_i2c_remove() > If the reference is valid then annotate the > variable with __exit* (see linux/init.h) or name the variable: > *driver, *_template, *_timer, *_sht, *_ops, *_probe, *_probe_one, *_console > > Reported-by: Simon Horman > Signed-off-by: Kuninori Morimoto > --- > Simon > > Is this patch solve your issue ? Yes, thanks. Tested-by: Simon Horman