[PATCH v2] drm/amd/display: enable more strict compile checks

Russell, Kent Kent.Russell at amd.com
Wed May 24 19:41:02 UTC 2023


[AMD Official Use Only - General]

(Adding Felix in CC)

I’m a fan of adding it to KFD as well. Felix, can you foresee any issues here?

Kent

From: amd-gfx <amd-gfx-bounces at lists.freedesktop.org> On Behalf Of Ho, Kenny
Sent: Wednesday, May 24, 2023 3:23 PM
To: Alex Deucher <alexdeucher at gmail.com>; Mahfooz, Hamza <Hamza.Mahfooz at amd.com>
Cc: Li, Sun peng (Leo) <Sunpeng.Li at amd.com>; Wentland, Harry <Harry.Wentland at amd.com>; Pan, Xinhui <Xinhui.Pan at amd.com>; Siqueira, Rodrigo <Rodrigo.Siqueira at amd.com>; linux-kernel at vger.kernel.org; dri-devel at lists.freedesktop.org; amd-gfx at lists.freedesktop.org; Daniel Vetter <daniel at ffwll.ch>; Deucher, Alexander <Alexander.Deucher at amd.com>; David Airlie <airlied at gmail.com>; Koenig, Christian <Christian.Koenig at amd.com>
Subject: Re: [PATCH v2] drm/amd/display: enable more strict compile checks


[AMD Official Use Only - General]


[AMD Official Use Only - General]

(+ Felix)

Should we do the same for other modules under amd (amdkfd)?  I was going to enable full kernel werror in the kconfig used by my CI but this is probably better.

Kenny
________________________________
From: Alex Deucher <alexdeucher at gmail.com<mailto:alexdeucher at gmail.com>>
Sent: Wednesday, May 24, 2023 3:22 PM
To: Mahfooz, Hamza <Hamza.Mahfooz at amd.com<mailto:Hamza.Mahfooz at amd.com>>
Cc: amd-gfx at lists.freedesktop.org<mailto:amd-gfx at lists.freedesktop.org> <amd-gfx at lists.freedesktop.org<mailto:amd-gfx at lists.freedesktop.org>>; Li, Sun peng (Leo) <Sunpeng.Li at amd.com<mailto:Sunpeng.Li at amd.com>>; Ho, Kenny <Kenny.Ho at amd.com<mailto:Kenny.Ho at amd.com>>; Pan, Xinhui <Xinhui.Pan at amd.com<mailto:Xinhui.Pan at amd.com>>; Siqueira, Rodrigo <Rodrigo.Siqueira at amd.com<mailto:Rodrigo.Siqueira at amd.com>>; linux-kernel at vger.kernel.org<mailto:linux-kernel at vger.kernel.org> <linux-kernel at vger.kernel.org<mailto:linux-kernel at vger.kernel.org>>; dri-devel at lists.freedesktop.org<mailto:dri-devel at lists.freedesktop.org> <dri-devel at lists.freedesktop.org<mailto:dri-devel at lists.freedesktop.org>>; Daniel Vetter <daniel at ffwll.ch<mailto:daniel at ffwll.ch>>; Deucher, Alexander <Alexander.Deucher at amd.com<mailto:Alexander.Deucher at amd.com>>; David Airlie <airlied at gmail.com<mailto:airlied at gmail.com>>; Wentland, Harry <Harry.Wentland at amd.com<mailto:Harry.Wentland at amd.com>>; Koenig, Christian <Christian.Koenig at amd.com<mailto:Christian.Koenig at amd.com>>
Subject: Re: [PATCH v2] drm/amd/display: enable more strict compile checks

On Wed, May 24, 2023 at 3:20 PM Hamza Mahfooz <hamza.mahfooz at amd.com<mailto:hamza.mahfooz at amd.com>> wrote:
>
> Currently, there are quite a number of issues that are quite easy for
> the CI to catch, that slip through the cracks. Among them, there are
> unused variable and indentation issues. Also, we should consider all
> warnings to be compile errors, since the community will eventually end
> up complaining about them. So, enable -Werror, -Wunused and
> -Wmisleading-indentation for all kernel builds.
>
> Cc: Alex Deucher <alexander.deucher at amd.com<mailto:alexander.deucher at amd.com>>
> Cc: Harry Wentland <harry.wentland at amd.com<mailto:harry.wentland at amd.com>>
> Cc: Kenny Ho <kenny.ho at amd.com<mailto:kenny.ho at amd.com>>
> Signed-off-by: Hamza Mahfooz <hamza.mahfooz at amd.com<mailto:hamza.mahfooz at amd.com>>
> ---
> v2: fix grammatical error
> ---
>  drivers/gpu/drm/amd/display/Makefile | 2 ++
>  1 file changed, 2 insertions(+)
>
> diff --git a/drivers/gpu/drm/amd/display/Makefile b/drivers/gpu/drm/amd/display/Makefile
> index 0d610cb376bb..3c44162ebe21 100644
> --- a/drivers/gpu/drm/amd/display/Makefile
> +++ b/drivers/gpu/drm/amd/display/Makefile
> @@ -26,6 +26,8 @@
>
>  AMDDALPATH = $(RELATIVE_AMD_DISPLAY_PATH)
>
> +subdir-ccflags-y += -Werror -Wunused -Wmisleading-indentation
> +

Care to enable this for the rest of amdgpu as well?  Or send out an
additional patch to do that?  Either way:
Reviewed-by: Alex Deucher <alexander.deucher at amd.com<mailto:alexander.deucher at amd.com>>

Alex

>  subdir-ccflags-y += -I$(FULL_AMD_DISPLAY_PATH)/dc/inc/
>  subdir-ccflags-y += -I$(FULL_AMD_DISPLAY_PATH)/dc/inc/hw
>  subdir-ccflags-y += -I$(FULL_AMD_DISPLAY_PATH)/dc/clk_mgr
> --
> 2.40.1
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.freedesktop.org/archives/amd-gfx/attachments/20230524/589acace/attachment-0001.htm>


More information about the amd-gfx mailing list