RE: [PATCH] RDMA/siw: Fix compiler warnings on 32-bit due to u64/pointer abuse

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



From: Geert Uytterhoeven
> Sent: 19 August 2019 18:15
...
> > I think a cast to unsigned long is rather more common.
> >
> > uintptr_t is used ~1300 times in the kernel.
> > I believe a cast to unsigned long is much more common.
> 
> That is true, as uintptr_t was introduced in C99.
> Similarly, unsigned long was used before size_t became common.
> 
> However, nowadays size_t and uintptr_t are preferred.

Isn't uintptr_t defined by the same standard as uint32_t?
If the former is allowed so should the latter.

	David

-
Registered Address Lakeside, Bramley Road, Mount Farm, Milton Keynes, MK1 1PT, UK
Registration No: 1397386 (Wales)




[Index of Archives]     [Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Photo]     [Yosemite News]     [Yosemite Photos]     [Linux Kernel]     [Linux SCSI]     [XFree86]

  Powered by Linux