Skip to contentSkip to conversation

drivers/thermal/thermal_of.c:689:1-23: WARNING: Function "for_each_child_of_node" should have of_node_put() before goto around lines 692. (fwd)

PATCH New Julia Lawall 1 participant 1 message Jul 31, 2022

lore
Share & tools
lore
#0 lore raw

PATCH 28/36 drivers/thermal/thermal_of.c:689:1-23: WARNING: Function "for_each_child_of_node" should have of_node_put() before goto around lines 692. (fwd)

I didn't receive a code snippet with this message, but it may be worth checkin whether there is a missing of_node_put.

julia

---------- Forwarded message ----------
Date: Sun, 31 Jul 2022 10:35:03 +0800
From: kernel test robot <[email protected]>
To: kbuild(a)lists.01.org
Cc: lkp(a)intel.com, Julia Lawall <[email protected]>
Subject: [thermal:thermal/next 28/36] drivers/thermal/thermal_of.c:689:1-23:
WARNING: Function "for_each_child_of_node" should have of_node_put() before goto around lines 692.

CC: kbuild-all(a)lists.01.org
BCC: lkp(a)intel.com
CC: linux-kernel(a)vger.kernel.org
TO: Daniel Lezcano <[email protected]>

tree:   git://git.kernel.org/pub/scm/linux/kernel/git/thermal/linux.git thermal/next
head:   d0c75fa2c17f082b32a5f26ff40bf378b12952de
commit: a3193edcbdf9a8ae73b6e1f2da96e920582c1849 [28/36] thermal/of: Replace device node match with device node search

:::::: branch date: 2 days ago
:::::: commit date: 2 days ago
config: nios2-randconfig-c033-20220729 (https://download.01.org/0day-ci/archive/20220731/202207311043.WDsouQI6-lkp(a)intel.com/config)
compiler: nios2-linux-gcc (GCC) 12.1.0

If you fix the issue, kindly add following tag where applicable

cocci warnings: (new ones prefixed by >>)

Quoted 1 line
Quoted 1 line

drivers/thermal/thermal_of.c:689:1-23: WARNING: Function "for_each_child_of_node" should have of_node_put() before goto around lines 692.

Signature · 2 lines
0-DAY CI Kernel Test Service
https://01.org/lkp