Merge pull request #587 from Open-CAS/gcc_11_fix

Fix for OCL issue #968 -  GCC 11 compilation error
This commit is contained in:
Robert Baldyga 2021-11-08 13:34:52 +01:00 committed by GitHub
commit 5cbbfdd5ca
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -529,7 +529,8 @@ int ocf_metadata_io_ctx_init(struct ocf_ctx *ocf_ctx)
{ {
uint32_t limits[] = { uint32_t limits[] = {
[0 ... MIO_RPOOL_THRESHOLD - 1] = -1, [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( ocf_ctx->resources.mio = env_mpool_create(