From 1df2ef7d236d83155b525a0a1a6bab6a4580f5a1 Mon Sep 17 00:00:00 2001 From: Jian-Min Liu Date: Wed, 9 Aug 2023 18:09:57 +0000 Subject: [PATCH] nvidia-oot: Fix compilation warning for ack build Refine the compiler flags for ACK make command and fix compilation warnings from the new command. Bug 4187941 Bug 4223187 Signed-off-by: Jian-Min Liu Change-Id: Iff7bf5839c585a6c3d3ef6daefb64eb113c739e2 Reviewed-on: https://git-master.nvidia.com/r/c/linux-nv-oot/+/2954087 Reviewed-by: Laxman Dewangan GVS: Gerrit_Virtual_Submit --- Makefile | 8 ++++++++ drivers/crypto/Makefile | 2 ++ 2 files changed, 10 insertions(+) diff --git a/Makefile b/Makefile index 7381d225..4947798f 100644 --- a/Makefile +++ b/Makefile @@ -9,6 +9,14 @@ ifeq ($(CONFIG_TEGRA_VIRTUALIZATION),y) subdir-ccflags-y += -DCONFIG_TEGRA_VIRTUALIZATION endif +ifeq ($(CONFIG_TEGRA_SYSTEM_TYPE_ACK),y) +subdir-ccflags-y += -DNV_BUILD_KERNEL_ACK +subdir-ccflags-y += -Wno-sometimes-uninitialized +subdir-ccflags-y += -Wno-parentheses-equality +subdir-ccflags-y += -Wno-enum-conversion +subdir-ccflags-y += -Wno-implicit-fallthrough +endif + obj-m += drivers/ ifdef CONFIG_SOUND diff --git a/drivers/crypto/Makefile b/drivers/crypto/Makefile index e0fef057..fbe46cd8 100644 --- a/drivers/crypto/Makefile +++ b/drivers/crypto/Makefile @@ -8,6 +8,8 @@ endif obj-m += tegra-se-nvrng.o ifdef CONFIG_TEGRA_HOST1X +ifneq ($(CONFIG_TEGRA_SYSTEM_TYPE_ACK),y) ccflags-y += -Wframe-larger-than=2560 +endif obj-m += tegra-nvvse-cryptodev.o endif