On Tue, Dec 27, 2022 at 09:49:15AM -0700, Keith Busch wrote: > > and drop the min_t here. Instead of working around type mismatches > > just avoid them from the beginning.. > > Let me just make sure I understand: you don't want BLK_DEF_MAX_SECTORS > defined in an enum, and instead want it a 'const unsigned int'? Or > #define? Just make sure it's marked as unsigned, either and enum or define works, just make sure it has the u suffix. Note that for enums recent gccs enforce the same type over different embers, so you might have to split it from an existing catchall enum into a separate one.