mirror of
git://nv-tegra.nvidia.com/linux-nv-oot.git
synced 2025-12-24 10:11:26 +03:00
nvethernet: use -mno-outline-atomics for nvethernet
The -moutline-atomics is enabled by default since GCC 10. Specify -mno-outline-atomics to avoid the error when building with GCC 11. MODPOST kernel-nvidia-oot/nvidia-oot/Module.symvers ERROR: modpost: "__aarch64_cas4_acq_rel" [ kernel-nvidia-oot/nvidia-oot/drivers/net/ethernet/nvidia/nvethernet/nvethernet.ko] undefined! ERROR: modpost: "__aarch64_ldadd4_acq_rel" [ kernel-nvidia-oot/nvidia-oot/drivers/net/ethernet/nvidia/nvethernet/nvethernet.ko] undefined! Bug 3975705 Bug 200730650 Change-Id: Ief3188dbad704c08deec34f2d23ccd9625fa0a5a Signed-off-by: Vince Hsu <vinceh@nvidia.com> Reviewed-on: https://git-master.nvidia.com/r/c/linux-nv-oot/+/2855788 Reviewed-by: Bitan Biswas <bbiswas@nvidia.com> GVS: Gerrit_Virtual_Submit <buildbot_gerritrpt@nvidia.com>
This commit is contained in:
committed by
mobile promotions
parent
877d53d041
commit
c41266d8b0
@@ -1,5 +1,5 @@
|
||||
#SPDX-License-Identifier: GPL-2.0-only
|
||||
#Copyright (c) 2019-2022, NVIDIA CORPORATION & AFFILIATES. All rights reserved.
|
||||
#Copyright (c) 2019-2023, NVIDIA CORPORATION & AFFILIATES. All rights reserved.
|
||||
|
||||
OSI_COMMON := nvethernetrm/osi/common
|
||||
OSI_CORE := nvethernetrm/osi/core
|
||||
@@ -7,7 +7,7 @@ OSI_DMA := nvethernetrm/osi/dma
|
||||
|
||||
obj-m += nvethernet.o
|
||||
|
||||
ccflags-y += -DLINUX_IVC -DUPDATED_PAD_CAL \
|
||||
ccflags-y += -DLINUX_IVC -DUPDATED_PAD_CAL -mno-outline-atomics \
|
||||
-I$(srctree.nvidia)/drivers/net/ethernet/nvidia/nvethernet/nvethernetrm/include \
|
||||
-I$(srctree.nvidia)/drivers/net/ethernet/nvidia/nvethernet/nvethernetrm/osi/common/include
|
||||
|
||||
|
||||
Reference in New Issue
Block a user