Re: [PATCH] IB/core: Fix different types mix in ib_device_cap_flags structure values

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

 



On Tue, May 31, 2016 at 12:21:00PM -0600, Jason Gunthorpe wrote:
> On Tue, May 31, 2016 at 09:12:23PM +0300, Leon Romanovsky wrote:
> 
> > I understand from the description/standards that first enum declares
> > type.
> 
> No, you quoted the relevant standard:
> 
> .. but shall be capable of representing the values of all the members
>   of the enumeration. ..
> 
> Truncation is not allowed.

I'm not convinced that it talks about truncation.

From the same document:
"The expression that defines the value of an enumeration constant shall
be an integer constant expression that has a value representable as an
int."

> 
> Jason

Attachment: signature.asc
Description: Digital signature


[Index of Archives]     [Linux Kernel]     [Kernel Development Newbies]     [Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Yosemite Hiking]     [Linux Kernel]     [Linux SCSI]