From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mailout4.samsung.com ([203.254.224.34]:39439 "EHLO mailout4.samsung.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751740AbdHADKx (ORCPT ); Mon, 31 Jul 2017 23:10:53 -0400 MIME-version: 1.0 Content-transfer-encoding: 8BIT Content-type: text/plain; charset="EUC-KR" Message-id: <597FF151.3020805@samsung.com> Date: Tue, 01 Aug 2017 12:11:13 +0900 From: Seung-Woo Kim Reply-to: sw0312.kim@samsung.com To: alexander.levin@verizon.com, stable@vger.kernel.org Cc: Seung-Woo Kim , johan@kernel.org Subject: [linux-4.1.y] Build warning from the commit 78de28c67c8f ("of: fdt: add missing allocation-failure check") References: Sender: stable-owner@vger.kernel.org List-ID: Hello, After applying the commit 78de28c67c8f ("of: fdt: add missing allocation-failure check") to linux-4.1.y tree, there is build warning. drivers/of/fdt.c: In function ��__unflatten_device_tree��: drivers/of/fdt.c:416:10: warning: ��return�� with a value, in function returning void return NULL; ^ drivers/of/fdt.c:381:13: note: declared here static void __unflatten_device_tree(void *blob, ^~~~~~~~~~~~~~~~~~~~~~~ It seems to be fixed as like following: --- diff --git a/drivers/of/fdt.c b/drivers/of/fdt.c index ae1b654..531b486 100644 --- a/drivers/of/fdt.c +++ b/drivers/of/fdt.c @@ -417,7 +417,7 @@ static void __unflatten_device_tree(void *blob, /* Allocate memory for the expanded device tree */ mem = dt_alloc(size + 4, __alignof__(struct device_node)); if (!mem) - return NULL; + return; memset(mem, 0, size); --- Best Regards, - Seung-Woo Kim -- Seung-Woo Kim Samsung Software R&D Center --