lists.openwall.net | lists / announce owl-users owl-dev john-users john-dev passwdqc-users yescrypt popa3d-users / oss-security kernel-hardening musl sabotage tlsify passwords / crypt-dev xvendor / Bugtraq Full-Disclosure linux-kernel linux-netdev linux-ext4 linux-hardening linux-cve-announce PHC | |
Open Source and information security mailing list archives
| ||
|
Message-ID: <a9871f50-f8f9-917d-9a6a-798805d698ad@huawei.com> Date: Thu, 4 Apr 2019 10:02:07 +0800 From: YueHaibing <yuehaibing@...wei.com> To: <robdclark@...il.com>, <sean@...rly.run>, <airlied@...ux.ie>, <daniel@...ll.ch>, <linux-kernel@...r.kernel.org>, <freedreno@...ts.freedesktop.org>, <dri-devel@...ts.freedesktop.org>, <linux-arm-msm@...r.kernel.org> Subject: Re: [PATCH] drm/msm/a6xx: Fix build with !CONFIG_DEBUG_FS On 2019/4/3 23:36, Jordan Crouse wrote: > On Wed, Apr 03, 2019 at 02:48:11PM +0800, Yue Haibing wrote: >> From: YueHaibing <yuehaibing@...wei.com> >> >> When building CONFIG_DEBUG_FS is not set >> gcc warn this: >> >> drivers/gpu/drm/msm/adreno/a6xx_gpu_state.c: In function a6xx_show: >> drivers/gpu/drm/msm/adreno/a6xx_gpu_state.c:1124:2: error: implicit declaration of function adreno_show; did you mean adreno_dump? [-Werror=implicit-function-declaration] >> adreno_show(gpu, state, p); >> ^~~~~~~~~~~ >> >> Reported-by: Hulk Robot <hulkci@...wei.com> >> Fixes: 1707add81551 ("drm/msm/a6xx: Add a6xx gpu state") >> Signed-off-by: YueHaibing <yuehaibing@...wei.com> >> --- >> drivers/gpu/drm/msm/adreno/a6xx_gpu_state.c | 2 ++ >> 1 file changed, 2 insertions(+) >> >> diff --git a/drivers/gpu/drm/msm/adreno/a6xx_gpu_state.c b/drivers/gpu/drm/msm/adreno/a6xx_gpu_state.c >> index e686331..d327eb5 100644 >> --- a/drivers/gpu/drm/msm/adreno/a6xx_gpu_state.c >> +++ b/drivers/gpu/drm/msm/adreno/a6xx_gpu_state.c >> @@ -1121,7 +1121,9 @@ void a6xx_show(struct msm_gpu *gpu, struct msm_gpu_state *state, >> if (IS_ERR_OR_NULL(state)) >> return; >> >> +#if defined(CONFIG_DEBUG_FS) || defined(CONFIG_DEV_COREDUMP) >> adreno_show(gpu, state, p); >> +#endif > > I agree that this is a problem, but I think I would prefer if we just made a > stub function for adreno_show instead of doing a inline ifdef, so in > adreno_gpu.c: > > #ifdef defined(CONFIG_DEBUG_FS) || defined(CONFIG_DEV_COREDUMP) > ... > #else > void adreno_show(struct msm_gpu *gpu, msm_gpu_state *state, > struct drm_printer *p) > { > } > #endif > > If you want, I can do a quick patch. Sure, it's ok for me. > > Jordan >
Powered by blists - more mailing lists