public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH 1/2] mfd: include linux/module.h for ab5500-core
@ 2011-11-07  3:19 Axel Lin
  2011-11-07  3:20 ` [PATCH 2/2] mfd: include linux/module.h for ab5500-debugfs Axel Lin
                   ` (2 more replies)
  0 siblings, 3 replies; 9+ messages in thread
From: Axel Lin @ 2011-11-07  3:19 UTC (permalink / raw)
  To: linux-kernel; +Cc: Mattias Wallin, Linus Walleij, Samuel Ortiz, Paul Gortmaker

Include linux/module.h to fix below build error:

  CC      drivers/mfd/ab5500-core.o
drivers/mfd/ab5500-core.c:1419: error: 'THIS_MODULE' undeclared here (not in a function)
drivers/mfd/ab5500-core.c:1437: error: expected declaration specifiers or '...' before string constant
drivers/mfd/ab5500-core.c:1437: warning: data definition has no type or storage class
drivers/mfd/ab5500-core.c:1437: warning: type defaults to 'int' in declaration of 'MODULE_AUTHOR'
drivers/mfd/ab5500-core.c:1437: warning: function declaration isn't a prototype
drivers/mfd/ab5500-core.c:1438: error: expected declaration specifiers or '...' before string constant
drivers/mfd/ab5500-core.c:1438: warning: data definition has no type or storage class
drivers/mfd/ab5500-core.c:1438: warning: type defaults to 'int' in declaration of 'MODULE_DESCRIPTION'
drivers/mfd/ab5500-core.c:1438: warning: function declaration isn't a prototype
drivers/mfd/ab5500-core.c:1439: error: expected declaration specifiers or '...' before string constant
drivers/mfd/ab5500-core.c:1439: warning: data definition has no type or storage class
drivers/mfd/ab5500-core.c:1439: warning: type defaults to 'int' in declaration of 'MODULE_LICENSE'
drivers/mfd/ab5500-core.c:1439: warning: function declaration isn't a prototype
make[2]: *** [drivers/mfd/ab5500-core.o] Error 1
make[1]: *** [drivers/mfd] Error 2
make: *** [drivers] Error 2

Signed-off-by: Axel Lin <axel.lin@gmail.com>
---
I got the build error on linux-next 20111104.

 drivers/mfd/ab5500-core.c |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)

diff --git a/drivers/mfd/ab5500-core.c b/drivers/mfd/ab5500-core.c
index 4175544..ec10629 100644
--- a/drivers/mfd/ab5500-core.c
+++ b/drivers/mfd/ab5500-core.c
@@ -13,6 +13,7 @@
  * TODO: Event handling with irq_chip. Waiting for PRCMU fw support.
  */
 
+#include <linux/module.h>
 #include <linux/mutex.h>
 #include <linux/err.h>
 #include <linux/platform_device.h>
-- 
1.7.5.4




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

* [PATCH 2/2] mfd: include linux/module.h for ab5500-debugfs
  2011-11-07  3:19 [PATCH 1/2] mfd: include linux/module.h for ab5500-core Axel Lin
@ 2011-11-07  3:20 ` Axel Lin
  2011-11-07  8:32   ` Linus Walleij
  2011-11-07 16:16   ` Paul Gortmaker
  2011-11-07  8:11 ` [PATCH 1/2] mfd: include linux/module.h for ab5500-core Linus Walleij
  2011-11-14  0:19 ` Samuel Ortiz
  2 siblings, 2 replies; 9+ messages in thread
From: Axel Lin @ 2011-11-07  3:20 UTC (permalink / raw)
  To: linux-kernel; +Cc: Mattias Wallin, Linus Walleij, Samuel Ortiz, Paul Gortmaker

Include linux/module.h to fix below build error:

  CC      drivers/mfd/ab5500-debugfs.o
drivers/mfd/ab5500-debugfs.c:571: error: 'THIS_MODULE' undeclared here (not in a function)
make[2]: *** [drivers/mfd/ab5500-debugfs.o] Error 1

Signed-off-by: Axel Lin <axel.lin@gmail.com>
---
 drivers/mfd/ab5500-debugfs.c |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)

diff --git a/drivers/mfd/ab5500-debugfs.c b/drivers/mfd/ab5500-debugfs.c
index 6be1fe6..b7b2d348 100644
--- a/drivers/mfd/ab5500-debugfs.c
+++ b/drivers/mfd/ab5500-debugfs.c
@@ -4,6 +4,7 @@
  * Debugfs support for the AB5500 MFD driver
  */
 
+#include <linux/module.h>
 #include <linux/debugfs.h>
 #include <linux/seq_file.h>
 #include <linux/mfd/ab5500/ab5500.h>
-- 
1.7.5.4




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

* Re: [PATCH 1/2] mfd: include linux/module.h for ab5500-core
  2011-11-07  3:19 [PATCH 1/2] mfd: include linux/module.h for ab5500-core Axel Lin
  2011-11-07  3:20 ` [PATCH 2/2] mfd: include linux/module.h for ab5500-debugfs Axel Lin
@ 2011-11-07  8:11 ` Linus Walleij
  2011-11-14  0:19 ` Samuel Ortiz
  2 siblings, 0 replies; 9+ messages in thread
From: Linus Walleij @ 2011-11-07  8:11 UTC (permalink / raw)
  To: Axel Lin; +Cc: linux-kernel, Mattias Wallin, Samuel Ortiz, Paul Gortmaker

On Mon, Nov 7, 2011 at 4:19 AM, Axel Lin <axel.lin@gmail.com> wrote:

> Include linux/module.h to fix below build error:

Acked-by: Linus Walleij <linus.walleij@linaro.org>

For both.

Linus Walleij

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

* Re: [PATCH 2/2] mfd: include linux/module.h for ab5500-debugfs
  2011-11-07  3:20 ` [PATCH 2/2] mfd: include linux/module.h for ab5500-debugfs Axel Lin
@ 2011-11-07  8:32   ` Linus Walleij
  2011-11-07 16:16   ` Paul Gortmaker
  1 sibling, 0 replies; 9+ messages in thread
From: Linus Walleij @ 2011-11-07  8:32 UTC (permalink / raw)
  To: Axel Lin; +Cc: linux-kernel, Mattias Wallin, Samuel Ortiz, Paul Gortmaker

On Mon, Nov 7, 2011 at 4:20 AM, Axel Lin <axel.lin@gmail.com> wrote:

> Include linux/module.h to fix below build error:

Acked-by: Linus Walleij <linus.walleij@linaro.org>

Thanks Axel!
Linus Walleij

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

* Re: [PATCH 2/2] mfd: include linux/module.h for ab5500-debugfs
  2011-11-07  3:20 ` [PATCH 2/2] mfd: include linux/module.h for ab5500-debugfs Axel Lin
  2011-11-07  8:32   ` Linus Walleij
@ 2011-11-07 16:16   ` Paul Gortmaker
  2011-11-08  2:57     ` Axel Lin
  1 sibling, 1 reply; 9+ messages in thread
From: Paul Gortmaker @ 2011-11-07 16:16 UTC (permalink / raw)
  To: Axel Lin; +Cc: linux-kernel, Mattias Wallin, Linus Walleij, Samuel Ortiz

On 11-11-06 10:20 PM, Axel Lin wrote:
> Include linux/module.h to fix below build error:
> 
>   CC      drivers/mfd/ab5500-debugfs.o
> drivers/mfd/ab5500-debugfs.c:571: error: 'THIS_MODULE' undeclared here (not in a function)
> make[2]: *** [drivers/mfd/ab5500-debugfs.o] Error 1
> 
> Signed-off-by: Axel Lin <axel.lin@gmail.com>
> ---
>  drivers/mfd/ab5500-debugfs.c |    1 +
>  1 files changed, 1 insertions(+), 0 deletions(-)
> 
> diff --git a/drivers/mfd/ab5500-debugfs.c b/drivers/mfd/ab5500-debugfs.c
> index 6be1fe6..b7b2d348 100644
> --- a/drivers/mfd/ab5500-debugfs.c
> +++ b/drivers/mfd/ab5500-debugfs.c
> @@ -4,6 +4,7 @@
>   * Debugfs support for the AB5500 MFD driver
>   */
>  
> +#include <linux/module.h>

This one looks incorrect.  I don't see any uses of MODULE_* or
module_* in the file, so I'll make a commit for it to use export.h
and retest.

P.

>  #include <linux/debugfs.h>
>  #include <linux/seq_file.h>
>  #include <linux/mfd/ab5500/ab5500.h>

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

* Re: [PATCH 2/2] mfd: include linux/module.h for ab5500-debugfs
  2011-11-07 16:16   ` Paul Gortmaker
@ 2011-11-08  2:57     ` Axel Lin
  2011-11-08  3:14       ` Axel Lin
  0 siblings, 1 reply; 9+ messages in thread
From: Axel Lin @ 2011-11-08  2:57 UTC (permalink / raw)
  To: Paul Gortmaker; +Cc: linux-kernel, Mattias Wallin, Linus Walleij, Samuel Ortiz

2011/11/8 Paul Gortmaker <paul.gortmaker@windriver.com>:
> On 11-11-06 10:20 PM, Axel Lin wrote:
>> Include linux/module.h to fix below build error:
>>
>>   CC      drivers/mfd/ab5500-debugfs.o
>> drivers/mfd/ab5500-debugfs.c:571: error: 'THIS_MODULE' undeclared here (not in a function)
>> make[2]: *** [drivers/mfd/ab5500-debugfs.o] Error 1
>>
>> Signed-off-by: Axel Lin <axel.lin@gmail.com>
>> ---
>>  drivers/mfd/ab5500-debugfs.c |    1 +
>>  1 files changed, 1 insertions(+), 0 deletions(-)
>>
>> diff --git a/drivers/mfd/ab5500-debugfs.c b/drivers/mfd/ab5500-debugfs.c
>> index 6be1fe6..b7b2d348 100644
>> --- a/drivers/mfd/ab5500-debugfs.c
>> +++ b/drivers/mfd/ab5500-debugfs.c
>> @@ -4,6 +4,7 @@
>>   * Debugfs support for the AB5500 MFD driver
>>   */
>>
>> +#include <linux/module.h>
>
> This one looks incorrect.  I don't see any uses of MODULE_* or
> module_* in the file, so I'll make a commit for it to use export.h
> and retest.
>
hi Paul,
drivers/mfd/ab8500-debugfs.c does use MODULE_AUTHOR, MODULE_DESCRIPTION, etc.
I got below build error if only includes linux/export.h

  CC      drivers/mfd/ab8500-debugfs.o
drivers/mfd/ab8500-debugfs.c:632: error: expected declaration
specifiers or '...' before string constant
drivers/mfd/ab8500-debugfs.c:632: warning: data definition has no type
or storage class
drivers/mfd/ab8500-debugfs.c:632: warning: type defaults to 'int' in
declaration of 'MODULE_AUTHOR'
drivers/mfd/ab8500-debugfs.c:632: warning: function declaration isn't
a prototype
drivers/mfd/ab8500-debugfs.c:633: error: expected declaration
specifiers or '...' before string constant
drivers/mfd/ab8500-debugfs.c:633: warning: data definition has no type
or storage class
drivers/mfd/ab8500-debugfs.c:633: warning: type defaults to 'int' in
declaration of 'MODULE_DESCRIPTION'
drivers/mfd/ab8500-debugfs.c:633: warning: function declaration isn't
a prototype
drivers/mfd/ab8500-debugfs.c:634: error: expected declaration
specifiers or '...' before string constant
drivers/mfd/ab8500-debugfs.c:634: warning: data definition has no type
or storage class
drivers/mfd/ab8500-debugfs.c:634: warning: type defaults to 'int' in
declaration of 'MODULE_LICENSE'
drivers/mfd/ab8500-debugfs.c:634: warning: function declaration isn't
a prototype
make[2]: *** [drivers/mfd/ab8500-debugfs.o] Error 1
make[1]: *** [drivers/mfd] Error 2
make: *** [drivers] Error 2

Well, I don't know why I don't see these errors when I build the code last time.

Regards,
Axel

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

* Re: [PATCH 2/2] mfd: include linux/module.h for ab5500-debugfs
  2011-11-08  2:57     ` Axel Lin
@ 2011-11-08  3:14       ` Axel Lin
  0 siblings, 0 replies; 9+ messages in thread
From: Axel Lin @ 2011-11-08  3:14 UTC (permalink / raw)
  To: Paul Gortmaker; +Cc: linux-kernel, Mattias Wallin, Linus Walleij, Samuel Ortiz

2011/11/8 Axel Lin <axel.lin@gmail.com>:
> 2011/11/8 Paul Gortmaker <paul.gortmaker@windriver.com>:
>> On 11-11-06 10:20 PM, Axel Lin wrote:
>>> Include linux/module.h to fix below build error:
>>>
>>>   CC      drivers/mfd/ab5500-debugfs.o
>>> drivers/mfd/ab5500-debugfs.c:571: error: 'THIS_MODULE' undeclared here (not in a function)
>>> make[2]: *** [drivers/mfd/ab5500-debugfs.o] Error 1
>>>
>>> Signed-off-by: Axel Lin <axel.lin@gmail.com>
>>> ---
>>>  drivers/mfd/ab5500-debugfs.c |    1 +
>>>  1 files changed, 1 insertions(+), 0 deletions(-)
>>>
>>> diff --git a/drivers/mfd/ab5500-debugfs.c b/drivers/mfd/ab5500-debugfs.c
>>> index 6be1fe6..b7b2d348 100644
>>> --- a/drivers/mfd/ab5500-debugfs.c
>>> +++ b/drivers/mfd/ab5500-debugfs.c
>>> @@ -4,6 +4,7 @@
>>>   * Debugfs support for the AB5500 MFD driver
>>>   */
>>>
>>> +#include <linux/module.h>
>>
>> This one looks incorrect.  I don't see any uses of MODULE_* or
>> module_* in the file, so I'll make a commit for it to use export.h
>> and retest.
>>
> hi Paul,
> drivers/mfd/ab8500-debugfs.c does use MODULE_AUTHOR, MODULE_DESCRIPTION, etc.
> I got below build error if only includes linux/export.h
>
>  CC      drivers/mfd/ab8500-debugfs.o
Ooops. Sorry, I change wrong file. We are talking about
ab5500-debugfs.c not ab8500-debugfs.c.

Regards,
Axel

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

* Re: [PATCH 1/2] mfd: include linux/module.h for ab5500-core
  2011-11-07  3:19 [PATCH 1/2] mfd: include linux/module.h for ab5500-core Axel Lin
  2011-11-07  3:20 ` [PATCH 2/2] mfd: include linux/module.h for ab5500-debugfs Axel Lin
  2011-11-07  8:11 ` [PATCH 1/2] mfd: include linux/module.h for ab5500-core Linus Walleij
@ 2011-11-14  0:19 ` Samuel Ortiz
  2011-11-14 17:41   ` Paul Gortmaker
  2 siblings, 1 reply; 9+ messages in thread
From: Samuel Ortiz @ 2011-11-14  0:19 UTC (permalink / raw)
  To: Axel Lin; +Cc: linux-kernel, Mattias Wallin, Linus Walleij, Paul Gortmaker

Hi Axel,

On Mon, Nov 07, 2011 at 11:19:14AM +0800, Axel Lin wrote:
> Include linux/module.h to fix below build error:
Both patches applied, thanks a lot.

Cheers,
Samuel.

-- 
Intel Open Source Technology Centre
http://oss.intel.com/

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

* Re: [PATCH 1/2] mfd: include linux/module.h for ab5500-core
  2011-11-14  0:19 ` Samuel Ortiz
@ 2011-11-14 17:41   ` Paul Gortmaker
  0 siblings, 0 replies; 9+ messages in thread
From: Paul Gortmaker @ 2011-11-14 17:41 UTC (permalink / raw)
  To: Samuel Ortiz; +Cc: Axel Lin, linux-kernel, Mattias Wallin, Linus Walleij

On 11-11-13 07:19 PM, Samuel Ortiz wrote:
> Hi Axel,
> 
> On Mon, Nov 07, 2011 at 11:19:14AM +0800, Axel Lin wrote:
>> Include linux/module.h to fix below build error:
> Both patches applied, thanks a lot.

I can't tell from the above if you mean applied to an mtd specific
branch, or mainline, but just to be sure, the fixes are in mainline
for about a week now.

http://git.kernel.org/?p=linux/kernel/git/torvalds/linux.git;a=commit;h=3b8ce3aed986090d9249629f97c53b4dfb8c9783

Thanks,
Paul.

> 
> Cheers,
> Samuel.
> 

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

end of thread, other threads:[~2011-11-14 17:41 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-11-07  3:19 [PATCH 1/2] mfd: include linux/module.h for ab5500-core Axel Lin
2011-11-07  3:20 ` [PATCH 2/2] mfd: include linux/module.h for ab5500-debugfs Axel Lin
2011-11-07  8:32   ` Linus Walleij
2011-11-07 16:16   ` Paul Gortmaker
2011-11-08  2:57     ` Axel Lin
2011-11-08  3:14       ` Axel Lin
2011-11-07  8:11 ` [PATCH 1/2] mfd: include linux/module.h for ab5500-core Linus Walleij
2011-11-14  0:19 ` Samuel Ortiz
2011-11-14 17:41   ` Paul Gortmaker

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