On Fri, Feb 14, 2025 at 11:28 AM Nathan Chancellor <nathan@xxxxxxxxxx> wrote: > > On Thu, Dec 19, 2024 at 05:21:41PM -0500, Alex Deucher wrote: > > On Thu, Dec 19, 2024 at 12:23 PM Nathan Chancellor <nathan@xxxxxxxxxx> wrote: > > > > > > Commit be4e3509314a ("drm/amd/display: DML21 Reintegration For Various > > > Fixes") blew away commit fdedd77b0eb3 ("drm/amd/display: Reapply > > > 2fde4fdddc1f"), which itself was a reapplication for the same reason, > > > which results in that compiler warning returning: > > > > > > drivers/gpu/drm/amd/amdgpu/../display/dc/dml2/dml21/src/dml2_dpmm/dml2_dpmm_dcn4.c:215:58: error: arithmetic between enumeration type 'enum dentist_divider_range' and floating-point type 'double' [-Werror,-Wenum-float-conversion] > > > 215 | divider = (unsigned int)(DFS_DIVIDER_RANGE_SCALE_FACTOR * (vco_freq_khz / clock_khz)); > > > | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~ > > > > > > Just disable the warning for the whole file via Makefile to avoid having > > > to reapply the same fix every time the code syncs from wherever it is > > > actually maintained. > > > > > > Fixes: be4e3509314a ("drm/amd/display: DML21 Reintegration For Various Fixes") > > > Signed-off-by: Nathan Chancellor <nathan@xxxxxxxxxx> > > > --- > > > If you would prefer reapplying the local fix, feel free to do so, but I > > > would like for it to be in the upstream source so it does not have to > > > keep being applied. > > > > I've reapplied the original fix and I've confirmed that the fix will > > be pushed to the DML tree as well this time. > > Did that actually end up happening? Commit 1b30456150e5 > ("drm/amd/display: DML21 Reintegration") in next-20250214 reintroduces > this warning... I guess it may be a timing thing because the author date > is three weeks ago or so. Should I send my "Reapply" patch or will you > take care of it? <sigh> I'll reapply. Come on guys. Please make sure this makes it's way into the DML code this time if it hasn't already. Thanks, Alex