public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH] MTD: MAPS: bcm963xx-flash.c: explicitly include module.h
@ 2011-11-06 11:57 Jonas Gorski
  2011-11-07  1:26 ` Paul Gortmaker
  0 siblings, 1 reply; 4+ messages in thread
From: Jonas Gorski @ 2011-11-06 11:57 UTC (permalink / raw)
  To: Paul Gortmaker; +Cc: linux-mtd, David Woodhouse, linux-kernel, Florian Fainelli

module.h was previously implicitly included through mtd/mtd.h.

Fixes the following build failure after the module.h cleanup:

  CC      drivers/mtd/maps/bcm963xx-flash.o
drivers/mtd/maps/bcm963xx-flash.c: In function 'bcm963xx_probe':
drivers/mtd/maps/bcm963xx-flash.c:208:29: error: 'THIS_MODULE' undeclared (first use in this function)
drivers/mtd/maps/bcm963xx-flash.c:208:29: note: each undeclared identifier is reported only once for each function it appears in
drivers/mtd/maps/bcm963xx-flash.c: At top level:
drivers/mtd/maps/bcm963xx-flash.c:255:12: error: 'THIS_MODULE' undeclared here (not in a function)
drivers/mtd/maps/bcm963xx-flash.c:272:16: error: expected declaration specifiers or '...' before string constant
drivers/mtd/maps/bcm963xx-flash.c:272:1: warning: data definition has no type or storage class
drivers/mtd/maps/bcm963xx-flash.c:272:1: warning: type defaults to 'int' in declaration of 'MODULE_LICENSE'
drivers/mtd/maps/bcm963xx-flash.c:272:16: warning: function declaration isn't a prototype
drivers/mtd/maps/bcm963xx-flash.c:273:20: error: expected declaration specifiers or '...' before string constant
drivers/mtd/maps/bcm963xx-flash.c:273:1: warning: data definition has no type or storage class
drivers/mtd/maps/bcm963xx-flash.c:273:1: warning: type defaults to 'int' in declaration of 'MODULE_DESCRIPTION'
drivers/mtd/maps/bcm963xx-flash.c:273:20: warning: function declaration isn't a prototype
drivers/mtd/maps/bcm963xx-flash.c:274:15: error: expected declaration specifiers or '...' before string constant
drivers/mtd/maps/bcm963xx-flash.c:274:1: warning: data definition has no type or storage class
drivers/mtd/maps/bcm963xx-flash.c:274:1: warning: type defaults to 'int' in declaration of 'MODULE_AUTHOR'
drivers/mtd/maps/bcm963xx-flash.c:274:15: warning: function declaration isn't a prototype
drivers/mtd/maps/bcm963xx-flash.c:275:15: error: expected declaration specifiers or '...' before string constant
drivers/mtd/maps/bcm963xx-flash.c:275:1: warning: data definition has no type or storage class
drivers/mtd/maps/bcm963xx-flash.c:275:1: warning: type defaults to 'int' in declaration of 'MODULE_AUTHOR'
drivers/mtd/maps/bcm963xx-flash.c:275:15: warning: function declaration isn't a prototype
drivers/mtd/maps/bcm963xx-flash.c:276:15: error: expected declaration specifiers or '...' before string constant
drivers/mtd/maps/bcm963xx-flash.c:276:1: warning: data definition has no type or storage class
drivers/mtd/maps/bcm963xx-flash.c:276:1: warning: type defaults to 'int' in declaration of 'MODULE_AUTHOR'
drivers/mtd/maps/bcm963xx-flash.c:276:15: warning: function declaration isn't a prototype
make[7]: *** [drivers/mtd/maps/bcm963xx-flash.o] Error 1

Signed-off-by: Jonas Gorski <jonas.gorski@gmail.com>
---

This patch is based on next-20111104 and probably should go through Paul's module.h cleanup tree.

 drivers/mtd/maps/bcm963xx-flash.c |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)

diff --git a/drivers/mtd/maps/bcm963xx-flash.c b/drivers/mtd/maps/bcm963xx-flash.c
index 608967f..736ca10 100644
--- a/drivers/mtd/maps/bcm963xx-flash.c
+++ b/drivers/mtd/maps/bcm963xx-flash.c
@@ -21,6 +21,7 @@
 #include <linux/init.h>
 #include <linux/kernel.h>
 #include <linux/slab.h>
+#include <linux/module.h>
 #include <linux/mtd/map.h>
 #include <linux/mtd/mtd.h>
 #include <linux/mtd/partitions.h>
-- 
1.7.2.5


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

* Re: [PATCH] MTD: MAPS: bcm963xx-flash.c: explicitly include module.h
  2011-11-06 11:57 [PATCH] MTD: MAPS: bcm963xx-flash.c: explicitly include module.h Jonas Gorski
@ 2011-11-07  1:26 ` Paul Gortmaker
  2011-11-07 10:12   ` Jonas Gorski
  0 siblings, 1 reply; 4+ messages in thread
From: Paul Gortmaker @ 2011-11-07  1:26 UTC (permalink / raw)
  To: Jonas Gorski; +Cc: linux-mtd, David Woodhouse, linux-kernel, Florian Fainelli

[[PATCH] MTD: MAPS: bcm963xx-flash.c: explicitly include module.h] On 06/11/2011 (Sun 12:57) Jonas Gorski wrote:

> module.h was previously implicitly included through mtd/mtd.h.
> 
> Fixes the following build failure after the module.h cleanup:
> 
>   CC      drivers/mtd/maps/bcm963xx-flash.o
> drivers/mtd/maps/bcm963xx-flash.c: In function 'bcm963xx_probe':
> drivers/mtd/maps/bcm963xx-flash.c:208:29: error: 'THIS_MODULE' undeclared (first use in this function)
> drivers/mtd/maps/bcm963xx-flash.c:208:29: note: each undeclared identifier is reported only once for each function it appears in
> drivers/mtd/maps/bcm963xx-flash.c: At top level:
> drivers/mtd/maps/bcm963xx-flash.c:255:12: error: 'THIS_MODULE' undeclared here (not in a function)
> drivers/mtd/maps/bcm963xx-flash.c:272:16: error: expected declaration specifiers or '...' before string constant
> drivers/mtd/maps/bcm963xx-flash.c:272:1: warning: data definition has no type or storage class
> drivers/mtd/maps/bcm963xx-flash.c:272:1: warning: type defaults to 'int' in declaration of 'MODULE_LICENSE'
> drivers/mtd/maps/bcm963xx-flash.c:272:16: warning: function declaration isn't a prototype
> drivers/mtd/maps/bcm963xx-flash.c:273:20: error: expected declaration specifiers or '...' before string constant
> drivers/mtd/maps/bcm963xx-flash.c:273:1: warning: data definition has no type or storage class
> drivers/mtd/maps/bcm963xx-flash.c:273:1: warning: type defaults to 'int' in declaration of 'MODULE_DESCRIPTION'
> drivers/mtd/maps/bcm963xx-flash.c:273:20: warning: function declaration isn't a prototype
> drivers/mtd/maps/bcm963xx-flash.c:274:15: error: expected declaration specifiers or '...' before string constant
> drivers/mtd/maps/bcm963xx-flash.c:274:1: warning: data definition has no type or storage class
> drivers/mtd/maps/bcm963xx-flash.c:274:1: warning: type defaults to 'int' in declaration of 'MODULE_AUTHOR'
> drivers/mtd/maps/bcm963xx-flash.c:274:15: warning: function declaration isn't a prototype
> drivers/mtd/maps/bcm963xx-flash.c:275:15: error: expected declaration specifiers or '...' before string constant
> drivers/mtd/maps/bcm963xx-flash.c:275:1: warning: data definition has no type or storage class
> drivers/mtd/maps/bcm963xx-flash.c:275:1: warning: type defaults to 'int' in declaration of 'MODULE_AUTHOR'
> drivers/mtd/maps/bcm963xx-flash.c:275:15: warning: function declaration isn't a prototype
> drivers/mtd/maps/bcm963xx-flash.c:276:15: error: expected declaration specifiers or '...' before string constant
> drivers/mtd/maps/bcm963xx-flash.c:276:1: warning: data definition has no type or storage class
> drivers/mtd/maps/bcm963xx-flash.c:276:1: warning: type defaults to 'int' in declaration of 'MODULE_AUTHOR'
> drivers/mtd/maps/bcm963xx-flash.c:276:15: warning: function declaration isn't a prototype
> make[7]: *** [drivers/mtd/maps/bcm963xx-flash.o] Error 1
> 
> Signed-off-by: Jonas Gorski <jonas.gorski@gmail.com>
> ---
> 
> This patch is based on next-20111104 and probably should go through Paul's module.h cleanup tree.

I can put it in the module.h tree, but for files that are using module.h
stuff, they can simply add it via the normal maintainer flow, since
files that use modular stuff should include module.h regardless and
there are no dependencies on the module.h content for things like this.

Thanks,
Paul.

> 
>  drivers/mtd/maps/bcm963xx-flash.c |    1 +
>  1 files changed, 1 insertions(+), 0 deletions(-)
> 
> diff --git a/drivers/mtd/maps/bcm963xx-flash.c b/drivers/mtd/maps/bcm963xx-flash.c
> index 608967f..736ca10 100644
> --- a/drivers/mtd/maps/bcm963xx-flash.c
> +++ b/drivers/mtd/maps/bcm963xx-flash.c
> @@ -21,6 +21,7 @@
>  #include <linux/init.h>
>  #include <linux/kernel.h>
>  #include <linux/slab.h>
> +#include <linux/module.h>
>  #include <linux/mtd/map.h>
>  #include <linux/mtd/mtd.h>
>  #include <linux/mtd/partitions.h>
> -- 
> 1.7.2.5
> 

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

* Re: [PATCH] MTD: MAPS: bcm963xx-flash.c: explicitly include module.h
  2011-11-07  1:26 ` Paul Gortmaker
@ 2011-11-07 10:12   ` Jonas Gorski
  2011-11-07 16:30     ` Paul Gortmaker
  0 siblings, 1 reply; 4+ messages in thread
From: Jonas Gorski @ 2011-11-07 10:12 UTC (permalink / raw)
  To: Paul Gortmaker; +Cc: linux-mtd, David Woodhouse, linux-kernel, Florian Fainelli

HI Paul,

On 7 November 2011 02:26, Paul Gortmaker <paul.gortmaker@windriver.com> wrote:
>On 06/11/2011 (Sun 12:57) Jonas Gorski wrote:
>> This patch is based on next-20111104 and probably should go through Paul's module.h cleanup tree.
>
> I can put it in the module.h tree, but for files that are using module.h
> stuff, they can simply add it via the normal maintainer flow, since
> files that use modular stuff should include module.h regardless and
> there are no dependencies on the module.h content for things like this.

I'm fine with either (though going through the MTD-tree will probably
warrant a resubmission with a shortened changelog as it doesn't break
there (yet)).

@David, any preference there? Should I resubmit?

Regards
Jonas

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

* Re: [PATCH] MTD: MAPS: bcm963xx-flash.c: explicitly include module.h
  2011-11-07 10:12   ` Jonas Gorski
@ 2011-11-07 16:30     ` Paul Gortmaker
  0 siblings, 0 replies; 4+ messages in thread
From: Paul Gortmaker @ 2011-11-07 16:30 UTC (permalink / raw)
  To: Jonas Gorski; +Cc: linux-mtd, David Woodhouse, linux-kernel, Florian Fainelli

On 11-11-07 05:12 AM, Jonas Gorski wrote:
> HI Paul,
> 
> On 7 November 2011 02:26, Paul Gortmaker <paul.gortmaker@windriver.com> wrote:
>> On 06/11/2011 (Sun 12:57) Jonas Gorski wrote:
>>> This patch is based on next-20111104 and probably should go through Paul's module.h cleanup tree.
>>
>> I can put it in the module.h tree, but for files that are using module.h
>> stuff, they can simply add it via the normal maintainer flow, since
>> files that use modular stuff should include module.h regardless and
>> there are no dependencies on the module.h content for things like this.
> 
> I'm fine with either (though going through the MTD-tree will probably
> warrant a resubmission with a shortened changelog as it doesn't break
> there (yet)).

OK, I'll grab it and put it in the small post-merge queue that I'll be
sending in a couple of hours.

P.

> 
> @David, any preference there? Should I resubmit?
> 
> Regards
> Jonas

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

end of thread, other threads:[~2011-11-07 16:30 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-11-06 11:57 [PATCH] MTD: MAPS: bcm963xx-flash.c: explicitly include module.h Jonas Gorski
2011-11-07  1:26 ` Paul Gortmaker
2011-11-07 10:12   ` Jonas Gorski
2011-11-07 16:30     ` Paul Gortmaker

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