* linux-next: build failure after merge of the driver-core tree
@ 2010-05-18 6:44 Stephen Rothwell
2010-05-18 14:02 ` Greg KH
0 siblings, 1 reply; 8+ messages in thread
From: Stephen Rothwell @ 2010-05-18 6:44 UTC (permalink / raw)
To: Greg KH; +Cc: linux-next, linux-kernel, Chris Wright
[-- Attachment #1: Type: text/plain, Size: 1336 bytes --]
Hi Greg,
After merging the driver-core tree, today's linux-next build (powerpc
ppc64_defconfig) failed like this:
cc1: warnings being treated as errors
In file included from include/linux/kobject.h:21,
from include/linux/device.h:17,
from arch/powerpc/lib/devres.c:10:
include/linux/sysfs.h:97: error: 'struct file' declared inside parameter list
include/linux/sysfs.h:97: error: its scope is only this definition or declaration, which is probably not what you want
include/linux/sysfs.h:99: error: 'struct file' declared inside parameter list
include/linux/sysfs.h:101: error: 'struct file' declared inside parameter list
and many more (arch/powerpc is built with -Werror (as do some other
architectures)) and lots of similar warnings ...
Caused by commit f8e898186196a22756b50b908ecd92123265f8a2 ("sysfs: add
struct file* to bin_attr callbacks"). See Rule 1 in
Documentation/SubmitChecklist. The header file probably just needs
"struct file;" added in the right place.
I have reverted that commit for today (and commit
44e425ab9f887ec6d3a7a4481f3b0c99f120de19 ("pci: check caps from sysfs
file open to read device dependent config space") that depends on it).
--
Cheers,
Stephen Rothwell sfr@canb.auug.org.au
http://www.canb.auug.org.au/~sfr/
[-- Attachment #2: Type: application/pgp-signature, Size: 198 bytes --]
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: linux-next: build failure after merge of the driver-core tree
2010-05-18 6:44 linux-next: build failure after merge of the driver-core tree Stephen Rothwell
@ 2010-05-18 14:02 ` Greg KH
2010-05-18 14:04 ` Chris Wright
2010-05-18 21:06 ` Chris Wright
0 siblings, 2 replies; 8+ messages in thread
From: Greg KH @ 2010-05-18 14:02 UTC (permalink / raw)
To: Stephen Rothwell, Chris Wright; +Cc: linux-next, linux-kernel
On Tue, May 18, 2010 at 04:44:09PM +1000, Stephen Rothwell wrote:
> Hi Greg,
>
> After merging the driver-core tree, today's linux-next build (powerpc
> ppc64_defconfig) failed like this:
>
> cc1: warnings being treated as errors
> In file included from include/linux/kobject.h:21,
> from include/linux/device.h:17,
> from arch/powerpc/lib/devres.c:10:
> include/linux/sysfs.h:97: error: 'struct file' declared inside parameter list
> include/linux/sysfs.h:97: error: its scope is only this definition or declaration, which is probably not what you want
> include/linux/sysfs.h:99: error: 'struct file' declared inside parameter list
> include/linux/sysfs.h:101: error: 'struct file' declared inside parameter list
>
> and many more (arch/powerpc is built with -Werror (as do some other
> architectures)) and lots of similar warnings ...
>
> Caused by commit f8e898186196a22756b50b908ecd92123265f8a2 ("sysfs: add
> struct file* to bin_attr callbacks"). See Rule 1 in
> Documentation/SubmitChecklist. The header file probably just needs
> "struct file;" added in the right place.
>
> I have reverted that commit for today (and commit
> 44e425ab9f887ec6d3a7a4481f3b0c99f120de19 ("pci: check caps from sysfs
> file open to read device dependent config space") that depends on it).
Ick.
Chris, care to send a patch to resolve this?
thanks,
greg k-h
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: linux-next: build failure after merge of the driver-core tree
2010-05-18 14:02 ` Greg KH
@ 2010-05-18 14:04 ` Chris Wright
2010-05-18 21:06 ` Chris Wright
1 sibling, 0 replies; 8+ messages in thread
From: Chris Wright @ 2010-05-18 14:04 UTC (permalink / raw)
To: Greg KH; +Cc: Stephen Rothwell, Chris Wright, linux-next, linux-kernel
* Greg KH (greg@kroah.com) wrote:
> On Tue, May 18, 2010 at 04:44:09PM +1000, Stephen Rothwell wrote:
> > Hi Greg,
> >
> > After merging the driver-core tree, today's linux-next build (powerpc
> > ppc64_defconfig) failed like this:
> >
> > cc1: warnings being treated as errors
> > In file included from include/linux/kobject.h:21,
> > from include/linux/device.h:17,
> > from arch/powerpc/lib/devres.c:10:
> > include/linux/sysfs.h:97: error: 'struct file' declared inside parameter list
> > include/linux/sysfs.h:97: error: its scope is only this definition or declaration, which is probably not what you want
> > include/linux/sysfs.h:99: error: 'struct file' declared inside parameter list
> > include/linux/sysfs.h:101: error: 'struct file' declared inside parameter list
> >
> > and many more (arch/powerpc is built with -Werror (as do some other
> > architectures)) and lots of similar warnings ...
> >
> > Caused by commit f8e898186196a22756b50b908ecd92123265f8a2 ("sysfs: add
> > struct file* to bin_attr callbacks"). See Rule 1 in
> > Documentation/SubmitChecklist. The header file probably just needs
> > "struct file;" added in the right place.
> >
> > I have reverted that commit for today (and commit
> > 44e425ab9f887ec6d3a7a4481f3b0c99f120de19 ("pci: check caps from sysfs
> > file open to read device dependent config space") that depends on it).
>
> Ick.
>
> Chris, care to send a patch to resolve this?
Yeah, I'll see where the header is missing.
thanks,
-chris
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: linux-next: build failure after merge of the driver-core tree
2010-05-18 14:02 ` Greg KH
2010-05-18 14:04 ` Chris Wright
@ 2010-05-18 21:06 ` Chris Wright
2010-05-18 21:24 ` Greg KH
1 sibling, 1 reply; 8+ messages in thread
From: Chris Wright @ 2010-05-18 21:06 UTC (permalink / raw)
To: Greg KH; +Cc: Stephen Rothwell, Chris Wright, linux-next, linux-kernel
* Greg KH (greg@kroah.com) wrote:
> On Tue, May 18, 2010 at 04:44:09PM +1000, Stephen Rothwell wrote:
> > Hi Greg,
> >
> > After merging the driver-core tree, today's linux-next build (powerpc
> > ppc64_defconfig) failed like this:
> >
> > cc1: warnings being treated as errors
> > In file included from include/linux/kobject.h:21,
> > from include/linux/device.h:17,
> > from arch/powerpc/lib/devres.c:10:
> > include/linux/sysfs.h:97: error: 'struct file' declared inside parameter list
> > include/linux/sysfs.h:97: error: its scope is only this definition or declaration, which is probably not what you want
> > include/linux/sysfs.h:99: error: 'struct file' declared inside parameter list
> > include/linux/sysfs.h:101: error: 'struct file' declared inside parameter list
> >
> > and many more (arch/powerpc is built with -Werror (as do some other
> > architectures)) and lots of similar warnings ...
> >
> > Caused by commit f8e898186196a22756b50b908ecd92123265f8a2 ("sysfs: add
> > struct file* to bin_attr callbacks"). See Rule 1 in
> > Documentation/SubmitChecklist. The header file probably just needs
> > "struct file;" added in the right place.
> >
> > I have reverted that commit for today (and commit
> > 44e425ab9f887ec6d3a7a4481f3b0c99f120de19 ("pci: check caps from sysfs
> > file open to read device dependent config space") that depends on it).
>
> Ick.
>
> Chris, care to send a patch to resolve this?
Would you prefer incremental to fold in, or respin? It's just this
one-liner fwd declaration as Stephen mentioned.
thanks,
-chris
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: linux-next: build failure after merge of the driver-core tree
2010-05-18 21:06 ` Chris Wright
@ 2010-05-18 21:24 ` Greg KH
2010-05-18 22:32 ` [PATCH] sysfs: compile fix, struct file forward declaration Chris Wright
0 siblings, 1 reply; 8+ messages in thread
From: Greg KH @ 2010-05-18 21:24 UTC (permalink / raw)
To: Chris Wright; +Cc: Stephen Rothwell, linux-next, linux-kernel
On Tue, May 18, 2010 at 02:06:07PM -0700, Chris Wright wrote:
> * Greg KH (greg@kroah.com) wrote:
> > On Tue, May 18, 2010 at 04:44:09PM +1000, Stephen Rothwell wrote:
> > > Hi Greg,
> > >
> > > After merging the driver-core tree, today's linux-next build (powerpc
> > > ppc64_defconfig) failed like this:
> > >
> > > cc1: warnings being treated as errors
> > > In file included from include/linux/kobject.h:21,
> > > from include/linux/device.h:17,
> > > from arch/powerpc/lib/devres.c:10:
> > > include/linux/sysfs.h:97: error: 'struct file' declared inside parameter list
> > > include/linux/sysfs.h:97: error: its scope is only this definition or declaration, which is probably not what you want
> > > include/linux/sysfs.h:99: error: 'struct file' declared inside parameter list
> > > include/linux/sysfs.h:101: error: 'struct file' declared inside parameter list
> > >
> > > and many more (arch/powerpc is built with -Werror (as do some other
> > > architectures)) and lots of similar warnings ...
> > >
> > > Caused by commit f8e898186196a22756b50b908ecd92123265f8a2 ("sysfs: add
> > > struct file* to bin_attr callbacks"). See Rule 1 in
> > > Documentation/SubmitChecklist. The header file probably just needs
> > > "struct file;" added in the right place.
> > >
> > > I have reverted that commit for today (and commit
> > > 44e425ab9f887ec6d3a7a4481f3b0c99f120de19 ("pci: check caps from sysfs
> > > file open to read device dependent config space") that depends on it).
> >
> > Ick.
> >
> > Chris, care to send a patch to resolve this?
>
> Would you prefer incremental to fold in, or respin? It's just this
> one-liner fwd declaration as Stephen mentioned.
Incremental to fold in is easier. That way there's no build error in
the tree.
thanks,
greg k-h
^ permalink raw reply [flat|nested] 8+ messages in thread
* [PATCH] sysfs: compile fix, struct file forward declaration
2010-05-18 21:24 ` Greg KH
@ 2010-05-18 22:32 ` Chris Wright
2010-05-20 17:36 ` Greg KH
0 siblings, 1 reply; 8+ messages in thread
From: Chris Wright @ 2010-05-18 22:32 UTC (permalink / raw)
To: Greg KH; +Cc: Chris Wright, Stephen Rothwell, linux-next, linux-kernel
On Tue, May 18, 2010 at 04:44:09PM +1000, Stephen Rothwell wrote:
> After merging the driver-core tree, today's linux-next build (powerpc
> ppc64_defconfig) failed like this:
>
> cc1: warnings being treated as errors
> In file included from include/linux/kobject.h:21,
> from include/linux/device.h:17,
> from arch/powerpc/lib/devres.c:10:
> include/linux/sysfs.h:97: error: 'struct file' declared inside parameter list
> include/linux/sysfs.h:97: error: its scope is only this definition or
> declaration, which is probably not what you want
> include/linux/sysfs.h:99: error: 'struct file' declared inside parameter list
> include/linux/sysfs.h:101: error: 'struct file' declared inside parameter list
>
> and many more (arch/powerpc is built with -Werror (as do some other
> architectures)) and lots of similar warnings ...
Add missing forward declaration
Signed-off-by: Chris Wright <chrisw@sous-sol.org>
---
include/linux/sysfs.h | 1 +
1 files changed, 1 insertions(+), 0 deletions(-)
diff --git a/include/linux/sysfs.h b/include/linux/sysfs.h
index 2a0d278..f06b1f1 100644
--- a/include/linux/sysfs.h
+++ b/include/linux/sysfs.h
@@ -86,6 +86,7 @@ struct attribute_group {
#define attr_name(_attr) (_attr).attr.name
+struct file;
struct vm_area_struct;
struct bin_attribute {
^ permalink raw reply related [flat|nested] 8+ messages in thread
* Re: [PATCH] sysfs: compile fix, struct file forward declaration
2010-05-18 22:32 ` [PATCH] sysfs: compile fix, struct file forward declaration Chris Wright
@ 2010-05-20 17:36 ` Greg KH
2010-05-20 18:39 ` Chris Wright
0 siblings, 1 reply; 8+ messages in thread
From: Greg KH @ 2010-05-20 17:36 UTC (permalink / raw)
To: Chris Wright; +Cc: Stephen Rothwell, linux-next, linux-kernel
On Tue, May 18, 2010 at 03:32:19PM -0700, Chris Wright wrote:
> On Tue, May 18, 2010 at 04:44:09PM +1000, Stephen Rothwell wrote:
> > After merging the driver-core tree, today's linux-next build (powerpc
> > ppc64_defconfig) failed like this:
> >
> > cc1: warnings being treated as errors
> > In file included from include/linux/kobject.h:21,
> > from include/linux/device.h:17,
> > from arch/powerpc/lib/devres.c:10:
> > include/linux/sysfs.h:97: error: 'struct file' declared inside parameter list
> > include/linux/sysfs.h:97: error: its scope is only this definition or
> > declaration, which is probably not what you want
> > include/linux/sysfs.h:99: error: 'struct file' declared inside parameter list
> > include/linux/sysfs.h:101: error: 'struct file' declared inside parameter list
> >
> > and many more (arch/powerpc is built with -Werror (as do some other
> > architectures)) and lots of similar warnings ...
>
> Add missing forward declaration
>
> Signed-off-by: Chris Wright <chrisw@sous-sol.org>
Thanks, now merged in.
greg k-h
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: [PATCH] sysfs: compile fix, struct file forward declaration
2010-05-20 17:36 ` Greg KH
@ 2010-05-20 18:39 ` Chris Wright
0 siblings, 0 replies; 8+ messages in thread
From: Chris Wright @ 2010-05-20 18:39 UTC (permalink / raw)
To: Greg KH; +Cc: Chris Wright, Stephen Rothwell, linux-next, linux-kernel
* Greg KH (greg@kroah.com) wrote:
> On Tue, May 18, 2010 at 03:32:19PM -0700, Chris Wright wrote:
> > On Tue, May 18, 2010 at 04:44:09PM +1000, Stephen Rothwell wrote:
> > > After merging the driver-core tree, today's linux-next build (powerpc
> > > ppc64_defconfig) failed like this:
> > >
> > > cc1: warnings being treated as errors
> > > In file included from include/linux/kobject.h:21,
> > > from include/linux/device.h:17,
> > > from arch/powerpc/lib/devres.c:10:
> > > include/linux/sysfs.h:97: error: 'struct file' declared inside parameter list
> > > include/linux/sysfs.h:97: error: its scope is only this definition or
> > > declaration, which is probably not what you want
> > > include/linux/sysfs.h:99: error: 'struct file' declared inside parameter list
> > > include/linux/sysfs.h:101: error: 'struct file' declared inside parameter list
> > >
> > > and many more (arch/powerpc is built with -Werror (as do some other
> > > architectures)) and lots of similar warnings ...
> >
> > Add missing forward declaration
> >
> > Signed-off-by: Chris Wright <chrisw@sous-sol.org>
>
> Thanks, now merged in.
Thanks Greg, sorry about the mess up.
-chris
^ permalink raw reply [flat|nested] 8+ messages in thread
end of thread, other threads:[~2010-05-20 19:39 UTC | newest]
Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-05-18 6:44 linux-next: build failure after merge of the driver-core tree Stephen Rothwell
2010-05-18 14:02 ` Greg KH
2010-05-18 14:04 ` Chris Wright
2010-05-18 21:06 ` Chris Wright
2010-05-18 21:24 ` Greg KH
2010-05-18 22:32 ` [PATCH] sysfs: compile fix, struct file forward declaration Chris Wright
2010-05-20 17:36 ` Greg KH
2010-05-20 18:39 ` Chris Wright
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.