All of lore.kernel.org
 help / color / mirror / Atom feed
* arch/powerpc/kernel/legacy_serial.c:380 ioremap_legacy_serial_console() warn: 'vaddr' not released on lines: 374.
@ 2021-11-13  7:55 kernel test robot
  0 siblings, 0 replies; only message in thread
From: kernel test robot @ 2021-11-13  7:55 UTC (permalink / raw)
  To: kbuild

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

CC: kbuild-all(a)lists.01.org
CC: linux-kernel(a)vger.kernel.org
TO: Christophe Leroy <christophe.leroy@csgroup.eu>
CC: Michael Ellerman <mpe@ellerman.id.au>

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 <lkp@intel.com>
Reported-by: Dan Carpenter <dan.carpenter@oracle.com>

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 <christophe.leroy@c-s.fr>
:::::: CC: Michael Ellerman <mpe@ellerman.id.au>

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

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

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

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

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-11-13  7:55 arch/powerpc/kernel/legacy_serial.c:380 ioremap_legacy_serial_console() warn: 'vaddr' not released on lines: 374 kernel test robot

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.