RE: [PATCH 1/1] drm/amdgpu: Fix missing prototype warning

Deucher, Alexander
2020-11-09T19:18:16Z

[AMD Public Use]

> -----Original Message-----
> From: Tuikov, Luben <Luben.Tuikov@amd.com>
> Sent: Monday, November 9, 2020 2:16 PM
> To: kernel test robot <lkp@intel.com>
> Cc: kbuild-all@lists.01.org; Linux Memory Management List <linux-
> mm@kvack.org>; Daniel Vetter <daniel.vetter@ffwll.ch>; Deucher,
> Alexander <Alexander.Deucher@amd.com>
> Subject: Re: [PATCH 1/1] drm/amdgpu: Fix missing prototype warning
>
> Add CC Alex.
>

Acked-by: Alex Deucher <alexander.deucher@amd.com>

> On 2020-11-09 13:35, Luben Tuikov wrote:
> > Fix a missing prototype warning for function amdgpu_info_ioctl().
> >
> > Signed-off-by: Luben Tuikov <luben.tuikov@amd.com>
> > Reported-by: kernel test robot <lkp@intel.com>
> > ---
> > drivers/gpu/drm/amd/amdgpu/amdgpu.h | 2 ++
> > drivers/gpu/drm/amd/amdgpu/amdgpu_drv.c | 2 --
> > 2 files changed, 2 insertions(+), 2 deletions(-)
> >
> > diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu.h
> > b/drivers/gpu/drm/amd/amdgpu/amdgpu.h
> > index ba65d4f2ab67..d27620fa8b0b 100644
> > --- a/drivers/gpu/drm/amd/amdgpu/amdgpu.h
> > +++ b/drivers/gpu/drm/amd/amdgpu/amdgpu.h
> > @@ -1279,6 +1279,8 @@ int amdgpu_enable_vblank_kms(struct drm_crtc
> > *crtc); void amdgpu_disable_vblank_kms(struct drm_crtc *crtc); long
> > amdgpu_kms_compat_ioctl(struct file *filp, unsigned int cmd,
> > unsigned long arg);
> > +int amdgpu_info_ioctl(struct drm_device *dev, void *data,
> > + struct drm_file *filp);
> >
> > /*
> > * functions used by amdgpu_encoder.c diff --git
> > a/drivers/gpu/drm/amd/amdgpu/amdgpu_drv.c
> > b/drivers/gpu/drm/amd/amdgpu/amdgpu_drv.c
> > index be304df7a8c2..70a30440f84c 100644
> > --- a/drivers/gpu/drm/amd/amdgpu/amdgpu_drv.c
> > +++ b/drivers/gpu/drm/amd/amdgpu/amdgpu_drv.c
> > @@ -1529,8 +1529,6 @@ int amdgpu_file_to_fpriv(struct file *filp, struct
> amdgpu_fpriv **fpriv)
> > return 0;
> > }
> >
> > -int amdgpu_info_ioctl(struct drm_device *dev, void *data, struct
> > drm_file *filp);
> > -
> > const struct drm_ioctl_desc amdgpu_ioctls_kms[] = {
> > DRM_IOCTL_DEF_DRV(AMDGPU_GEM_CREATE,
> amdgpu_gem_create_ioctl, DRM_AUTH|DRM_RENDER_ALLOW),
> > DRM_IOCTL_DEF_DRV(AMDGPU_CTX, amdgpu_ctx_ioctl,
> > DRM_AUTH|DRM_RENDER_ALLOW),
> >