On Tue, Feb 20, 2018 at 2:22 PM, Matthew Wilcox <willy@xxxxxxxxxxxxx> wrote: > > Actually, I do want bitwise; I'm looking at creating vm_fault_t so that > we don't get fault handlers returning -EFOO instead of VM_FAULT_FOO. Fair enough, that does have bitwise semantics, not just the "don't cast this value implicitly". With traditional enums that really are entirely independent values and aren't mixed together and have no arithmetic done on them, "nocast" really should work. It doesn't. Linus -- To unsubscribe from this list: send the line "unsubscribe linux-sparse" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html