From 6a5af0059c2025d3b1b6e27b60991a746eb76d5a Mon Sep 17 00:00:00 2001 From: Revanth Kumar Uppala Date: Tue, 23 Apr 2024 11:42:06 +0530 Subject: [PATCH] rtl8822ce: Bypass warnings with compiler flags Below compiler flags are being enabled to bypass the warnings that are seen while building rtl8822ce driver for Kernels 6.x. -Wno-missing-declarations -Wno-address -Wno-stringop-overread These flags will be removed after realtek fixes them in later versions. Bug 3961963 Change-Id: Iadcd92b474f3ed299e9e3d3bb87212908e3e862c Signed-off-by: Revanth Kumar Uppala Reviewed-on: https://git-master.nvidia.com/r/c/linux-nv-oot/+/3121458 GVS: Gerrit_Virtual_Submit Reviewed-by: Brad Griffis Reviewed-by: Shobek Attupurath --- drivers/net/wireless/realtek/rtl8822ce/Makefile | 3 +++ 1 file changed, 3 insertions(+) diff --git a/drivers/net/wireless/realtek/rtl8822ce/Makefile b/drivers/net/wireless/realtek/rtl8822ce/Makefile index 3cab6b3b..78d2699d 100644 --- a/drivers/net/wireless/realtek/rtl8822ce/Makefile +++ b/drivers/net/wireless/realtek/rtl8822ce/Makefile @@ -15,6 +15,9 @@ EXTRA_CFLAGS += -Wno-unused-variable #EXTRA_CFLAGS += -Wno-unused #EXTRA_CFLAGS += -Wno-uninitialized EXTRA_CFLAGS += -Wno-missing-prototypes +EXTRA_CFLAGS += -Wno-missing-declarations +EXTRA_CFLAGS += -Wno-address +EXTRA_CFLAGS += -Wno-stringop-overread GCC_VER_49 := $(shell echo `$(CC) -dumpversion | cut -f1-2 -d.` \>= 4.9 | bc ) ifeq ($(GCC_VER_49),1)