[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-Id: <20100809170709.9c16c756.akpm@linux-foundation.org>
Date: Mon, 9 Aug 2010 17:07:09 -0700
From: Andrew Morton <akpm@...ux-foundation.org>
To: Mike Frysinger <vapier.adi@...il.com>
Cc: linux-kernel@...r.kernel.org
Subject: Re: gpio-addr-flash warnings on x86/highmem (Re: i386 allmodconfig,
current mainline)
On Mon, 9 Aug 2010 19:52:35 -0400
Mike Frysinger <vapier.adi@...il.com> wrote:
> On Mon, Aug 9, 2010 at 19:43, Andrew Morton wrote:
> > Guys. __What's goin' on out there?
> >
> > drivers/mtd/maps/gpio-addr-flash.c: In function 'gpio_flash_probe':
> > drivers/mtd/maps/gpio-addr-flash.c:212: warning: cast to pointer from integer of different size
> > drivers/mtd/maps/gpio-addr-flash.c:224: warning: cast to pointer from integer of different size
>
> i did get a bug report about this in the past, but honestly i havent
> gotten around to fixing the issues. it's been low priority as my
> understanding is that the warning shows up in configurations where the
> driver isnt realistically usable. not making excuses, just laying out
> the reality of things.
Casting a resource_size_t to a kernel pointer is plain naughty.
I guess an acceptable "fix" would be to disable to offending combinations
in Kconfig and add a
BUILD_BUG_ON(sizeof(gpios->start) != sizeof(void *))
to catch stragglers.
But please do fix warnings, if only because the warning storm from
allmodconfig causes people to miss important warnings in all the noise.
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists