mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [PATCH] MTD: pxa2xx: move pxa2xx_flash_probe to .devinit.text
@ 2010-07-30 15:42 Uwe Kleine-König
  2010-07-30 15:58 ` Sergei Shtylyov
  0 siblings, 1 reply; 5+ messages in thread
From: Uwe Kleine-König @ 2010-07-30 15:42 UTC (permalink / raw)
  To: linux-arm-kernel, linux-mtd
  Cc: David Woodhouse, Nicolas Pitre, Uwe Kleine-König,
	Julia Lawall, Tejun Heo, Russell King, linux-kernel

This fixes the following warning by modpost:

	WARNING: vmlinux.o(.data+0x15018): Section mismatch in reference from the variable pxa2xx_flash_driver to the function .init.text:pxa2xx_flash_probe()
	The variable pxa2xx_flash_driver references
	the function __init pxa2xx_flash_probe()
	If the reference is valid then annotate the
	variable with __init* or __refdata (see linux/init.h) or name the variable:
	*_template, *_timer, *_sht, *_ops, *_probe, *_probe_one, *_console,

I choosed to do this instead of using platform_driver_probe as the remove
function uses __devexit.

Signed-off-by: Uwe Kleine-König <u.kleine-koenig@pengutronix.de>
---
 drivers/mtd/maps/pxa2xx-flash.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/drivers/mtd/maps/pxa2xx-flash.c b/drivers/mtd/maps/pxa2xx-flash.c
index dd90880..d8ae634 100644
--- a/drivers/mtd/maps/pxa2xx-flash.c
+++ b/drivers/mtd/maps/pxa2xx-flash.c
@@ -51,7 +51,7 @@ struct pxa2xx_flash_info {
 static const char *probes[] = { "RedBoot", "cmdlinepart", NULL };
 
 
-static int __init pxa2xx_flash_probe(struct platform_device *pdev)
+static int __devinit pxa2xx_flash_probe(struct platform_device *pdev)
 {
 	struct flash_platform_data *flash = pdev->dev.platform_data;
 	struct pxa2xx_flash_info *info;
-- 
1.7.1


^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: [PATCH] MTD: pxa2xx: move pxa2xx_flash_probe to .devinit.text
  2010-07-30 15:42 [PATCH] MTD: pxa2xx: move pxa2xx_flash_probe to .devinit.text Uwe Kleine-König
@ 2010-07-30 15:58 ` Sergei Shtylyov
  2010-07-30 18:51   ` Uwe Kleine-König
  2010-07-30 19:02   ` [PATCH] trivial: fix typo "choosed" -> "chosen" Uwe Kleine-König
  0 siblings, 2 replies; 5+ messages in thread
From: Sergei Shtylyov @ 2010-07-30 15:58 UTC (permalink / raw)
  To: Uwe Kleine-König
  Cc: linux-arm-kernel, linux-mtd, Nicolas Pitre, linux-kernel,
	Julia Lawall, Tejun Heo, Russell King, David Woodhouse

Uwe Kleine-König wrote:

> This fixes the following warning by modpost:

> 	WARNING: vmlinux.o(.data+0x15018): Section mismatch in reference from the variable pxa2xx_flash_driver to the function .init.text:pxa2xx_flash_probe()
> 	The variable pxa2xx_flash_driver references
> 	the function __init pxa2xx_flash_probe()
> 	If the reference is valid then annotate the
> 	variable with __init* or __refdata (see linux/init.h) or name the variable:
> 	*_template, *_timer, *_sht, *_ops, *_probe, *_probe_one, *_console,

> I choosed to do this instead of using platform_driver_probe as the remove

    s/choosed/chose/

> function uses __devexit.

    Perhaps remove() method should have been fixed instead -- I doubt that 
this is a hotplug device.

WBR, Sergei


^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: [PATCH] MTD: pxa2xx: move pxa2xx_flash_probe to .devinit.text
  2010-07-30 15:58 ` Sergei Shtylyov
@ 2010-07-30 18:51   ` Uwe Kleine-König
  2010-07-30 19:02   ` [PATCH] trivial: fix typo "choosed" -> "chosen" Uwe Kleine-König
  1 sibling, 0 replies; 5+ messages in thread
From: Uwe Kleine-König @ 2010-07-30 18:51 UTC (permalink / raw)
  To: Sergei Shtylyov
  Cc: linux-arm-kernel, linux-mtd, Nicolas Pitre, linux-kernel,
	Julia Lawall, Tejun Heo, Russell King, David Woodhouse

On Fri, Jul 30, 2010 at 07:58:57PM +0400, Sergei Shtylyov wrote:
> Uwe Kleine-König wrote:
>
>> This fixes the following warning by modpost:
>
>> 	WARNING: vmlinux.o(.data+0x15018): Section mismatch in reference from the variable pxa2xx_flash_driver to the function .init.text:pxa2xx_flash_probe()
>> 	The variable pxa2xx_flash_driver references
>> 	the function __init pxa2xx_flash_probe()
>> 	If the reference is valid then annotate the
>> 	variable with __init* or __refdata (see linux/init.h) or name the variable:
>> 	*_template, *_timer, *_sht, *_ops, *_probe, *_probe_one, *_console,
>
>> I choosed to do this instead of using platform_driver_probe as the remove
>
>    s/choosed/chose/
oh right, thanks.

>> function uses __devexit.
>
>    Perhaps remove() method should have been fixed instead -- I doubt that 
> this is a hotplug device.
Actually I don't care much.

Best regards
Uwe

-- 
Pengutronix e.K.                           | Uwe Kleine-König            |
Industrial Linux Solutions                 | http://www.pengutronix.de/  |

^ permalink raw reply	[flat|nested] 5+ messages in thread

* [PATCH] trivial: fix typo "choosed" -> "chosen"
  2010-07-30 15:58 ` Sergei Shtylyov
  2010-07-30 18:51   ` Uwe Kleine-König
@ 2010-07-30 19:02   ` Uwe Kleine-König
  2010-08-04 13:08     ` Jiri Kosina
  1 sibling, 1 reply; 5+ messages in thread
From: Uwe Kleine-König @ 2010-07-30 19:02 UTC (permalink / raw)
  To: linux-kernel; +Cc: trivial

Signed-off-by: Uwe Kleine-König <u.kleine-koenig@pengutronix.de>
---
 fs/ext4/mballoc.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/fs/ext4/mballoc.c b/fs/ext4/mballoc.c
index 12b3bc0..0e83dfd 100644
--- a/fs/ext4/mballoc.c
+++ b/fs/ext4/mballoc.c
@@ -2704,7 +2704,7 @@ void exit_ext4_mballoc(void)
 
 
 /*
- * Check quota and mark choosed space (ac->ac_b_ex) non-free in bitmaps
+ * Check quota and mark chosen space (ac->ac_b_ex) non-free in bitmaps
  * Returns 0 if success or error code
  */
 static noinline_for_stack int
-- 
1.7.1


^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: [PATCH] trivial: fix typo "choosed" -> "chosen"
  2010-07-30 19:02   ` [PATCH] trivial: fix typo "choosed" -> "chosen" Uwe Kleine-König
@ 2010-08-04 13:08     ` Jiri Kosina
  0 siblings, 0 replies; 5+ messages in thread
From: Jiri Kosina @ 2010-08-04 13:08 UTC (permalink / raw)
  To: Uwe Kleine-König; +Cc: linux-kernel

On Fri, 30 Jul 2010, Uwe Kleine-König wrote:

> Signed-off-by: Uwe Kleine-König <u.kleine-koenig@pengutronix.de>
> ---
>  fs/ext4/mballoc.c |    2 +-
>  1 files changed, 1 insertions(+), 1 deletions(-)
> 
> diff --git a/fs/ext4/mballoc.c b/fs/ext4/mballoc.c
> index 12b3bc0..0e83dfd 100644
> --- a/fs/ext4/mballoc.c
> +++ b/fs/ext4/mballoc.c
> @@ -2704,7 +2704,7 @@ void exit_ext4_mballoc(void)
>  
>  
>  /*
> - * Check quota and mark choosed space (ac->ac_b_ex) non-free in bitmaps
> + * Check quota and mark chosen space (ac->ac_b_ex) non-free in bitmaps
>   * Returns 0 if success or error code
>   */
>  static noinline_for_stack int

Applied, thanks.

-- 
Jiri Kosina
SUSE Labs, Novell Inc.

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2010-08-04 13:08 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2010-07-30 15:42 [PATCH] MTD: pxa2xx: move pxa2xx_flash_probe to .devinit.text Uwe Kleine-König
2010-07-30 15:58 ` Sergei Shtylyov
2010-07-30 18:51   ` Uwe Kleine-König
2010-07-30 19:02   ` [PATCH] trivial: fix typo "choosed" -> "chosen" Uwe Kleine-König
2010-08-04 13:08     ` Jiri Kosina

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

Powered by JetHome