From 88af3f4d9f21bdc64e3881bffd8e9b6510c23915 Mon Sep 17 00:00:00 2001 From: Jon Hunter Date: Tue, 11 Jul 2023 13:41:47 +0100 Subject: [PATCH] crypto: nvvse: Fix compilation warning Building the nvvse-cryptodev driver generates the following warning ... drivers/crypto/tegra-nvvse-cryptodev.c:2118:1: error: the frame size of 2224 bytes is larger than 2048 bytes [-Werror=fra me-larger-than=] 2118 | } | ^ For now allow the frame size to be 2560 bytes to resolve the warning while a proper fix is implemented. Bug 4190030 Change-Id: Id361aebc9f3d83181afc820d8d9cf2ef90e33d55 Signed-off-by: Jon Hunter Reviewed-on: https://git-master.nvidia.com/r/c/linux-nv-oot/+/2934696 Reviewed-by: svcacv Reviewed-by: Manish Bhardwaj GVS: Gerrit_Virtual_Submit --- drivers/crypto/Makefile | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/drivers/crypto/Makefile b/drivers/crypto/Makefile index 36a9bd9c..79c50631 100644 --- a/drivers/crypto/Makefile +++ b/drivers/crypto/Makefile @@ -6,6 +6,10 @@ ccflags-y += -Wno-implicit-fallthrough ifdef CONFIG_TEGRA_HOST1X obj-m += tegra-se-nvhost.o obj-m += tegra-hv-vse-safety.o -obj-m += tegra-nvvse-cryptodev.o endif obj-m += tegra-se-nvrng.o + +ifdef CONFIG_TEGRA_HOST1X +ccflags-y += -Werror=frame-larger-than=2560 +obj-m += tegra-nvvse-cryptodev.o +endif