kernel_samsung_a53x/drivers/crypto/qat
Giovanni Cabiddu d089036960 crypto: qat - increase size of buffers
[ Upstream commit 4e4e2ed22d505c5bacf65c6a39bfb6d120d24785 ]

Increase the size of the buffers used for composing the names used for
the transport debugfs entries and the vector name to avoid a potential
truncation.

This resolves the following errors when compiling the driver with W=1
and KCFLAGS=-Werror on GCC 12.3.1:

    drivers/crypto/intel/qat/qat_common/adf_transport_debug.c: In function ‘adf_ring_debugfs_add’:
    drivers/crypto/intel/qat/qat_common/adf_transport_debug.c💯60: error: ‘snprintf’ output may be truncated before the last format character [-Werror=format-truncation=]
    drivers/crypto/intel/qat/qat_common/adf_isr.c: In function ‘adf_isr_resource_alloc’:
    drivers/crypto/intel/qat/qat_common/adf_isr.c:197:47: error: ‘%d’ directive output may be truncated writing between 1 and 11 bytes into a region of size between 0 and 5 [-Werror=format-truncation=]

Fixes: a672a9dc872e ("crypto: qat - Intel(R) QAT transport code")
Signed-off-by: Giovanni Cabiddu <giovanni.cabiddu@intel.com>
Reviewed-by: Damian Muszynski <damian.muszynski@intel.com>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
Signed-off-by: Sasha Levin <sashal@kernel.org>
2024-11-18 11:43:03 +01:00
..
qat_c3xxx crypto: qat - mask device capabilities with soft straps 2024-11-18 11:43:03 +01:00
qat_c3xxxvf crypto: qat - mask device capabilities with soft straps 2024-11-18 11:43:03 +01:00
qat_c62x crypto: qat - mask device capabilities with soft straps 2024-11-18 11:43:03 +01:00
qat_c62xvf crypto: qat - mask device capabilities with soft straps 2024-11-18 11:43:03 +01:00
qat_common crypto: qat - increase size of buffers 2024-11-18 11:43:03 +01:00
qat_dh895xcc crypto: qat - mask device capabilities with soft straps 2024-11-18 11:43:03 +01:00
qat_dh895xccvf crypto: qat - mask device capabilities with soft straps 2024-11-18 11:43:03 +01:00
Kconfig Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
Makefile Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00