Re: [PATCH v2] gpu: drm: gma500: Change return type to vm_fault_t

From: Souptick Joarder
Date: Sat May 26 2018 - 09:37:02 EST


On Sat, May 26, 2018 at 8:11 AM, kbuild test robot <lkp@xxxxxxxxx> wrote:
> Hi Souptick,
>
> Thank you for the patch! Perhaps something to improve:
>
> [auto build test WARNING on drm/drm-next]
> [also build test WARNING on v4.17-rc6]
> [if your patch is applied to the wrong git tree, please drop us a note to help improve the system]
>
> url: https://github.com/0day-ci/linux/commits/Souptick-Joarder/gpu-drm-gma500-Change-return-type-to-vm_fault_t/20180526-084629
> base: git://people.freedesktop.org/~airlied/linux.git drm-next
> config: x86_64-randconfig-x013-201820 (attached as .config)
> compiler: gcc-7 (Debian 7.3.0-16) 7.3.0
> reproduce:
> # save the attached .config to linux build tree
> make ARCH=x86_64
>
> Note: it may well be a FALSE warning. FWIW you are at least aware of it now.
> http://gcc.gnu.org/wiki/Better_Uninitialized_Warnings
>
> All warnings (new ones prefixed by >>):
>
> drivers/gpu//drm/gma500/framebuffer.c: In function 'psbfb_vm_fault':
>>> drivers/gpu//drm/gma500/framebuffer.c:143:9: warning: 'ret' may be used uninitialized in this function [-Wmaybe-uninitialized]
> return ret;
> ^~~

Sorrry about it. Will fix and send v3.