lkml.org 
[lkml]   [2011]   [Mar]   [22]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
From
Date
SubjectRe: [PATCH] percpu: cast away printk format warning
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 ;).
-mike
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
\
 
 \ /
  Last update: 2011-03-22 23:23    [from the cache]
©2003-2014 Jasper Spaans. Advertise on this site