10/11/2020 17:04, Viacheslav Ovsiienko: > +void * > +mlx5_devx_alloc_uar(void *ctx, int mapping) > +{ > + void *uar; > + uint32_t retry, uar_mapping; > + void *base_addr; > + > + for (retry = 0; retry < MLX5_ALLOC_UAR_RETRY; ++retry) { > +#ifdef MLX5DV_UAR_ALLOC_TYPE_NC > + /* Control the mapping type according to the settings. */ > + uar_mapping = (mapping < 0) ? > + MLX5DV_UAR_ALLOC_TYPE_NC : mapping; > +#else > + /* > + * It seems we have no way to control the memory mapping type > + * for the UAR, the default "Write-Combining" type is supposed. > + */ > + uar_mapping = 0; > +#endif
A failure was reported by the CI: error: unused parameter ‘mapping’ It is fixed while merging by adding the below in the #else case: RTE_SET_USED(mapping); Please take care of CI results!