Re: [PATCH v2] omapfb: dss: Handle return error in dss_init_ports.

From: kbuild test robot
Date: Thu Feb 09 2017 - 16:09:15 EST

Hi Arvind,

[auto build test ERROR on linus/master]
[also build test ERROR on v4.10-rc7 next-20170209]
[if your patch is applied to the wrong git tree, please drop us a note to help improve the system]

config: arm-omap2plus_defconfig (attached as .config)
compiler: arm-linux-gnueabi-gcc (Debian 6.1.1-9) 6.1.1 20160705
wget -O ~/bin/make.cross
chmod +x ~/bin/make.cross
# save the attached .config to linux build tree
make.cross ARCH=arm

All error/warnings (new ones prefixed by >>):

drivers/video/fbdev/omap2/omapfb/dss/dss.c: In function 'dss_init_ports':
>> drivers/video/fbdev/omap2/omapfb/dss/dss.c:987:3: error: implicit declaration of function 'dss_uninit_ports' [-Werror=implicit-function-declaration]
drivers/video/fbdev/omap2/omapfb/dss/dss.c: At top level:
>> drivers/video/fbdev/omap2/omapfb/dss/dss.c:992:13: warning: conflicting types for 'dss_uninit_ports'
static void dss_uninit_ports(struct platform_device *pdev)
>> drivers/video/fbdev/omap2/omapfb/dss/dss.c:992:13: error: static declaration of 'dss_uninit_ports' follows non-static declaration
drivers/video/fbdev/omap2/omapfb/dss/dss.c:987:3: note: previous implicit declaration of 'dss_uninit_ports' was here
cc1: some warnings being treated as errors

vim +/dss_uninit_ports +987 drivers/video/fbdev/omap2/omapfb/dss/dss.c

981 default:
982 break;
983 }
984 } while ((port = omapdss_of_get_next_port(parent, port)) != NULL);
986 if (ret)
> 987 dss_uninit_ports(pdev);
989 return ret;
990 }
> 992 static void dss_uninit_ports(struct platform_device *pdev)
993 {
994 struct device_node *parent = pdev->dev.of_node;
995 struct device_node *port;

0-DAY kernel test infrastructure Open Source Technology Center Intel Corporation

Attachment: .config.gz
Description: application/gzip