CC: [email protected]
CC: [email protected]
TO: Christophe Leroy <[email protected]>
CC: Michael Ellerman <[email protected]>

tree:   https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git 
master
head:   66f4beaa6c1d28161f534471484b2daa2de1dce0
commit: 1e688dd2a3d6759d416616ff07afc4bb836c4213 powerpc/bug: Provide better 
flexibility to WARN_ON/__WARN_FLAGS() with asm goto
date:   3 months ago
:::::: branch date: 11 hours ago
:::::: commit date: 3 months ago
config: powerpc64-randconfig-m031-20211101 (attached as .config)
compiler: powerpc64le-linux-gcc (GCC) 11.2.0

If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <[email protected]>
Reported-by: Dan Carpenter <[email protected]>

smatch warnings:
arch/powerpc/kernel/legacy_serial.c:380 ioremap_legacy_serial_console() warn: 
'vaddr' not released on lines: 374.
drivers/gpu/drm/nouveau/nvkm/engine/disp/dp.c:415 nvkm_dp_train() error: we 
previously assumed 'failsafe' could be null (see line 398)
drivers/gpu/drm/amd/amdgpu/../amdkfd/kfd_process_queue_manager.c:116 
pqm_set_gws() error: we previously assumed 'pqn->q' could be null (see line 93)

vim +/vaddr +380 arch/powerpc/kernel/legacy_serial.c

37a801c776109d Michael Neuling  2006-03-26  356  
0bd3f9e953bd36 Christophe Leroy 2021-04-20  357  static int __init 
ioremap_legacy_serial_console(void)
0bd3f9e953bd36 Christophe Leroy 2021-04-20  358  {
63970f3c37e759 Christophe Leroy 2021-05-08  359         struct 
plat_serial8250_port *port;
63970f3c37e759 Christophe Leroy 2021-05-08  360         struct 
legacy_serial_info *info;
0bd3f9e953bd36 Christophe Leroy 2021-04-20  361         void __iomem *vaddr;
0bd3f9e953bd36 Christophe Leroy 2021-04-20  362  
0bd3f9e953bd36 Christophe Leroy 2021-04-20  363         if 
(legacy_serial_console < 0)
0bd3f9e953bd36 Christophe Leroy 2021-04-20  364                 return 0;
0bd3f9e953bd36 Christophe Leroy 2021-04-20  365  
63970f3c37e759 Christophe Leroy 2021-05-08  366         info = 
&legacy_serial_infos[legacy_serial_console];
63970f3c37e759 Christophe Leroy 2021-05-08  367         port = 
&legacy_serial_ports[legacy_serial_console];
63970f3c37e759 Christophe Leroy 2021-05-08  368  
0bd3f9e953bd36 Christophe Leroy 2021-04-20  369         if (!info->early_addr)
0bd3f9e953bd36 Christophe Leroy 2021-04-20  370                 return 0;
0bd3f9e953bd36 Christophe Leroy 2021-04-20  371  
0bd3f9e953bd36 Christophe Leroy 2021-04-20  372         vaddr = 
ioremap(info->taddr, 0x1000);
0bd3f9e953bd36 Christophe Leroy 2021-04-20  373         if (WARN_ON(!vaddr))
0bd3f9e953bd36 Christophe Leroy 2021-04-20  374                 return -ENOMEM;
0bd3f9e953bd36 Christophe Leroy 2021-04-20  375  
0bd3f9e953bd36 Christophe Leroy 2021-04-20  376         
udbg_uart_init_mmio(vaddr, 1 << port->regshift);
0bd3f9e953bd36 Christophe Leroy 2021-04-20  377         
early_iounmap(info->early_addr, 0x1000);
0bd3f9e953bd36 Christophe Leroy 2021-04-20  378         info->early_addr = NULL;
0bd3f9e953bd36 Christophe Leroy 2021-04-20  379  
0bd3f9e953bd36 Christophe Leroy 2021-04-20 @380         return 0;
0bd3f9e953bd36 Christophe Leroy 2021-04-20  381  }
0bd3f9e953bd36 Christophe Leroy 2021-04-20  382  
early_initcall(ioremap_legacy_serial_console);
0bd3f9e953bd36 Christophe Leroy 2021-04-20  383  

:::::: The code at line 380 was first introduced by commit
:::::: 0bd3f9e953bd3636e73d296e9bed11a25c09c118 powerpc/legacy_serial: Use 
early_ioremap()

:::::: TO: Christophe Leroy <[email protected]>
:::::: CC: Michael Ellerman <[email protected]>

---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/[email protected]

Attachment: .config.gz
Description: application/gzip

_______________________________________________
kbuild mailing list -- [email protected]
To unsubscribe send an email to [email protected]

Reply via email to