* [PATCH 1/1] memory: emif: add missing of_node_put after calling of_parse_phandle @ 2016-07-15 9:35 Peter Chen 2016-07-15 18:50 ` kbuild test robot 0 siblings, 1 reply; 2+ messages in thread From: Peter Chen @ 2016-07-15 9:35 UTC (permalink / raw) To: ssantosh; +Cc: linux-kernel, Peter Chen of_node_put needs to be called when the device node which is got from of_parse_phandle has finished using. Signed-off-by: Peter Chen <peter.chen@nxp.com> --- drivers/memory/emif.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/drivers/memory/emif.c b/drivers/memory/emif.c index 04644e7..c5ec77d 100644 --- a/drivers/memory/emif.c +++ b/drivers/memory/emif.c @@ -1409,8 +1409,10 @@ static struct emif_data * __init_or_module of_get_memory_device_details( goto out; error: + of_put_node(np_ddr); return NULL; out: + of_put_node(np_ddr); return emif; } -- 1.9.1 ^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [PATCH 1/1] memory: emif: add missing of_node_put after calling of_parse_phandle 2016-07-15 9:35 [PATCH 1/1] memory: emif: add missing of_node_put after calling of_parse_phandle Peter Chen @ 2016-07-15 18:50 ` kbuild test robot 0 siblings, 0 replies; 2+ messages in thread From: kbuild test robot @ 2016-07-15 18:50 UTC (permalink / raw) To: Peter Chen; +Cc: kbuild-all, ssantosh, linux-kernel, Peter Chen [-- Attachment #1: Type: text/plain, Size: 1474 bytes --] Hi, [auto build test ERROR on v4.7-rc7] [also build test ERROR on next-20160715] [if your patch is applied to the wrong git tree, please drop us a note to help improve the system] url: https://github.com/0day-ci/linux/commits/Peter-Chen/memory-emif-add-missing-of_node_put-after-calling-of_parse_phandle/20160715-190829 config: arm-omap2plus_defconfig (attached as .config) compiler: arm-linux-gnueabi-gcc (Debian 5.3.1-8) 5.3.1 20160205 reproduce: wget https://git.kernel.org/cgit/linux/kernel/git/wfg/lkp-tests.git/plain/sbin/make.cross -O ~/bin/make.cross chmod +x ~/bin/make.cross # save the attached .config to linux build tree make.cross ARCH=arm All errors (new ones prefixed by >>): drivers/memory/emif.c: In function 'of_get_memory_device_details': >> drivers/memory/emif.c:1412:2: error: implicit declaration of function 'of_put_node' [-Werror=implicit-function-declaration] of_put_node(np_ddr); ^ cc1: some warnings being treated as errors vim +/of_put_node +1412 drivers/memory/emif.c 1406 &emif->plat_data->timings_arr_size); 1407 1408 emif->plat_data->min_tck = of_get_min_tck(np_ddr, emif->dev); 1409 goto out; 1410 1411 error: > 1412 of_put_node(np_ddr); 1413 return NULL; 1414 out: 1415 of_put_node(np_ddr); --- 0-DAY kernel test infrastructure Open Source Technology Center https://lists.01.org/pipermail/kbuild-all Intel Corporation [-- Attachment #2: .config.gz --] [-- Type: application/octet-stream, Size: 27901 bytes --] ^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2016-07-15 18:51 UTC | newest] Thread overview: 2+ messages (download: mbox.gz follow: Atom feed -- links below jump to the message on this page -- 2016-07-15 9:35 [PATCH 1/1] memory: emif: add missing of_node_put after calling of_parse_phandle Peter Chen 2016-07-15 18:50 ` kbuild test robot
This is a public inbox, see mirroring instructions for how to clone and mirror all data and code used for this inbox; as well as URLs for NNTP newsgroup(s).