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:
parent
12c8b4e333
commit
99c54be592
@ -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(
|
||||||
|
Loading…
Reference in New Issue
Block a user