All of lore.kernel.org
 help / color / mirror / Atom feed
* linux-next: build warning after merge of the ubi tree
@ 2010-06-14  1:58 Stephen Rothwell
  2010-06-14  2:34 ` Artem Bityutskiy
  0 siblings, 1 reply; 3+ messages in thread
From: Stephen Rothwell @ 2010-06-14  1:58 UTC (permalink / raw)
  To: Artem Bityutskiy; +Cc: linux-next, linux-kernel

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

Hi Artem,

After merging the ubi tree, today's linux-next build (x86_64
allmodconfig) produced this warning:

drivers/mtd/ubi/io.c: In function 'ubi_io_read':
drivers/mtd/ubi/io.c:153: warning: initialization makes integer from pointer without a cast
drivers/mtd/ubi/io.c:170: warning: format '%s' expects type 'char *', but argument 5 has type 'int'
drivers/mtd/ubi/io.c:177: warning: format '%zd' expects type 'signed size_t', but argument 7 has type 'int'
drivers/mtd/ubi/io.c:177: warning: too many arguments for format

Introduced by commit 1a49af2ca019dcb4614c32f832bbcb814b61409c ("UBI:
improve ECC error message").
-- 
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] 3+ messages in thread

* Re: linux-next: build warning after merge of the ubi tree
  2010-06-14  1:58 linux-next: build warning after merge of the ubi tree Stephen Rothwell
@ 2010-06-14  2:34 ` Artem Bityutskiy
  0 siblings, 0 replies; 3+ messages in thread
From: Artem Bityutskiy @ 2010-06-14  2:34 UTC (permalink / raw)
  To: Stephen Rothwell; +Cc: linux-next, linux-kernel

On Mon, 2010-06-14 at 11:58 +1000, Stephen Rothwell wrote:
> Hi Artem,
> 
> After merging the ubi tree, today's linux-next build (x86_64
> allmodconfig) produced this warning:
> 
> drivers/mtd/ubi/io.c: In function 'ubi_io_read':
> drivers/mtd/ubi/io.c:153: warning: initialization makes integer from pointer without a cast
> drivers/mtd/ubi/io.c:170: warning: format '%s' expects type 'char *', but argument 5 has type 'int'
> drivers/mtd/ubi/io.c:177: warning: format '%zd' expects type 'signed size_t', but argument 7 has type 'int'
> drivers/mtd/ubi/io.c:177: warning: too many arguments for format
> 
> Introduced by commit 1a49af2ca019dcb4614c32f832bbcb814b61409c ("UBI:
> improve ECC error message").

Thanks Stephen,

I'll take care of these today.

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


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

* linux-next: build warning after merge of the ubi tree
@ 2010-06-14  1:53 Stephen Rothwell
  0 siblings, 0 replies; 3+ messages in thread
From: Stephen Rothwell @ 2010-06-14  1:53 UTC (permalink / raw)
  To: Artem Bityutskiy; +Cc: linux-next, linux-kernel, Matthieu CASTET

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

Hi Artem,

After merging the ubi tree, today's linux-next build (x86_64 allmodconfig)
produced this warning:

drivers/mtd/ubi/scan.c: In function 'check_what_we_have':
drivers/mtd/ubi/scan.c:960: warning: passing argument 1 of 'get_random_bytes' discards qualifiers from pointer target type

Introduced by commit 095751a6e0838a712393a74eb0b7b6559dbdbe81 ("UBI:
generate random image_seq when formatting MTD devices").  "ubi" is
declared const (as a paramater to check_what_we_have()), so
&ubi->image_seq is a pointer to a const int.  get_random_bytes() wants to
modify that ...

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

end of thread, other threads:[~2010-06-14  2:34 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2010-06-14  1:58 linux-next: build warning after merge of the ubi tree Stephen Rothwell
2010-06-14  2:34 ` Artem Bityutskiy
  -- strict thread matches above, loose matches on Subject: below --
2010-06-14  1:53 Stephen Rothwell

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.