From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751530AbdKHEgI (ORCPT ); Tue, 7 Nov 2017 23:36:08 -0500 Received: from shards.monkeyblade.net ([184.105.139.130]:33954 "EHLO shards.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750947AbdKHEgH (ORCPT ); Tue, 7 Nov 2017 23:36:07 -0500 Date: Wed, 08 Nov 2017 13:36:02 +0900 (KST) Message-Id: <20171108.133602.1192972972086140265.davem@davemloft.net> To: arnd@arndb.de Cc: vivien.didelot@savoirfairelinux.com, robh+dt@kernel.org, frowand.list@gmail.com, netdev@vger.kernel.org, sakari.ailus@linux.intel.com, grant.likely@secretlab.ca, rafael.j.wysocki@intel.com, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH] [net-next?] of: add of_property_read_variable_* dummy helpers From: David Miller In-Reply-To: <20171106132627.150459-1-arnd@arndb.de> References: <20171106132627.150459-1-arnd@arndb.de> X-Mailer: Mew version 6.7 on Emacs 25.3 / Mule 6.0 (HANACHIRUSATO) Mime-Version: 1.0 Content-Type: Text/Plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Greylist: Sender succeeded SMTP AUTH, not delayed by milter-greylist-4.5.12 (shards.monkeyblade.net [149.20.54.216]); Tue, 07 Nov 2017 20:36:06 -0800 (PST) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Arnd Bergmann Date: Mon, 6 Nov 2017 14:26:10 +0100 > Commit a67e9472da42 ("of: Add array read functions with min/max size > limits") added a new interface for reading variable-length arrays from > DT properties. One user was added in dsa recently and this causes a > build error because that code can be built with CONFIG_OF disabled: > > net/dsa/dsa2.c: In function 'dsa_switch_parse_member_of': > net/dsa/dsa2.c:678:7: error: implicit declaration of function 'of_property_read_variable_u32_array'; did you mean 'of_property_read_u32_array'? [-Werror=implicit-function-declaration] > > This adds a dummy functions for of_property_read_variable_u32_array() > and a few others that had been missing here. I decided to move > of_property_read_string() and of_property_read_string_helper() in the > process to make it easier to compare the two sets of function prototypes > to make sure they match. > > Fixes: 975e6e32215e ("net: dsa: rework switch parsing") > Signed-off-by: Arnd Bergmann Applied, thanks Arnd.