[PATCH v3 02/25] util: virtypedparam: Use proper enum type for all switch() statements