Received: by 10.223.185.116 with SMTP id b49csp6362146wrg; Wed, 28 Feb 2018 08:10:51 -0800 (PST) X-Google-Smtp-Source: AH8x226XMA+vF/VWGqZ5kBDY0w1H/m/7shOOb4/slU/kFG+Nr9dSloqhC5U5VdQS3iOoyIyaU+4g X-Received: by 10.101.86.138 with SMTP id v10mr14602332pgs.353.1519834251546; Wed, 28 Feb 2018 08:10:51 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1519834251; cv=none; d=google.com; s=arc-20160816; b=PalP4YO9aGbV3WxllUrdxzwZV0e2ulfB80+h0Kc5GqJsxPwUkO4CxMnVZrNwP3UWRs rcDaGAsfdh/N0jMVDBYQLLPe03zNS20pqt3LfcAen/DWzAFCExYND36jA8PcGoAYg9R8 PJ2LjC0ZrKv8EHnAvKxLNO99hrSG0FefOWMD0ebg8meLGO4kEtPR3RFDEw7mMCyvsfGX gYiW9gFL7VZjKlKNbVSFJRQ/i8MRP+Lvyj66+V3OQL6IudTHHuOlX80EFiqWmhUC76QK ee6WsyZ/zHJhhHGT3ttx6zto8QGebqGXCCEcKAzhZIgY68onz2T779/kMLz0la6xcPxm tH5A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:in-reply-to:subject:message-id:date:cc:to :from:mime-version:content-transfer-encoding:content-disposition :arc-authentication-results; bh=Q3hP4S7Cb3EGv3wdxuJY5qGFnNEBL1rw1z/u84ZBhQ8=; b=bWOxxCfjpOMKT8FbzSMhpSmezbqe31Nl3F7/JT1uB9y1C/0uf5YiqvD1mlDsfiENZO KKQ8SLPGxiXg7qcYTSzaa/HARI74tk8sX5dWAYkcCKplJwYW/Kl+n8QcZ2uUAI7SemLs H7IhQAmSn3VBRxLcGw4f4yCKx8QyDPQukWmWi/j+VytfoxBVyUyVbvzoC7Qonmgr5pLO miVPcUlZ5BxlE30eYvQLdgEWVCQ1iLIweQYsG0UgcIDtzgPYMGB4hCDWB/r/yWlOTl8N DrSLGVS1QMvH4lN2qobiKVu7E7ON5HmEVQenYJMs09ns639k34z6S9lOZuwRMOTs6KDz 8fjQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id y24-v6si1390354pll.412.2018.02.28.08.10.36; Wed, 28 Feb 2018 08:10:51 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S934614AbeB1QIt (ORCPT + 99 others); Wed, 28 Feb 2018 11:08:49 -0500 Received: from shadbolt.e.decadent.org.uk ([88.96.1.126]:34965 "EHLO shadbolt.e.decadent.org.uk" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S934597AbeB1QIq (ORCPT ); Wed, 28 Feb 2018 11:08:46 -0500 Received: from [2a02:8011:400e:2:6f00:88c8:c921:d332] (helo=deadeye) by shadbolt.decadent.org.uk with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1er3Yn-0006Xi-WD; Wed, 28 Feb 2018 15:22:26 +0000 Received: from ben by deadeye with local (Exim 4.90_1) (envelope-from ) id 1er3Yk-0000IW-KF; Wed, 28 Feb 2018 15:22:22 +0000 Content-Type: text/plain; charset="UTF-8" Content-Disposition: inline Content-Transfer-Encoding: 8bit MIME-Version: 1.0 From: Ben Hutchings To: linux-kernel@vger.kernel.org, stable@vger.kernel.org CC: akpm@linux-foundation.org Date: Wed, 28 Feb 2018 15:20:18 +0000 Message-ID: X-Mailer: LinuxStableQueue (scripts by bwh) Subject: [PATCH 3.16 231/254] of: fdt: Fix return with value in void function In-Reply-To: X-SA-Exim-Connect-IP: 2a02:8011:400e:2:6f00:88c8:c921:d332 X-SA-Exim-Mail-From: ben@decadent.org.uk X-SA-Exim-Scanned: No (on shadbolt.decadent.org.uk); SAEximRunCond expanded to false Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 3.16.55-rc1 review patch. If anyone has any objections, please let me know. ------------------ From: Ben Hutchings Commit 49e67dd17649 "of: fdt: add missing allocation-failure check" added a "return NULL" statement in __unflatten_device_tree(). When applied to the 3.16-stable branch, this introduced a compiler warning (not an error!) because the function returns void here. Signed-off-by: Ben Hutchings --- --- a/drivers/of/fdt.c +++ b/drivers/of/fdt.c @@ -381,7 +381,7 @@ static void __unflatten_device_tree(void /* 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);