public inbox for linux-next@vger.kernel.org
 help / color / mirror / Atom feed
From: Stephen Rothwell <sfr@canb.auug.org.au>
To: Artem Bityutskiy <dedekind1@gmail.com>
Cc: linux-next@vger.kernel.org, linux-kernel@vger.kernel.org,
	Matthieu CASTET <matthieu.castet@parrot.com>
Subject: linux-next: build warning after merge of the ubi tree
Date: Mon, 14 Jun 2010 11:53:39 +1000	[thread overview]
Message-ID: <20100614115339.5dbca9f6.sfr@canb.auug.org.au> (raw)

[-- 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 --]

             reply	other threads:[~2010-06-14  1:53 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-06-14  1:53 Stephen Rothwell [this message]
  -- strict thread matches above, loose matches on Subject: below --
2010-06-14  1:58 linux-next: build warning after merge of the ubi tree Stephen Rothwell
2010-06-14  2:34 ` Artem Bityutskiy

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20100614115339.5dbca9f6.sfr@canb.auug.org.au \
    --to=sfr@canb.auug.org.au \
    --cc=dedekind1@gmail.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-next@vger.kernel.org \
    --cc=matthieu.castet@parrot.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox