linux-next.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* linux-next: ubi tree build warnings
@ 2009-07-08  3:09 Stephen Rothwell
  2009-07-08  4:45 ` Artem Bityutskiy
  2009-07-08  5:29 ` Artem Bityutskiy
  0 siblings, 2 replies; 4+ messages in thread
From: Stephen Rothwell @ 2009-07-08  3:09 UTC (permalink / raw)
  To: Artem Bityutskiy; +Cc: linux-next, linux-kernel

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

Hi Artem,

Today's linux-next build (x86_64 allmodconfig) produced these warnings:

drivers/mtd/ubi/io.c: In function 'nor_erase_prepare':
drivers/mtd/ubi/io.c:484: warning: passing argument 5 of 'ubi->mtd->write' from incompatible pointer type
drivers/mtd/ubi/io.c:484: note: expected 'const u_char *' but argument is of type 'uint32_t *'
drivers/mtd/ubi/io.c:486: warning: format '%zd' expects type 'signed size_t', but argument 5 has type 'int'
drivers/mtd/ubi/io.c:486: warning: too many arguments for format
drivers/mtd/ubi/io.c:493: warning: passing argument 5 of 'ubi->mtd->write' from incompatible pointer type
drivers/mtd/ubi/io.c:493: note: expected 'const u_char *' but argument is of type 'uint32_t *'

Introduced by commit ebf53f421308c2f59c9bcbad4c5c297a0d00199a ("UBI: fix
NOR flash recovery").

-- 
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] 4+ messages in thread

* Re: linux-next: ubi tree build warnings
  2009-07-08  3:09 linux-next: ubi tree build warnings Stephen Rothwell
@ 2009-07-08  4:45 ` Artem Bityutskiy
  2009-07-08  4:58   ` Stephen Rothwell
  2009-07-08  5:29 ` Artem Bityutskiy
  1 sibling, 1 reply; 4+ messages in thread
From: Artem Bityutskiy @ 2009-07-08  4:45 UTC (permalink / raw)
  To: Stephen Rothwell; +Cc: linux-next@vger.kernel.org, linux-kernel@vger.kernel.org

ext Stephen Rothwell wrote:
> Hi Artem,
> 
> Today's linux-next build (x86_64 allmodconfig) produced these warnings:
> 
> drivers/mtd/ubi/io.c: In function 'nor_erase_prepare':
> drivers/mtd/ubi/io.c:484: warning: passing argument 5 of 'ubi->mtd->write' from incompatible pointer type
> drivers/mtd/ubi/io.c:484: note: expected 'const u_char *' but argument is of type 'uint32_t *'
> drivers/mtd/ubi/io.c:486: warning: format '%zd' expects type 'signed size_t', but argument 5 has type 'int'
> drivers/mtd/ubi/io.c:486: warning: too many arguments for format
> drivers/mtd/ubi/io.c:493: warning: passing argument 5 of 'ubi->mtd->write' from incompatible pointer type
> drivers/mtd/ubi/io.c:493: note: expected 'const u_char *' but argument is of type 'uint32_t *'
> 
> Introduced by commit ebf53f421308c2f59c9bcbad4c5c297a0d00199a ("UBI: fix
> NOR flash recovery").

Will fix ASAP, thank you! I'm always wondering how you manage
to reproduce warnings I do not see.

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

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

* Re: linux-next: ubi tree build warnings
  2009-07-08  4:45 ` Artem Bityutskiy
@ 2009-07-08  4:58   ` Stephen Rothwell
  0 siblings, 0 replies; 4+ messages in thread
From: Stephen Rothwell @ 2009-07-08  4:58 UTC (permalink / raw)
  To: Artem.Bityutskiy; +Cc: linux-next@vger.kernel.org, linux-kernel@vger.kernel.org

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

Hi Artem,

On Wed, 08 Jul 2009 07:45:06 +0300 Artem Bityutskiy <Artem.Bityutskiy@nokia.com> wrote:
>
> Will fix ASAP, thank you! I'm always wondering how you manage
> to reproduce warnings I do not see.

Probably a different config or compiler (I am using gcc 4.4.0).

-- 
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] 4+ messages in thread

* Re: linux-next: ubi tree build warnings
  2009-07-08  3:09 linux-next: ubi tree build warnings Stephen Rothwell
  2009-07-08  4:45 ` Artem Bityutskiy
@ 2009-07-08  5:29 ` Artem Bityutskiy
  1 sibling, 0 replies; 4+ messages in thread
From: Artem Bityutskiy @ 2009-07-08  5:29 UTC (permalink / raw)
  To: Stephen Rothwell; +Cc: Artem Bityutskiy, linux-next, linux-kernel

Stephen Rothwell wrote:
> Hi Artem,
> 
> Today's linux-next build (x86_64 allmodconfig) produced these warnings:
> 
> drivers/mtd/ubi/io.c: In function 'nor_erase_prepare':
> drivers/mtd/ubi/io.c:484: warning: passing argument 5 of 'ubi->mtd->write' from incompatible pointer type
> drivers/mtd/ubi/io.c:484: note: expected 'const u_char *' but argument is of type 'uint32_t *'
> drivers/mtd/ubi/io.c:486: warning: format '%zd' expects type 'signed size_t', but argument 5 has type 'int'
> drivers/mtd/ubi/io.c:486: warning: too many arguments for format
> drivers/mtd/ubi/io.c:493: warning: passing argument 5 of 'ubi->mtd->write' from incompatible pointer type
> drivers/mtd/ubi/io.c:493: note: expected 'const u_char *' but argument is of type 'uint32_t *'
> 
> Introduced by commit ebf53f421308c2f59c9bcbad4c5c297a0d00199a ("UBI: fix
> NOR flash recovery").

Fixed the warnings. In fact I do see them, but did not notice
them before. Thanks a lot for catching this and keeping our
kernel clean.

Pushed the fix:
http://git.infradead.org/ubi-2.6.git?a=commit;h=83c2099f5e1f0a4621ed4f20fc539069c636a24b

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

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

end of thread, other threads:[~2009-07-08  5:29 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-07-08  3:09 linux-next: ubi tree build warnings Stephen Rothwell
2009-07-08  4:45 ` Artem Bityutskiy
2009-07-08  4:58   ` Stephen Rothwell
2009-07-08  5:29 ` Artem Bityutskiy

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).