2010-01-18 05:24:22

by Stephen Rothwell

[permalink] [raw]
Subject: linux-next: trivial tree build failure

Hi Jiri,

Today's linux-next build (x86_64_allmodconfig) failed like this:

drivers/mfd/ab3100-otp.c: In function 'show_otp':
drivers/mfd/ab3100-otp.c:101: error: dereferencing pointer to incomplete type
drivers/mfd/ab3100-otp.c:104: error: implicit declaration of function 'seq_printf'
drivers/mfd/ab3100-otp.c:102: warning: unused variable 'err'
drivers/mfd/ab3100-otp.c: In function 'ab3100_otp_open':
drivers/mfd/ab3100-otp.c:116: error: implicit declaration of function 'single_open'
drivers/mfd/ab3100-otp.c:116: error: 'ab3100_otp_show' undeclared (first use in this function)
drivers/mfd/ab3100-otp.c: At top level:
drivers/mfd/ab3100-otp.c:121: error: 'seq_read' undeclared here (not in a function)
drivers/mfd/ab3100-otp.c:122: error: 'seq_lseek' undeclared here (not in a function)
drivers/mfd/ab3100-otp.c:123: error: 'single_release' undeclared here (not in a function)
drivers/mfd/ab3100-otp.c: In function 'ab3100_otp_init_debugfs':
drivers/mfd/ab3100-otp.c:134: error: 'err' undeclared (first use in this function)
drivers/mfd/ab3100-otp.c: In function 'ab3100_otp_exit_debugfs':
drivers/mfd/ab3100-otp.c:140: error: implicit declaration of function 'debugfs_remove_file'

Exposed by commit 8dcafdf0475eb4633401d1f0bf0e0d35e4ebb9d5
"CONFIG_DEBUG_FS wrongly written as CONFIG_DEBUGFS".

I have reverted that commit for today.

That file probably just needs to include <linux/seq_file.h> ...

--
Cheers,
Stephen Rothwell [email protected]
http://www.canb.auug.org.au/~sfr/


Attachments:
(No filename) (1.47 kB)
(No filename) (198.00 B)
Download all attachments

2010-01-18 08:44:21

by Linus Walleij

[permalink] [raw]
Subject: Re: linux-next: trivial tree build failure

2010/1/18 Stephen Rothwell <[email protected]>:

> Exposed by commit 8dcafdf0475eb4633401d1f0bf0e0d35e4ebb9d5
> "CONFIG_DEBUG_FS wrongly written as CONFIG_DEBUGFS".
> I have reverted that commit for today.

I have sent a proper patch to Sam last night, that fix the #ifdef and
makes the code work.

> That file probably just needs to include <linux/seq_file.h> ...

Not quite, there was some code rot in the #ifdef:ed code as well.

But it should all be fixed now!

Linus Walleij

2010-01-18 09:01:33

by Stephen Rothwell

[permalink] [raw]
Subject: Re: linux-next: trivial tree build failure

Hi Linus,

On Mon, 18 Jan 2010 09:36:29 +0100 Linus Walleij <[email protected]> wrote:
>
> I have sent a proper patch to Sam last night, that fix the #ifdef and
> makes the code work.
>
> > That file probably just needs to include <linux/seq_file.h> ...
>
> Not quite, there was some code rot in the #ifdef:ed code as well.
>
> But it should all be fixed now!

Excellent, thanks.

--
Cheers,
Stephen Rothwell [email protected]
http://www.canb.auug.org.au/~sfr/


Attachments:
(No filename) (496.00 B)
(No filename) (198.00 B)
Download all attachments

2010-01-18 10:17:24

by Jiri Kosina

[permalink] [raw]
Subject: Re: linux-next: trivial tree build failure

On Mon, 18 Jan 2010, Stephen Rothwell wrote:

> Hi Jiri,
>
> Today's linux-next build (x86_64_allmodconfig) failed like this:
>
> drivers/mfd/ab3100-otp.c: In function 'show_otp':
> drivers/mfd/ab3100-otp.c:101: error: dereferencing pointer to incomplete type
> drivers/mfd/ab3100-otp.c:104: error: implicit declaration of function 'seq_printf'
> drivers/mfd/ab3100-otp.c:102: warning: unused variable 'err'
> drivers/mfd/ab3100-otp.c: In function 'ab3100_otp_open':
> drivers/mfd/ab3100-otp.c:116: error: implicit declaration of function 'single_open'
> drivers/mfd/ab3100-otp.c:116: error: 'ab3100_otp_show' undeclared (first use in this function)
> drivers/mfd/ab3100-otp.c: At top level:
> drivers/mfd/ab3100-otp.c:121: error: 'seq_read' undeclared here (not in a function)
> drivers/mfd/ab3100-otp.c:122: error: 'seq_lseek' undeclared here (not in a function)
> drivers/mfd/ab3100-otp.c:123: error: 'single_release' undeclared here (not in a function)
> drivers/mfd/ab3100-otp.c: In function 'ab3100_otp_init_debugfs':
> drivers/mfd/ab3100-otp.c:134: error: 'err' undeclared (first use in this function)
> drivers/mfd/ab3100-otp.c: In function 'ab3100_otp_exit_debugfs':
> drivers/mfd/ab3100-otp.c:140: error: implicit declaration of function 'debugfs_remove_file'
>
> Exposed by commit 8dcafdf0475eb4633401d1f0bf0e0d35e4ebb9d5
> "CONFIG_DEBUG_FS wrongly written as CONFIG_DEBUGFS".

Hmm, mea culpa. I have noticed the build failure myself and notified patch
author about that, but forgot to drop the patch from my tree afterwards.
Sorry.

On Mon, 18 Jan 2010, Linus Walleij wrote:

> 2010/1/18 Stephen Rothwell <[email protected]>:
>
> > Exposed by commit 8dcafdf0475eb4633401d1f0bf0e0d35e4ebb9d5
> > "CONFIG_DEBUG_FS wrongly written as CONFIG_DEBUGFS".
> > I have reverted that commit for today.
>
> I have sent a proper patch to Sam last night, that fix the #ifdef and
> makes the code work.

I have dropped the patch from my tree now, and I am not carrying any
replacement as of now.

--
Jiri Kosina
SUSE Labs, Novell Inc.

2010-01-18 12:55:01

by Samuel Ortiz

[permalink] [raw]
Subject: Re: linux-next: trivial tree build failure

Hi Jiri,

On Mon, Jan 18, 2010 at 11:17:19AM +0100, Jiri Kosina wrote:
> On Mon, 18 Jan 2010, Stephen Rothwell wrote:
>
> > Hi Jiri,
> >
> > Today's linux-next build (x86_64_allmodconfig) failed like this:
> >
> > drivers/mfd/ab3100-otp.c: In function 'show_otp':
> > drivers/mfd/ab3100-otp.c:101: error: dereferencing pointer to incomplete type
> > drivers/mfd/ab3100-otp.c:104: error: implicit declaration of function 'seq_printf'
> > drivers/mfd/ab3100-otp.c:102: warning: unused variable 'err'
> > drivers/mfd/ab3100-otp.c: In function 'ab3100_otp_open':
> > drivers/mfd/ab3100-otp.c:116: error: implicit declaration of function 'single_open'
> > drivers/mfd/ab3100-otp.c:116: error: 'ab3100_otp_show' undeclared (first use in this function)
> > drivers/mfd/ab3100-otp.c: At top level:
> > drivers/mfd/ab3100-otp.c:121: error: 'seq_read' undeclared here (not in a function)
> > drivers/mfd/ab3100-otp.c:122: error: 'seq_lseek' undeclared here (not in a function)
> > drivers/mfd/ab3100-otp.c:123: error: 'single_release' undeclared here (not in a function)
> > drivers/mfd/ab3100-otp.c: In function 'ab3100_otp_init_debugfs':
> > drivers/mfd/ab3100-otp.c:134: error: 'err' undeclared (first use in this function)
> > drivers/mfd/ab3100-otp.c: In function 'ab3100_otp_exit_debugfs':
> > drivers/mfd/ab3100-otp.c:140: error: implicit declaration of function 'debugfs_remove_file'
> >
> > Exposed by commit 8dcafdf0475eb4633401d1f0bf0e0d35e4ebb9d5
> > "CONFIG_DEBUG_FS wrongly written as CONFIG_DEBUGFS".
>
> Hmm, mea culpa. I have noticed the build failure myself and notified patch
> author about that, but forgot to drop the patch from my tree afterwards.
> Sorry.
>
> On Mon, 18 Jan 2010, Linus Walleij wrote:
>
> > 2010/1/18 Stephen Rothwell <[email protected]>:
> >
> > > Exposed by commit 8dcafdf0475eb4633401d1f0bf0e0d35e4ebb9d5
> > > "CONFIG_DEBUG_FS wrongly written as CONFIG_DEBUGFS".
> > > I have reverted that commit for today.
> >
> > I have sent a proper patch to Sam last night, that fix the #ifdef and
> > makes the code work.
>
> I have dropped the patch from my tree now, and I am not carrying any
> replacement as of now.
I'm carrying Linus patch for it, thanks.

Cheers,
Samuel.


> --
> Jiri Kosina
> SUSE Labs, Novell Inc.

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

2010-01-18 23:41:13

by Stephen Rothwell

[permalink] [raw]
Subject: Re: linux-next: trivial tree build failure

Hi Sam, Jiri,

On Mon, 18 Jan 2010 13:56:30 +0100 Samuel Ortiz <[email protected]> wrote:
>
> > I have dropped the patch from my tree now, and I am not carrying any
> > replacement as of now.
> I'm carrying Linus patch for it, thanks.

OK, thanks guys.

--
Cheers,
Stephen Rothwell [email protected]
http://www.canb.auug.org.au/~sfr/


Attachments:
(No filename) (362.00 B)
(No filename) (198.00 B)
Download all attachments