CC: kbuild-...@lists.01.org
BCC: l...@intel.com
CC: linux-ker...@vger.kernel.org
TO: Thomas Zimmermann <tzimmerm...@suse.de>
CC: Javier Martinez Canillas <javi...@redhat.com>

tree:   git://git.kraxel.org/linux drm-misc-next
head:   15fced5b051e6e22c228a521a5894b12c2ba0892
commit: 9d69ef1838150c7d87afc1a87aa658c637217585 [4/11] fbdev/core: Remove 
remove_conflicting_pci_framebuffers()
:::::: branch date: 21 hours ago
:::::: commit date: 21 hours ago
config: i386-randconfig-m021-20220718 
(https://download.01.org/0day-ci/archive/20220720/202207201557.ojvc9qin-...@intel.com/config)
compiler: gcc-11 (Debian 11.3.0-3) 11.3.0

If you fix the issue, kindly add following tag where applicable
Reported-by: kernel test robot <l...@intel.com>
Reported-by: Dan Carpenter <dan.carpen...@oracle.com>

smatch warnings:
drivers/video/aperture.c:343 aperture_remove_conflicting_pci_devices() error: 
uninitialized symbol 'ret'.

vim +/ret +343 drivers/video/aperture.c

7283f862bd991c8 Thomas Zimmermann 2022-06-22  331  
7283f862bd991c8 Thomas Zimmermann 2022-06-22  332       for (bar = 0; bar < 
PCI_STD_NUM_BARS; ++bar) {
7283f862bd991c8 Thomas Zimmermann 2022-06-22  333               if 
(!(pci_resource_flags(pdev, bar) & IORESOURCE_MEM))
7283f862bd991c8 Thomas Zimmermann 2022-06-22  334                       
continue;
9d69ef1838150c7 Thomas Zimmermann 2022-07-18  335  
7283f862bd991c8 Thomas Zimmermann 2022-06-22  336               base = 
pci_resource_start(pdev, bar);
7283f862bd991c8 Thomas Zimmermann 2022-06-22  337               size = 
pci_resource_len(pdev, bar);
9d69ef1838150c7 Thomas Zimmermann 2022-07-18  338               ret = 
aperture_remove_conflicting_devices(base, size, primary, name);
9d69ef1838150c7 Thomas Zimmermann 2022-07-18  339               if (ret)
9d69ef1838150c7 Thomas Zimmermann 2022-07-18  340                       break;
7283f862bd991c8 Thomas Zimmermann 2022-06-22  341       }
7283f862bd991c8 Thomas Zimmermann 2022-06-22  342  
9d69ef1838150c7 Thomas Zimmermann 2022-07-18 @343       if (ret)
9d69ef1838150c7 Thomas Zimmermann 2022-07-18  344               return ret;
9d69ef1838150c7 Thomas Zimmermann 2022-07-18  345  
9d69ef1838150c7 Thomas Zimmermann 2022-07-18  346       /*
9d69ef1838150c7 Thomas Zimmermann 2022-07-18  347        * WARNING: Apparently 
we must kick fbdev drivers before vgacon,
9d69ef1838150c7 Thomas Zimmermann 2022-07-18  348        * otherwise the vga 
fbdev driver falls over.
9d69ef1838150c7 Thomas Zimmermann 2022-07-18  349        */
9d69ef1838150c7 Thomas Zimmermann 2022-07-18  350       ret = 
vga_remove_vgacon(pdev);
9d69ef1838150c7 Thomas Zimmermann 2022-07-18  351       if (ret)
9d69ef1838150c7 Thomas Zimmermann 2022-07-18  352               return ret;
9d69ef1838150c7 Thomas Zimmermann 2022-07-18  353  
7283f862bd991c8 Thomas Zimmermann 2022-06-22  354       return 0;
7283f862bd991c8 Thomas Zimmermann 2022-06-22  355  

-- 
0-DAY CI Kernel Test Service
https://01.org/lkp
_______________________________________________
kbuild mailing list -- kbuild@lists.01.org
To unsubscribe send an email to kbuild-le...@lists.01.org

Reply via email to