[PATCH] drm/amdgpu: Add compile flag for securedisplay
Huang Rui
ray.huang at amd.com
Wed May 12 03:35:30 UTC 2021
On Wed, May 12, 2021 at 09:51:21AM +0800, Su, Jinzhou (Joe) wrote:
> Add compile flag CONFIG_DEBUG_FS to clear the warning:
> unused variable 'amdgpu_securedisplay_debugfs_ops'
>
> Signed-off-by: Jinzhou Su <Jinzhou.Su at amd.com>
According to the 0 day's robot mail, please feel free to add below
reported-by:
"Reported-by: kernel test robot <lkp at intel.com>"
Patch is Acked-by: Huang Rui <ray.huang at amd.com>
> ---
> drivers/gpu/drm/amd/amdgpu/amdgpu_securedisplay.c | 4 ++++
> 1 file changed, 4 insertions(+)
>
> diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_securedisplay.c b/drivers/gpu/drm/amd/amdgpu/amdgpu_securedisplay.c
> index 5369c8dd0764..123453999093 100644
> --- a/drivers/gpu/drm/amd/amdgpu/amdgpu_securedisplay.c
> +++ b/drivers/gpu/drm/amd/amdgpu/amdgpu_securedisplay.c
> @@ -86,6 +86,8 @@ void psp_prep_securedisplay_cmd_buf(struct psp_context *psp, struct securedispla
> (*cmd)->cmd_id = command_id;
> }
>
> +#if defined(CONFIG_DEBUG_FS)
> +
> static ssize_t amdgpu_securedisplay_debugfs_write(struct file *f, const char __user *buf,
> size_t size, loff_t *pos)
> {
> @@ -162,6 +164,8 @@ static const struct file_operations amdgpu_securedisplay_debugfs_ops = {
> .llseek = default_llseek
> };
>
> +#endif
> +
> void amdgpu_securedisplay_debugfs_init(struct amdgpu_device *adev)
> {
> #if defined(CONFIG_DEBUG_FS)
> --
> 2.27.0
>
More information about the amd-gfx
mailing list