lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [day] [month] [year] [list]
Date:   Fri, 5 Nov 2021 21:13:00 +0800
From:   kernel test robot <lkp@...el.com>
To:     Ong Hean Loong <hean.loong.ong@...el.com>
Cc:     kbuild-all@...ts.01.org, linux-kernel@...r.kernel.org,
        Dinh Nguyen <dinh.nguyen@...el.com>
Subject: [dinguyen:socfpga-5.14_v1 31/121]
 drivers/video/fbdev/altvipfb2-plat.c:88:13: warning: variable 'retval' set
 but not used

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@...el.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

Download attachment ".config.gz" of type "application/gzip" (71063 bytes)

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ