All of lore.kernel.org
 help / color / mirror / Atom feed
* linux-next: ubi tree build failure
@ 2009-06-03  8:44 Stephen Rothwell
  2009-06-03  8:46 ` Artem Bityutskiy
  2009-06-03 11:26 ` Artem Bityutskiy
  0 siblings, 2 replies; 8+ messages in thread
From: Stephen Rothwell @ 2009-06-03  8:44 UTC (permalink / raw)
  To: Artem Bityutskiy; +Cc: linux-next, linux-kernel, Dmitry Pervushin

[-- Attachment #1: Type: text/plain, Size: 795 bytes --]

Hi Artem,

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

drivers/mtd/ubi/gluebi.c: In function 'gluebi_get_device':
drivers/mtd/ubi/gluebi.c:126: error: implicit declaration of function 'IS_ERR'
drivers/mtd/ubi/gluebi.c:129: error: implicit declaration of function 'PTR_ERR'

Introduced by commit ec5c514efde253de7f28668c88bbae26d2a293de ("UBI: make
gluebi a separate module") from the ubi tree.  I guess the conversion
managed to remove an implicit include of linux/err.h.

I have reverted that commit for today.  I then needed to also revert
commit 518ceef0c9ca97023e45ae46aedaefa240c690a6 ("UBI: remove built-in
gluebi") to make it build again.
-- 
Cheers,
Stephen Rothwell                    sfr@canb.auug.org.au
http://www.canb.auug.org.au/~sfr/

[-- Attachment #2: Type: application/pgp-signature, Size: 197 bytes --]

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

* Re: linux-next: ubi tree build failure
  2009-06-03  8:44 linux-next: ubi tree build failure Stephen Rothwell
@ 2009-06-03  8:46 ` Artem Bityutskiy
  2009-06-03 11:26 ` Artem Bityutskiy
  1 sibling, 0 replies; 8+ messages in thread
From: Artem Bityutskiy @ 2009-06-03  8:46 UTC (permalink / raw)
  To: ext Stephen Rothwell; +Cc: linux-next, linux-kernel, Dmitry Pervushin

Hi,

Stephen Rothwell wrote:
> Today's linux-next build (powerpc ppc44x_defconfig) failed like this:
> 
> drivers/mtd/ubi/gluebi.c: In function 'gluebi_get_device':
> drivers/mtd/ubi/gluebi.c:126: error: implicit declaration of function 'IS_ERR'
> drivers/mtd/ubi/gluebi.c:129: error: implicit declaration of function 'PTR_ERR'
> 
> Introduced by commit ec5c514efde253de7f28668c88bbae26d2a293de ("UBI: make
> gluebi a separate module") from the ubi tree.  I guess the conversion
> managed to remove an implicit include of linux/err.h.
> 
> I have reverted that commit for today.  I then needed to also revert
> commit 518ceef0c9ca97023e45ae46aedaefa240c690a6 ("UBI: remove built-in
> gluebi") to make it build again.

My fault. Will be fixed shortly, thank you!

-- 
Best Regards,
Artem Bityutskiy (Артём Битюцкий)

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

* Re: linux-next: ubi tree build failure
  2009-06-03  8:44 linux-next: ubi tree build failure Stephen Rothwell
  2009-06-03  8:46 ` Artem Bityutskiy
@ 2009-06-03 11:26 ` Artem Bityutskiy
  2009-06-03 12:55   ` Artem Bityutskiy
  2009-06-05  0:58   ` Stephen Rothwell
  1 sibling, 2 replies; 8+ messages in thread
From: Artem Bityutskiy @ 2009-06-03 11:26 UTC (permalink / raw)
  To: Stephen Rothwell; +Cc: linux-next, linux-kernel, Dmitry Pervushin

Stephen Rothwell wrote:
> Today's linux-next build (powerpc ppc44x_defconfig) failed like this:
> 
> drivers/mtd/ubi/gluebi.c: In function 'gluebi_get_device':
> drivers/mtd/ubi/gluebi.c:126: error: implicit declaration of function 'IS_ERR'
> drivers/mtd/ubi/gluebi.c:129: error: implicit declaration of function 'PTR_ERR'

It is strange that I do not see these errors on my x86_86

> Introduced by commit ec5c514efde253de7f28668c88bbae26d2a293de ("UBI: make
> gluebi a separate module") from the ubi tree.  I guess the conversion
> managed to remove an implicit include of linux/err.h.
> 
> I have reverted that commit for today.  I then needed to also revert
> commit 518ceef0c9ca97023e45ae46aedaefa240c690a6 ("UBI: remove built-in
> gluebi") to make it build again.

Hmm, this means bisection problems, which I'd also like to fix.
But this commit builds just fine for me as well. Would be nice
to see what are the errors.

Any suggestions what I could do to reproduce the build issues?
I'll try at least now to build this on x86 (32-bit). 

-- 
Best Regards,
Artem Bityutskiy (Артём Битюцкий)

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

* Re: linux-next: ubi tree build failure
  2009-06-03 11:26 ` Artem Bityutskiy
@ 2009-06-03 12:55   ` Artem Bityutskiy
  2009-06-03 13:05     ` dmitry pervushin
  2009-06-05  0:58   ` Stephen Rothwell
  1 sibling, 1 reply; 8+ messages in thread
From: Artem Bityutskiy @ 2009-06-03 12:55 UTC (permalink / raw)
  To: Stephen Rothwell; +Cc: linux-next, linux-kernel, Dmitry Pervushin

Artem Bityutskiy wrote:
> Stephen Rothwell wrote:
>> Today's linux-next build (powerpc ppc44x_defconfig) failed like this:
>>
>> drivers/mtd/ubi/gluebi.c: In function 'gluebi_get_device':
>> drivers/mtd/ubi/gluebi.c:126: error: implicit declaration of function 'IS_ERR'
>> drivers/mtd/ubi/gluebi.c:129: error: implicit declaration of function 'PTR_ERR'
> 
> It is strange that I do not see these errors on my x86_86
> 
>> Introduced by commit ec5c514efde253de7f28668c88bbae26d2a293de ("UBI: make
>> gluebi a separate module") from the ubi tree.  I guess the conversion
>> managed to remove an implicit include of linux/err.h.
>>
>> I have reverted that commit for today.  I then needed to also revert
>> commit 518ceef0c9ca97023e45ae46aedaefa240c690a6 ("UBI: remove built-in
>> gluebi") to make it build again.
> 
> Hmm, this means bisection problems, which I'd also like to fix.
> But this commit builds just fine for me as well. Would be nice
> to see what are the errors.
> 
> Any suggestions what I could do to reproduce the build issues?
> I'll try at least now to build this on x86 (32-bit). 

Did not see compile error on x86 as well. Anyway, I have added more
includes which seem to be missed. Hopefully this problem is fixed
now. Thanks!

-- 
Best Regards,
Artem Bityutskiy (Артём Битюцкий)

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

* Re: linux-next: ubi tree build failure
  2009-06-03 12:55   ` Artem Bityutskiy
@ 2009-06-03 13:05     ` dmitry pervushin
  2009-06-03 13:07       ` Artem Bityutskiy
  0 siblings, 1 reply; 8+ messages in thread
From: dmitry pervushin @ 2009-06-03 13:05 UTC (permalink / raw)
  To: Artem.Bityutskiy; +Cc: Stephen Rothwell, linux-next, linux-kernel

On Wed, 2009-06-03 at 15:55 +0300, Artem Bityutskiy wrote:
> Did not see compile error on x86 as well. Anyway, I have added more
> includes which seem to be missed. Hopefully this problem is fixed
> now. Thanks!
however it builds ok on arm too, adding #include <linux/err.h> should
fix this..



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

* Re: linux-next: ubi tree build failure
  2009-06-03 13:05     ` dmitry pervushin
@ 2009-06-03 13:07       ` Artem Bityutskiy
  0 siblings, 0 replies; 8+ messages in thread
From: Artem Bityutskiy @ 2009-06-03 13:07 UTC (permalink / raw)
  To: dpervushin; +Cc: Stephen Rothwell, linux-next, linux-kernel

dmitry pervushin wrote:
> On Wed, 2009-06-03 at 15:55 +0300, Artem Bityutskiy wrote:
>> Did not see compile error on x86 as well. Anyway, I have added more
>> includes which seem to be missed. Hopefully this problem is fixed
>> now. Thanks!
> however it builds ok on arm too, adding #include <linux/err.h> should
> fix this..

Yeah, just did this. Added also linux/mutex.h which we also missed.

-- 
Best Regards,
Artem Bityutskiy (Артём Битюцкий)

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

* Re: linux-next: ubi tree build failure
  2009-06-03 11:26 ` Artem Bityutskiy
  2009-06-03 12:55   ` Artem Bityutskiy
@ 2009-06-05  0:58   ` Stephen Rothwell
  2009-06-05  5:54     ` Artem Bityutskiy
  1 sibling, 1 reply; 8+ messages in thread
From: Stephen Rothwell @ 2009-06-05  0:58 UTC (permalink / raw)
  To: Artem.Bityutskiy; +Cc: linux-next, linux-kernel, Dmitry Pervushin

[-- Attachment #1: Type: text/plain, Size: 1202 bytes --]

Hi Artem,

On Wed, 03 Jun 2009 14:26:46 +0300 Artem Bityutskiy <Artem.Bityutskiy@nokia.com> wrote:
>
> Stephen Rothwell wrote:
> > Today's linux-next build (powerpc ppc44x_defconfig) failed like this:
> > 
> > drivers/mtd/ubi/gluebi.c: In function 'gluebi_get_device':
> > drivers/mtd/ubi/gluebi.c:126: error: implicit declaration of function 'IS_ERR'
> > drivers/mtd/ubi/gluebi.c:129: error: implicit declaration of function 'PTR_ERR'
> 
> It is strange that I do not see these errors on my x86_86

The above was a build for a 32 bit powerpc platform.  This is an instance
of a general issue when an API is used without explicitly including the
header files that define the API.  The needed header file may be included
by some convoluted path that depends on the architecture being built or
even the particular configuration.

> Any suggestions what I could do to reproduce the build issues?
> I'll try at least now to build this on x86 (32-bit). 

Always directly include the header files for APIs you use ...

I see that this particular problem is now fixed, thanks.
-- 
Cheers,
Stephen Rothwell                    sfr@canb.auug.org.au
http://www.canb.auug.org.au/~sfr/

[-- Attachment #2: Type: application/pgp-signature, Size: 197 bytes --]

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

* Re: linux-next: ubi tree build failure
  2009-06-05  0:58   ` Stephen Rothwell
@ 2009-06-05  5:54     ` Artem Bityutskiy
  0 siblings, 0 replies; 8+ messages in thread
From: Artem Bityutskiy @ 2009-06-05  5:54 UTC (permalink / raw)
  To: Stephen Rothwell; +Cc: linux-next, linux-kernel, Dmitry Pervushin

Stephen Rothwell wrote:
> Always directly include the header files for APIs you use ...

Yes, right, those were forgotten.

> I see that this particular problem is now fixed, thanks.

Good, thanks!

-- 
Best Regards,
Artem Bityutskiy (Артём Битюцкий)

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

end of thread, other threads:[~2009-06-05  5:55 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2009-06-03  8:44 linux-next: ubi tree build failure Stephen Rothwell
2009-06-03  8:46 ` Artem Bityutskiy
2009-06-03 11:26 ` Artem Bityutskiy
2009-06-03 12:55   ` Artem Bityutskiy
2009-06-03 13:05     ` dmitry pervushin
2009-06-03 13:07       ` Artem Bityutskiy
2009-06-05  0:58   ` Stephen Rothwell
2009-06-05  5:54     ` Artem Bityutskiy

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.