Fix for OCL issue #968 - GCC 11 compilation error

GCC 11 static check finds an array size mismatch and prevents OCF from
compiling correctly. This fixes OpenCAS Linux issue #968

Signed-off-by: Krzysztof Majzerowicz-Jaszcz <krzysztof.majzerowicz-jaszcz@intel.com>
This commit is contained in:
Krzysztof Majzerowicz-Jaszcz 2021-11-04 15:55:44 +01:00
parent 12c8b4e333
commit 99c54be592

View File

@ -529,7 +529,8 @@ int ocf_metadata_io_ctx_init(struct ocf_ctx *ocf_ctx)
{
uint32_t limits[] = {
[0 ... MIO_RPOOL_THRESHOLD - 1] = -1,
[MIO_RPOOL_THRESHOLD ... ocf_mio_size_max - 1] = MIO_RPOOL_LIMIT
[MIO_RPOOL_THRESHOLD ... ocf_mio_size_max - 1] = MIO_RPOOL_LIMIT,
[ocf_mio_size_max ... env_mpool_max] = -1,
};
ocf_ctx->resources.mio = env_mpool_create(