lkml.org 
[lkml]   [2011]   [May]   [8]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [PATCH] usb: fix warning in usbtest module
On Sat, 7 May 2011, Greg Dietsche wrote:

> On amd64 unsigned is not as wide as pointer and this causes
> a compiler warning. Switching to uintptr_t fixes the problem
> in an arch independent manner.

People tend to prefer to see non-typedef'ed type names, whenever
possible. In this case, it would be enough to change the type to
unsigned long.

Lots of code throughout the kernel stores pointer values in unsigned
long variables. I've never heard any recommendation for using
uintptr_t instead.

Alan Stern



\
 
 \ /
  Last update: 2011-05-08 16:41    [W:0.082 / U:0.032 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site