Re: [PATCH] gpu: drm: omapdrm: Adding new typedef vm_fault_t

From: Souptick Joarder
Date: Tue May 22 2018 - 13:06:53 EST


> drivers/gpu//drm/omapdrm/omap_gem.c: In function 'fault_2d':
> drivers/gpu//drm/omapdrm/omap_gem.c:480:9: error: implicit declaration of function 'vmf_error'; did you mean '__pmd_error'? [-Werror=implicit-function-declaration]
> ret = vmf_error(err);

I think, drm-next and next-20180517 tree doesn't have vmf_error() included.
As of now it's only available in 4.17-rc6.

> ^~~~~~~~~
> __pmd_error
>>> drivers/gpu//drm/omapdrm/omap_gem.c:503:9: warning: 'ret' may be used uninitialized in this function [-Wmaybe-uninitialized]
> return ret;
> ^~~
> cc1: some warnings being treated as errors
>

I will fix this in v2.