Which is clearly wrong. This is because signed int becomes sign
extended when converted to uint64_t, corrupting the upper bits.
Since adding the ULL's doesn't make the enum constants have uniform
type I would not bother with the churn.
tested this with single casting to IB_DEVICE_ON_DEMAND_PAGING (1 << 31)
to (1ULL << 31). works fine.
I'll send another patch today.
Good to know, thanks Max.
--
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