[drm:drm-fixes 16/39] drivers/gpu/drm/omapdrm/dss/dsi.c:1170:6: warning: unused variable 'r'

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



tree:   git://people.freedesktop.org/~airlied/linux.git drm-fixes
head:   ab3ab68493aaac6fea4ad1bb597def9f48f41c71
commit: 973999aa0140481e590e791c320009d25a88d377 [16/39] drm/omap: Remove regulator API abuse
config: arm-allmodconfig (attached as .config)
compiler: arm-linux-gnueabi-gcc (Debian 5.3.1-8) 5.3.1 20160205
reproduce:
        wget https://git.kernel.org/cgit/linux/kernel/git/wfg/lkp-tests.git/plain/sbin/make.cross -O ~/bin/make.cross
        chmod +x ~/bin/make.cross
        git checkout 973999aa0140481e590e791c320009d25a88d377
        # save the attached .config to linux build tree
        make.cross ARCH=arm 

All warnings (new ones prefixed by >>):

   drivers/gpu/drm/omapdrm/dss/dsi.c: In function 'dsi_regulator_init':
>> drivers/gpu/drm/omapdrm/dss/dsi.c:1170:6: warning: unused variable 'r' [-Wunused-variable]
     int r;
         ^
--
   drivers/gpu/drm/omapdrm/dss/hdmi5.c: In function 'hdmi_init_regulator':
>> drivers/gpu/drm/omapdrm/dss/hdmi5.c:123:6: warning: unused variable 'r' [-Wunused-variable]
     int r;
         ^

vim +/r +1170 drivers/gpu/drm/omapdrm/dss/dsi.c

4fbafaf3 drivers/video/omap2/dss/dsi.c       Tomi Valkeinen 2011-05-27  1154  
f76b178a drivers/video/fbdev/omap2/dss/dsi.c Tomi Valkeinen 2014-08-08  1155  static void dsi_runtime_put(struct platform_device *dsidev)
4fbafaf3 drivers/video/omap2/dss/dsi.c       Tomi Valkeinen 2011-05-27  1156  {
4fbafaf3 drivers/video/omap2/dss/dsi.c       Tomi Valkeinen 2011-05-27  1157  	struct dsi_data *dsi = dsi_get_dsidrv_data(dsidev);
4fbafaf3 drivers/video/omap2/dss/dsi.c       Tomi Valkeinen 2011-05-27  1158  	int r;
4fbafaf3 drivers/video/omap2/dss/dsi.c       Tomi Valkeinen 2011-05-27  1159  
4fbafaf3 drivers/video/omap2/dss/dsi.c       Tomi Valkeinen 2011-05-27  1160  	DSSDBG("dsi_runtime_put\n");
4fbafaf3 drivers/video/omap2/dss/dsi.c       Tomi Valkeinen 2011-05-27  1161  
0eaf9f52 drivers/video/omap2/dss/dsi.c       Tomi Valkeinen 2012-01-23  1162  	r = pm_runtime_put_sync(&dsi->pdev->dev);
5be3aebd drivers/video/omap2/dss/dsi.c       Tomi Valkeinen 2012-06-27  1163  	WARN_ON(r < 0 && r != -ENOSYS);
3de7a1dc drivers/video/omap2/dss/dsi.c       Tomi Valkeinen 2009-10-28  1164  }
3de7a1dc drivers/video/omap2/dss/dsi.c       Tomi Valkeinen 2009-10-28  1165  
b2541c40 drivers/video/omap2/dss/dsi.c       Tomi Valkeinen 2013-05-03  1166  static int dsi_regulator_init(struct platform_device *dsidev)
b2541c40 drivers/video/omap2/dss/dsi.c       Tomi Valkeinen 2013-05-03  1167  {
b2541c40 drivers/video/omap2/dss/dsi.c       Tomi Valkeinen 2013-05-03  1168  	struct dsi_data *dsi = dsi_get_dsidrv_data(dsidev);
b2541c40 drivers/video/omap2/dss/dsi.c       Tomi Valkeinen 2013-05-03  1169  	struct regulator *vdds_dsi;
02b7a320 drivers/video/fbdev/omap2/dss/dsi.c Tomi Valkeinen 2014-03-13 @1170  	int r;
b2541c40 drivers/video/omap2/dss/dsi.c       Tomi Valkeinen 2013-05-03  1171  
b2541c40 drivers/video/omap2/dss/dsi.c       Tomi Valkeinen 2013-05-03  1172  	if (dsi->vdds_dsi_reg != NULL)
b2541c40 drivers/video/omap2/dss/dsi.c       Tomi Valkeinen 2013-05-03  1173  		return 0;
b2541c40 drivers/video/omap2/dss/dsi.c       Tomi Valkeinen 2013-05-03  1174  
e6fa68ba drivers/video/omap2/dss/dsi.c       Tomi Valkeinen 2014-01-02  1175  	vdds_dsi = devm_regulator_get(&dsi->pdev->dev, "vdd");
b2541c40 drivers/video/omap2/dss/dsi.c       Tomi Valkeinen 2013-05-03  1176  
b2541c40 drivers/video/omap2/dss/dsi.c       Tomi Valkeinen 2013-05-03  1177  	if (IS_ERR(vdds_dsi)) {
40359a9b drivers/video/omap2/dss/dsi.c       Tomi Valkeinen 2013-12-19  1178  		if (PTR_ERR(vdds_dsi) != -EPROBE_DEFER)

:::::: The code at line 1170 was first introduced by commit
:::::: 02b7a32083b9930543663720758de249b4f6a2a3 OMAPDSS: DSI: set regulator voltage to 1.8V

:::::: TO: Tomi Valkeinen <tomi.valkeinen@xxxxxx>
:::::: CC: Tomi Valkeinen <tomi.valkeinen@xxxxxx>

---
0-DAY kernel test infrastructure                Open Source Technology Center
https://lists.01.org/pipermail/kbuild-all                   Intel Corporation

Attachment: .config.gz
Description: Binary data

_______________________________________________
dri-devel mailing list
dri-devel@xxxxxxxxxxxxxxxxxxxxx
https://lists.freedesktop.org/mailman/listinfo/dri-devel

[Index of Archives]     [Linux DRI Users]     [Linux Intel Graphics]     [Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]     [XFree86]     [Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Linux Kernel]     [Linux SCSI]     [XFree86]
  Powered by Linux