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