public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* [dinguyen:socfpga-5.14_v1 31/121] drivers/video/fbdev/altvipfb2-plat.c:88:13: warning: variable 'retval' set but not used
@ 2021-11-05 13:13 kernel test robot
  0 siblings, 0 replies; only message in thread
From: kernel test robot @ 2021-11-05 13:13 UTC (permalink / raw)
  To: Ong Hean Loong; +Cc: kbuild-all, linux-kernel, Dinh Nguyen

[-- Attachment #1: Type: text/plain, Size: 2457 bytes --]

tree:   https://git.kernel.org/pub/scm/linux/kernel/git/dinguyen/linux.git socfpga-5.14_v1
head:   cc7ba8d9b34b85acfbeefb77fa57c116c733c2c4
commit: 624fd922941d21e091defb0714379abba1d64cab [31/121] FogBugz #421702-2: implement Frame Buffer II for Display Port IP
config: mips-allyesconfig (attached as .config)
compiler: mips-linux-gcc (GCC) 11.2.0
reproduce (this is a W=1 build):
        wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross
        chmod +x ~/bin/make.cross
        # https://git.kernel.org/pub/scm/linux/kernel/git/dinguyen/linux.git/commit/?id=624fd922941d21e091defb0714379abba1d64cab
        git remote add dinguyen https://git.kernel.org/pub/scm/linux/kernel/git/dinguyen/linux.git
        git fetch --no-tags dinguyen socfpga-5.14_v1
        git checkout 624fd922941d21e091defb0714379abba1d64cab
        # save the attached .config to linux build tree
        COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-11.2.0 make.cross ARCH=mips 

If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp@intel.com>

All warnings (new ones prefixed by >>):

   drivers/video/fbdev/altvipfb2-plat.c: In function 'altvipfb2_plat_probe':
>> drivers/video/fbdev/altvipfb2-plat.c:88:13: warning: variable 'retval' set but not used [-Wunused-but-set-variable]
      88 |         int retval;
         |             ^~~~~~


vim +/retval +88 drivers/video/fbdev/altvipfb2-plat.c

    85	
    86	static int altvipfb2_plat_probe(struct platform_device *pdev)
    87	{
  > 88		int retval;
    89	
    90		struct device *dev = &pdev->dev;
    91		struct resource *reg_res;
    92		struct altvipfb2_priv *fbdev;
    93	
    94		fbdev = devm_kzalloc(dev, sizeof(*fbdev), GFP_KERNEL);
    95		if (!fbdev)
    96			return -ENOMEM;
    97	
    98		reg_res = platform_get_resource(pdev, IORESOURCE_MEM, 0);
    99		if (!reg_res)
   100			return -ENODEV;
   101	
   102		fbdev->base = devm_ioremap_resource(dev, reg_res);
   103		if (IS_ERR(fbdev->base)) {
   104			dev_err(dev, "devm_ioremap_resource failed\n");
   105			retval = PTR_ERR(fbdev->base);
   106			return -ENOMEM;
   107		}
   108	
   109		altvipfb2_of_setup(fbdev, pdev);
   110	
   111		platform_set_drvdata(pdev, fbdev);
   112	
   113		return altvipfb2_probe(dev, fbdev->base);
   114	}
   115	

---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org

[-- Attachment #2: .config.gz --]
[-- Type: application/gzip, Size: 71063 bytes --]

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2021-11-05 13:14 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2021-11-05 13:13 [dinguyen:socfpga-5.14_v1 31/121] drivers/video/fbdev/altvipfb2-plat.c:88:13: warning: variable 'retval' set but not used kernel test robot

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox