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 05/31/2016 11:12 AM, Leon Romanovsky wrote:
I understand from the description/standards that first enum declares
type.

From http://www.open-std.org/jtc1/sc22/wg14/www/docs/n1570.pdf: "The expression that defines the value of an enumeration constant shall be an integer constant expression that has a value representable as an int."

Since int is in bold in that phrase I assume these three letters refer to the int data type. And since sizeof(int) == 4 for many Linux architectures, including x86-64, shouldn't enum ib_device_cap_flags be converted into something else than an enum?

Bart.
--
To unsubscribe from this list: send the line "unsubscribe stable" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html




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