linux-next: build warning after merge of the ubi tree

From: Stephen Rothwell
Date: Sun Jun 13 2010 - 21:53:59 EST


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@xxxxxxxxxxxxxxxx
http://www.canb.auug.org.au/~sfr/

Attachment: pgp00000.pgp
Description: PGP signature