mirror of
git://nv-tegra.nvidia.com/linux-nv-oot.git
synced 2025-12-22 17:25:35 +03:00
nvethernet: use -mno-outline-atomics for android kernel
Previously, this option was disabled because the clang version used was too old (clang-r370808, clang 10). This option has been supported since clang-r416183b, clang 12. In order to avoid potential build errors, this option is re-enabled. Bug 5289423 Change-Id: I1d0fd5a3dfdff06e95eeca13f85a263922c6ecaf Signed-off-by: Jian-Min Liu <jianminl@nvidia.com> Reviewed-on: https://git-master.nvidia.com/r/c/linux-nv-oot/+/3371014 Reviewed-by: Ankita Garg <ankitag@nvidia.com> GVS: buildbot_gerritrpt <buildbot_gerritrpt@nvidia.com>
This commit is contained in:
@@ -15,14 +15,9 @@ ifeq ($(CONFIG_TEGRA_NVPPS),y)
|
|||||||
ccflags-y += -DCONFIG_TEGRA_NVPPS
|
ccflags-y += -DCONFIG_TEGRA_NVPPS
|
||||||
endif
|
endif
|
||||||
|
|
||||||
ifndef CONFIG_TEGRA_SYSTEM_TYPE_ACK
|
|
||||||
# These CFLAGS must not be shared/used in OSI. These are local to Linux
|
# These CFLAGS must not be shared/used in OSI. These are local to Linux
|
||||||
ccflags-y += -DLINUX_OS -DNET30 -DNVPKCS_MACSEC -DLINUX_IVC -mno-outline-atomics -Werror \
|
ccflags-y += -DLINUX_OS -DNET30 -DNVPKCS_MACSEC -DLINUX_IVC -mno-outline-atomics -Werror \
|
||||||
-I$(srctree.nvidia-oot)/drivers/net/ethernet/nvidia/nvethernet/nvethernetrm/include
|
-I$(srctree.nvidia-oot)/drivers/net/ethernet/nvidia/nvethernet/nvethernetrm/include
|
||||||
else
|
|
||||||
ccflags-y += -DLINUX_OS -DNET30 -DNVPKCS_MACSEC -DLINUX_IVC \
|
|
||||||
-I$(srctree.nvidia-oot)/drivers/net/ethernet/nvidia/nvethernet/nvethernetrm/include
|
|
||||||
endif
|
|
||||||
|
|
||||||
ifdef CONFIG_KASAN
|
ifdef CONFIG_KASAN
|
||||||
ccflags-y += -Wframe-larger-than=4096
|
ccflags-y += -Wframe-larger-than=4096
|
||||||
|
|||||||
Reference in New Issue
Block a user