mirror of
https://github.com/torvalds/linux.git
synced 2026-04-28 11:32:28 -04:00
Some of our HW calcs functions compares a var against itself to check for NaN. Gcc isn't fond of it and wrongfully warns about a tautological comparison. Disable this check for dcn_calcs_math.c. Signed-off-by: Harry Wentland <harry.wentland@amd.com> Reviewed-by: Dmytro Laktyushkin <Dmytro.Laktyushkin@amd.com> Acked-by: Harry Wentland <Harry.Wentland@amd.com> Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
19 lines
620 B
Makefile
19 lines
620 B
Makefile
#
|
|
# Makefile for the 'calcs' sub-component of DAL.
|
|
# It calculates Bandwidth and Watermarks values for HW programming
|
|
#
|
|
|
|
CFLAGS_dcn_calcs.o := -mhard-float -msse -mpreferred-stack-boundary=4
|
|
CFLAGS_dcn_calc_auto.o := -mhard-float -msse -mpreferred-stack-boundary=4
|
|
CFLAGS_dcn_calc_math.o := -mhard-float -msse -mpreferred-stack-boundary=4 -Wno-tautological-compare
|
|
|
|
BW_CALCS = dce_calcs.o bw_fixed.o custom_float.o
|
|
|
|
ifdef CONFIG_DRM_AMD_DC_DCN1_0
|
|
BW_CALCS += dcn_calcs.o dcn_calc_math.o dcn_calc_auto.o
|
|
endif
|
|
|
|
AMD_DAL_BW_CALCS = $(addprefix $(AMDDALPATH)/dc/calcs/,$(BW_CALCS))
|
|
|
|
AMD_DISPLAY_FILES += $(AMD_DAL_BW_CALCS)
|