On Wed, Jan 13, 2021 at 3:08 AM Lee Jones <lee.jo...@linaro.org> wrote: > > Fixes the following W=1 kernel build warning(s): > > In file included from > drivers/gpu/drm/amd/amdgpu/../display/dc/dce100/dce100_resource.c:54: > > drivers/gpu/drm/amd/amdgpu/../include/asic_reg/dce/dce_10_0_sh_mask.h:5084:45: > warning: initialized field overwritten [-Woverride-init] > drivers/gpu/drm/amd/amdgpu/../display/dc/dce/dce_mem_input.h:155:28: note: > in expansion of macro ‘GRPH_CONTROL__GRPH_NUM_BANKS__SHIFT’ > drivers/gpu/drm/amd/amdgpu/../display/dc/dce/dce_mem_input.h:170:2: note: in > expansion of macro ‘SFB’ > drivers/gpu/drm/amd/amdgpu/../display/dc/dce/dce_mem_input.h:291:2: note: in > expansion of macro ‘MI_GFX8_TILE_MASK_SH_LIST’ > drivers/gpu/drm/amd/amdgpu/../display/dc/dce100/dce100_resource.c:537:3: > note: in expansion of macro ‘MI_DCE8_MASK_SH_LIST’ > > drivers/gpu/drm/amd/amdgpu/../include/asic_reg/dce/dce_10_0_sh_mask.h:5084:45: > note: (near initialization for ‘mi_shifts.GRPH_NUM_BANKS’) > drivers/gpu/drm/amd/amdgpu/../display/dc/dce/dce_mem_input.h:155:28: note: > in expansion of macro ‘GRPH_CONTROL__GRPH_NUM_BANKS__SHIFT’ > drivers/gpu/drm/amd/amdgpu/../display/dc/dce/dce_mem_input.h:170:2: note: in > expansion of macro ‘SFB’ > drivers/gpu/drm/amd/amdgpu/../display/dc/dce/dce_mem_input.h:291:2: note: in > expansion of macro ‘MI_GFX8_TILE_MASK_SH_LIST’ > drivers/gpu/drm/amd/amdgpu/../display/dc/dce100/dce100_resource.c:537:3: > note: in expansion of macro ‘MI_DCE8_MASK_SH_LIST’ > > drivers/gpu/drm/amd/amdgpu/../include/asic_reg/dce/dce_10_0_sh_mask.h:5083:43: > warning: initialized field overwritten [-Woverride-init] > drivers/gpu/drm/amd/amdgpu/../display/dc/dce/dce_mem_input.h:155:28: note: > in expansion of macro ‘GRPH_CONTROL__GRPH_NUM_BANKS_MASK’ > drivers/gpu/drm/amd/amdgpu/../display/dc/dce/dce_mem_input.h:170:2: note: in > expansion of macro ‘SFB’ > drivers/gpu/drm/amd/amdgpu/../display/dc/dce/dce_mem_input.h:291:2: note: in > expansion of macro ‘MI_GFX8_TILE_MASK_SH_LIST’ > drivers/gpu/drm/amd/amdgpu/../display/dc/dce100/dce100_resource.c:542:3: > note: in expansion of macro ‘MI_DCE8_MASK_SH_LIST’ > > drivers/gpu/drm/amd/amdgpu/../include/asic_reg/dce/dce_10_0_sh_mask.h:5083:43: > note: (near initialization for ‘mi_masks.GRPH_NUM_BANKS’) > drivers/gpu/drm/amd/amdgpu/../display/dc/dce/dce_mem_input.h:155:28: note: > in expansion of macro ‘GRPH_CONTROL__GRPH_NUM_BANKS_MASK’ > drivers/gpu/drm/amd/amdgpu/../display/dc/dce/dce_mem_input.h:170:2: note: in > expansion of macro ‘SFB’ > drivers/gpu/drm/amd/amdgpu/../display/dc/dce/dce_mem_input.h:291:2: note: in > expansion of macro ‘MI_GFX8_TILE_MASK_SH_LIST’ > drivers/gpu/drm/amd/amdgpu/../display/dc/dce100/dce100_resource.c:542:3: > note: in expansion of macro ‘MI_DCE8_MASK_SH_LIST’ > > Cc: Harry Wentland <harry.wentl...@amd.com> > Cc: Leo Li <sunpeng...@amd.com> > Cc: Alex Deucher <alexander.deuc...@amd.com> > Cc: "Christian König" <christian.koe...@amd.com> > Cc: David Airlie <airl...@linux.ie> > Cc: Daniel Vetter <dan...@ffwll.ch> > Cc: amd-...@lists.freedesktop.org > Cc: dri-de...@lists.freedesktop.org > Signed-off-by: Lee Jones <lee.jo...@linaro.org>
Applied. Thanks! Alex > --- > drivers/gpu/drm/amd/display/dc/dce100/Makefile | 2 ++ > 1 file changed, 2 insertions(+) > > diff --git a/drivers/gpu/drm/amd/display/dc/dce100/Makefile > b/drivers/gpu/drm/amd/display/dc/dce100/Makefile > index a822d4e2a1693..ff20c47f559e3 100644 > --- a/drivers/gpu/drm/amd/display/dc/dce100/Makefile > +++ b/drivers/gpu/drm/amd/display/dc/dce100/Makefile > @@ -23,6 +23,8 @@ > # Makefile for the 'controller' sub-component of DAL. > # It provides the control and status of HW CRTC block. > > +CFLAGS_$(AMDDALPATH)/dc/dce100/dce100_resource.o = $(call > cc-disable-warning, override-init) > + > DCE100 = dce100_resource.o dce100_hw_sequencer.o > > AMD_DAL_DCE100 = $(addprefix $(AMDDALPATH)/dc/dce100/,$(DCE100)) > -- > 2.25.1 > > _______________________________________________ > dri-devel mailing list > dri-de...@lists.freedesktop.org > https://lists.freedesktop.org/mailman/listinfo/dri-devel