From: Ryan Mallon <rmallon@gmail.com>
To: Axel Lin <axel.lin@gmail.com>
Cc: linux-kernel@vger.kernel.org,
H Hartley Sweeten <hsweeten@visionengravers.com>,
Paul Mundt <lethal@linux-sh.org>,
linux-fbdev@vger.kernel.org
Subject: Re: [PATCH] video: ep93xx-fb: add missing include of linux/module.h
Date: Sun, 21 Aug 2011 23:54:47 +0000 [thread overview]
Message-ID: <4E519AC7.3030001@gmail.com> (raw)
In-Reply-To: <4E5197B8.8020608@gmail.com>
On 22/08/11 09:41, Ryan Mallon wrote:
> On 22/08/11 00:39, Axel Lin wrote:
>> ep93xx-fb.c uses interfaces from linux/module.h,
>> so it should include that file. This patch fixes below build errors.
>
> What actually changed to make these files broken? Did some other
> header previously include module.h for us? How many other drivers are
> broken?
>
> Anyway, the change is okay.
>
> Acked-by: Ryan Mallon <rmallon@gmail.com>
Actually, having a second look at this it does not look right.
drivers/video/ep93xx-fb.c includes linux/platform.h (as its first
include), which includes linux/driver.h, which includes linux/module.h.
Just tested on Linus' latest tree and both this driver and the ep93xx
backlight driver build fine. What kernel version are you using?
~Ryan
>
>> CC drivers/video/ep93xx-fb.o
>> drivers/video/ep93xx-fb.c:120: error: expected ')' before 'int'
>> drivers/video/ep93xx-fb.c:122: error: expected ')' before string
>> constant
>> drivers/video/ep93xx-fb.c:409: error: 'THIS_MODULE' undeclared here
>> (not in a function)
>> drivers/video/ep93xx-fb.c:645: error: expected declaration specifiers
>> or '...' before string constant
>> drivers/video/ep93xx-fb.c:645: warning: data definition has no type
>> or storage class
>> drivers/video/ep93xx-fb.c:645: warning: type defaults to 'int' in
>> declaration of 'MODULE_DESCRIPTION'
>> drivers/video/ep93xx-fb.c:645: warning: function declaration isn't a
>> prototype
>> drivers/video/ep93xx-fb.c:646: error: expected declaration specifiers
>> or '...' before string constant
>> drivers/video/ep93xx-fb.c:646: warning: data definition has no type
>> or storage class
>> drivers/video/ep93xx-fb.c:646: warning: type defaults to 'int' in
>> declaration of 'MODULE_ALIAS'
>> drivers/video/ep93xx-fb.c:646: warning: function declaration isn't a
>> prototype
>> drivers/video/ep93xx-fb.c:647: error: expected declaration specifiers
>> or '...' before string constant
>> drivers/video/ep93xx-fb.c:647: warning: data definition has no type
>> or storage class
>> drivers/video/ep93xx-fb.c:647: warning: type defaults to 'int' in
>> declaration of 'MODULE_AUTHOR'
>> drivers/video/ep93xx-fb.c:647: warning: function declaration isn't a
>> prototype
>> drivers/video/ep93xx-fb.c:649: error: expected declaration specifiers
>> or '...' before string constant
>> drivers/video/ep93xx-fb.c:649: warning: data definition has no type
>> or storage class
>> drivers/video/ep93xx-fb.c:649: warning: type defaults to 'int' in
>> declaration of 'MODULE_LICENSE'
>> drivers/video/ep93xx-fb.c:649: warning: function declaration isn't a
>> prototype
>> make[2]: *** [drivers/video/ep93xx-fb.o] Error 1
>> make[1]: *** [drivers/video] Error 2
>> make: *** [drivers] Error 2
>>
>> Signed-off-by: Axel Lin<axel.lin@gmail.com>
>> ---
>> drivers/video/ep93xx-fb.c | 1 +
>> 1 files changed, 1 insertions(+), 0 deletions(-)
>>
>> diff --git a/drivers/video/ep93xx-fb.c b/drivers/video/ep93xx-fb.c
>> index 40e5f17..8133a9d 100644
>> --- a/drivers/video/ep93xx-fb.c
>> +++ b/drivers/video/ep93xx-fb.c
>> @@ -17,6 +17,7 @@
>> *
>> */
>>
>> +#include<linux/module.h>
>> #include<linux/platform_device.h>
>> #include<linux/dma-mapping.h>
>> #include<linux/slab.h>
>
WARNING: multiple messages have this Message-ID (diff)
From: Ryan Mallon <rmallon@gmail.com>
To: Axel Lin <axel.lin@gmail.com>
Cc: linux-kernel@vger.kernel.org,
H Hartley Sweeten <hsweeten@visionengravers.com>,
Paul Mundt <lethal@linux-sh.org>,
linux-fbdev@vger.kernel.org
Subject: Re: [PATCH] video: ep93xx-fb: add missing include of linux/module.h
Date: Mon, 22 Aug 2011 09:54:47 +1000 [thread overview]
Message-ID: <4E519AC7.3030001@gmail.com> (raw)
In-Reply-To: <4E5197B8.8020608@gmail.com>
On 22/08/11 09:41, Ryan Mallon wrote:
> On 22/08/11 00:39, Axel Lin wrote:
>> ep93xx-fb.c uses interfaces from linux/module.h,
>> so it should include that file. This patch fixes below build errors.
>
> What actually changed to make these files broken? Did some other
> header previously include module.h for us? How many other drivers are
> broken?
>
> Anyway, the change is okay.
>
> Acked-by: Ryan Mallon <rmallon@gmail.com>
Actually, having a second look at this it does not look right.
drivers/video/ep93xx-fb.c includes linux/platform.h (as its first
include), which includes linux/driver.h, which includes linux/module.h.
Just tested on Linus' latest tree and both this driver and the ep93xx
backlight driver build fine. What kernel version are you using?
~Ryan
>
>> CC drivers/video/ep93xx-fb.o
>> drivers/video/ep93xx-fb.c:120: error: expected ')' before 'int'
>> drivers/video/ep93xx-fb.c:122: error: expected ')' before string
>> constant
>> drivers/video/ep93xx-fb.c:409: error: 'THIS_MODULE' undeclared here
>> (not in a function)
>> drivers/video/ep93xx-fb.c:645: error: expected declaration specifiers
>> or '...' before string constant
>> drivers/video/ep93xx-fb.c:645: warning: data definition has no type
>> or storage class
>> drivers/video/ep93xx-fb.c:645: warning: type defaults to 'int' in
>> declaration of 'MODULE_DESCRIPTION'
>> drivers/video/ep93xx-fb.c:645: warning: function declaration isn't a
>> prototype
>> drivers/video/ep93xx-fb.c:646: error: expected declaration specifiers
>> or '...' before string constant
>> drivers/video/ep93xx-fb.c:646: warning: data definition has no type
>> or storage class
>> drivers/video/ep93xx-fb.c:646: warning: type defaults to 'int' in
>> declaration of 'MODULE_ALIAS'
>> drivers/video/ep93xx-fb.c:646: warning: function declaration isn't a
>> prototype
>> drivers/video/ep93xx-fb.c:647: error: expected declaration specifiers
>> or '...' before string constant
>> drivers/video/ep93xx-fb.c:647: warning: data definition has no type
>> or storage class
>> drivers/video/ep93xx-fb.c:647: warning: type defaults to 'int' in
>> declaration of 'MODULE_AUTHOR'
>> drivers/video/ep93xx-fb.c:647: warning: function declaration isn't a
>> prototype
>> drivers/video/ep93xx-fb.c:649: error: expected declaration specifiers
>> or '...' before string constant
>> drivers/video/ep93xx-fb.c:649: warning: data definition has no type
>> or storage class
>> drivers/video/ep93xx-fb.c:649: warning: type defaults to 'int' in
>> declaration of 'MODULE_LICENSE'
>> drivers/video/ep93xx-fb.c:649: warning: function declaration isn't a
>> prototype
>> make[2]: *** [drivers/video/ep93xx-fb.o] Error 1
>> make[1]: *** [drivers/video] Error 2
>> make: *** [drivers] Error 2
>>
>> Signed-off-by: Axel Lin<axel.lin@gmail.com>
>> ---
>> drivers/video/ep93xx-fb.c | 1 +
>> 1 files changed, 1 insertions(+), 0 deletions(-)
>>
>> diff --git a/drivers/video/ep93xx-fb.c b/drivers/video/ep93xx-fb.c
>> index 40e5f17..8133a9d 100644
>> --- a/drivers/video/ep93xx-fb.c
>> +++ b/drivers/video/ep93xx-fb.c
>> @@ -17,6 +17,7 @@
>> *
>> */
>>
>> +#include<linux/module.h>
>> #include<linux/platform_device.h>
>> #include<linux/dma-mapping.h>
>> #include<linux/slab.h>
>
next prev parent reply other threads:[~2011-08-21 23:54 UTC|newest]
Thread overview: 18+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-08-21 14:39 [PATCH] video: ep93xx-fb: add missing include of linux/module.h Axel Lin
2011-08-21 14:39 ` Axel Lin
2011-08-21 23:41 ` Ryan Mallon
2011-08-21 23:41 ` Ryan Mallon
2011-08-21 23:54 ` Ryan Mallon [this message]
2011-08-21 23:54 ` Ryan Mallon
2011-08-22 0:06 ` Axel Lin
2011-08-22 0:06 ` Axel Lin
2011-08-22 0:31 ` Ryan Mallon
2011-08-22 0:31 ` Ryan Mallon
2011-08-22 16:40 ` H Hartley Sweeten
2011-08-22 16:40 ` H Hartley Sweeten
2011-08-22 23:48 ` Ryan Mallon
2011-08-22 23:48 ` Ryan Mallon
2011-08-24 13:39 ` Paul Gortmaker
2011-08-24 13:39 ` Paul Gortmaker
2011-08-22 16:36 ` H Hartley Sweeten
2011-08-22 16:36 ` H Hartley Sweeten
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=4E519AC7.3030001@gmail.com \
--to=rmallon@gmail.com \
--cc=axel.lin@gmail.com \
--cc=hsweeten@visionengravers.com \
--cc=lethal@linux-sh.org \
--cc=linux-fbdev@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.