Received: by 10.223.164.202 with SMTP id h10csp280551wrb; Mon, 6 Nov 2017 06:33:29 -0800 (PST) X-Google-Smtp-Source: ABhQp+SYS1iB4AZKGzu9yLiakO7biyofjASVbhATvwJaLX5YagGPVJIqrRqdXxmnJ1TEOyeY2KdO X-Received: by 10.99.157.133 with SMTP id i127mr15799704pgd.204.1509978809387; Mon, 06 Nov 2017 06:33:29 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1509978809; cv=none; d=google.com; s=arc-20160816; b=L2LhTS723EjvsGXNm04u/mrnj7X863A/h007xQIouOuk4HERpNxet5poJ1iC+/PgqO z2aMAvaCwA/ZXAUhFffXoEmx4yFjA6zowCuwuGiI7dDwbPRkWyxM+jvLK6+4exdGU5kw h9tr1GPFeUJF5wO7Nifl6umdGPcfGEY4/FYLlMoz6Q8nb8juJ6SDpK4yIeTRTveBfIUn iU9P16CdTLnUpklkiYl4Yqp1TddYT8lyYxrIHCV9EBJXPOyI/06w9zhGxpfq7mKguPBr 8njuvLdmpuWYLEqaDRI61gnqlPIZ6SMvYfh9lcfFjln/EZzNAsbLBbVWGJ8ssL2QgWXL cFXA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :references:in-reply-to:mime-version:dmarc-filter :arc-authentication-results; bh=6G/wxOzyqBKys96I/OnpRTZnpamZuIqFHcqCOBvfhcQ=; b=NckFGnU+4vcbT0sEYVNsp0erxVcTPIm7Ip1s7LFJDLyZ5J8fnFJ5d+WGNoPBlgL9g2 4CyySbge38BHex+wavZsQryz4N1wsE84fAPuUd6cmMokBqp/x5VPPVJmX7xvxyO5gJQP c4OUVKWsDUoi/8mqIKyDXV4rGgczPlLLvPmelFMjr8wikQmExbbLw1mqIY6nG0uAmVdN KCD8JOvpKTce0udNIuFgezEtHMGMoRgRK5DtnXcviOWXJ+CsGJz5CzS8a5PXCfiVddfb ofTmEa7iCbn6UlN5Dy2OrZVIYirn6lNMQH8Wv8T05O4S12vfx64xg6LrTp2+dA63MXb3 L2Jw== 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 j75si12381327pfj.26.2017.11.06.06.33.14; Mon, 06 Nov 2017 06:33:29 -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 S1753538AbdKFOcQ (ORCPT + 97 others); Mon, 6 Nov 2017 09:32:16 -0500 Received: from mail.kernel.org ([198.145.29.99]:33218 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752425AbdKFOcO (ORCPT ); Mon, 6 Nov 2017 09:32:14 -0500 Received: from mail-qk0-f172.google.com (mail-qk0-f172.google.com [209.85.220.172]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 9B6BC21870; Mon, 6 Nov 2017 14:32:13 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 9B6BC21870 Authentication-Results: mail.kernel.org; dmarc=none (p=none dis=none) header.from=kernel.org Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=robh+dt@kernel.org Received: by mail-qk0-f172.google.com with SMTP id 78so4168886qkz.0; Mon, 06 Nov 2017 06:32:13 -0800 (PST) X-Gm-Message-State: AMCzsaUEOgW6BQP50yDhiS95/uqKK/WiRvmJpXncb6h2q0l5PlmphMtY +pMgKC8fTT/w5k7YfHTLtV2MEALO5J0jfsP/vA== X-Received: by 10.55.137.196 with SMTP id l187mr21419923qkd.134.1509978732779; Mon, 06 Nov 2017 06:32:12 -0800 (PST) MIME-Version: 1.0 Received: by 10.12.130.134 with HTTP; Mon, 6 Nov 2017 06:31:52 -0800 (PST) In-Reply-To: <20171106132627.150459-1-arnd@arndb.de> References: <20171106132627.150459-1-arnd@arndb.de> From: Rob Herring Date: Mon, 6 Nov 2017 08:31:52 -0600 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [PATCH] [net-next?] of: add of_property_read_variable_* dummy helpers To: Arnd Bergmann Cc: Vivien Didelot , "David S . Miller" , Frank Rowand , netdev , Sakari Ailus , Grant Likely , "Rafael J. Wysocki" , "devicetree@vger.kernel.org" , "linux-kernel@vger.kernel.org" Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, Nov 6, 2017 at 7:26 AM, Arnd Bergmann wrote: > 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 > --- > DT maintainers: there is currently a build break in the net-next tree > (from branch "dsa-parsing-stage") because of this, I think the best > way forward would be to get an Ack for this patch to get picked up > through the netdev trees. Fine by me. > --- > include/linux/of.h | 62 +++++++++++++++++++++++++++++++++++++++++++----------- > 1 file changed, 50 insertions(+), 12 deletions(-) Acked-by: Rob Herring From 1583323619223233215@xxx Mon Nov 06 13:31:10 +0000 2017 X-GM-THRID: 1583323619223233215 X-Gmail-Labels: Inbox,Category Forums,HistoricalUnread