Re: [PATCH] percpu: cast away printk format warning

From: Mike Frysinger
Date: Tue Mar 22 2011 - 18:20:12 EST

On Tue, Mar 22, 2011 at 17:17, Mike Frysinger wrote:
> On Tue, Mar 22, 2011 at 17:03, Christoph Lameter <wrote:
>> On Tue, 22 Mar 2011, Mike Frysinger wrote:
>>> So add an explicit cast to unsigned long here.
>> I believe we have a format character %t to avoid the cast.
> thanks, i wasnt aware of the ptrdiff_t extension. Âi'll send out an update.

actually, that doesnt work. ptrdiff_t is a type unto itself. in
order for this to work, every arch would need to cast/type
VMALLOC_{START,END} to a pointer type so that they could then be
subtracted. or, add a ptrdiff_t cast to this file ;).
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at
Please read the FAQ at