lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <4FFCDC54.8030408@marvell.com>
Date:	Wed, 11 Jul 2012 09:52:20 +0800
From:	Qiao Zhou <zhouqiao@...vell.com>
To:	Axel Lin <axel.lin@...il.com>
Cc:	SamuelOrtiz <sameo@...ux.intel.com>, Arnd Bergmann <arnd@...db.de>,
	"linux-kernel@...r.kernel.org" <linux-kernel@...r.kernel.org>
Subject: Re: [PATCH] mfd: Remove __devexit annotation for pm80x_deinit

On 07/11/2012 09:48 AM, Axel Lin wrote:
> This fixes below section mismatch warning:
>
>    LD      drivers/mfd/built-in.o
> WARNING: drivers/mfd/built-in.o(.devinit.text+0x46c): Section mismatch in reference from the function pm800_probe() to the function .devexit.text:pm80x_deinit()
> The function __devinit pm800_probe() references
> a function __devexit pm80x_deinit().
> This is often seen when error handling in the init function
> uses functionality in the exit path.
> The fix is often to remove the __devexit annotation of
> pm80x_deinit() so it may be used outside an exit section.
>
> Signed-off-by: Axel Lin <axel.lin@...il.com>
> ---
>   drivers/mfd/88pm80x.c |    2 +-
>   1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/drivers/mfd/88pm80x.c b/drivers/mfd/88pm80x.c
> index 62da342..cd0bf52 100644
> --- a/drivers/mfd/88pm80x.c
> +++ b/drivers/mfd/88pm80x.c
> @@ -91,7 +91,7 @@ err_regmap_init:
>   }
>   EXPORT_SYMBOL_GPL(pm80x_init);
>
> -int __devexit pm80x_deinit(struct i2c_client *client)
> +int pm80x_deinit(struct i2c_client *client)
>   {
>   	struct pm80x_chip *chip = i2c_get_clientdata(client);
>
>
Alex,

thanks again for the fixing, and would try to avoid such warning in future.

-- 

Best Regards
Qiao


--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ