Skip to content

Commit 0bbbe9e

Browse files
gastmaiernunojsa
authored andcommitted
iio: trx-rf: ad9088: Suppress API warnings
Suppress frame-larger-than and enum-conversion for some files in the AD9088 API. Ideally we would fix the BU APIs and get those fixes "upstream". Signed-off-by: Jorge Marques <jorge.marques@analog.com> (cherry picked from commit 09ac6b7)
1 parent ac4f00d commit 0bbbe9e

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

drivers/iio/trx-rf/ad9088/Makefile

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -56,6 +56,17 @@ ad9088_drv-y += public/src/adi_apollo_utils.o
5656
ad9088_drv-y += private/src/adi_apollo_private_blk_sel.o
5757
ad9088_drv-y += public/src/adi_apollo_startup.o
5858

59+
# Ideally this hack would go away but we would need to make sure the fixes land into
60+
# the BU APIs.
61+
ifdef CONFIG_CC_IS_GCC
62+
CFLAGS_public/src/adi_apollo_adc.o = -Wno-error=frame-larger-than=
63+
CFLAGS_public/src/adi_apollo_mcs_cal.o = -Wno-error=frame-larger-than=
64+
CFLAGS_public/src/adi_apollo_dac.o = -Wno-error=frame-larger-than=
65+
CFLAGS_public/src/adi_apollo_serdes.o = -Wno-error=frame-larger-than=
66+
CFLAGS_public/src/adi_apollo_jtx.o = -Wno-error=frame-larger-than=
67+
CFLAGS_public/src/adi_apollo_tmode.o = -Wno-error=enum-conversion
68+
endif
69+
5970
obj-$(CONFIG_AD9088) += ad9088_drv.o
6071

6172
ccflags-y += -I$(src)/public/inc/ \

0 commit comments

Comments
 (0)