From patchwork Fri Nov 7 16:25:26 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Mark Rutland X-Patchwork-Id: 40432 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-la0-f71.google.com (mail-la0-f71.google.com [209.85.215.71]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id D6FC420D85 for ; Fri, 7 Nov 2014 16:26:48 +0000 (UTC) Received: by mail-la0-f71.google.com with SMTP id gq15sf3208192lab.10 for ; Fri, 07 Nov 2014 08:26:47 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:delivered-to:from:to:cc:subject :date:message-id:in-reply-to:references:sender:precedence:list-id :x-original-sender:x-original-authentication-results:mailing-list :list-post:list-help:list-archive:list-unsubscribe; bh=+Lb5TRnylGH66Fmzhb6CEI6cPpayZB9TKh2+jyQSbns=; b=WdlUZMKyQAqv0Hi9rvx2i6UJPSvUYaY22ns+k4E8Vz5I60FTfOeda0cpfLiR6hj32h 8vjlaqDcTvdF/rOi0se0WlTm5ddhcakFJwqP48lDu2mugQt1ByBwz+e2UJxAX3OoG34V JmM0T37M0VbOywboorM33HqBNI00d2qoCcfDrL7khVunsYYyGW6qZcTEqCr9ikWnzg4Z zfyIvpO0QOchg6Yn5P2p1TU84tztPduEA0M0iVNmUZybvOsK6Gjjo+T1NAqUakYg2cBU YITBJtYEjPw5zusMxIKXmW56iIV4n528ylIIzJ2DvPtCDoO8f85iNeNRtI0csCrs/kga FLTA== X-Gm-Message-State: ALoCoQnyQE7tuSXZlKEERcDP7U9YllxHUCn14WsOlKRaz83GXWXlzKAjn0URgUpIzhYlpop3dP+x X-Received: by 10.112.32.163 with SMTP id k3mr235625lbi.17.1415377607754; Fri, 07 Nov 2014 08:26:47 -0800 (PST) MIME-Version: 1.0 X-BeenThere: patchwork-forward@linaro.org Received: by 10.152.7.66 with SMTP id h2ls182649laa.58.gmail; Fri, 07 Nov 2014 08:26:47 -0800 (PST) X-Received: by 10.112.73.103 with SMTP id k7mr12204800lbv.41.1415377607471; Fri, 07 Nov 2014 08:26:47 -0800 (PST) Received: from mail-lb0-f178.google.com (mail-lb0-f178.google.com. [209.85.217.178]) by mx.google.com with ESMTPS id 9si15599621law.76.2014.11.07.08.26.47 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Fri, 07 Nov 2014 08:26:47 -0800 (PST) Received-SPF: pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.217.178 as permitted sender) client-ip=209.85.217.178; Received: by mail-lb0-f178.google.com with SMTP id f15so3237789lbj.37 for ; Fri, 07 Nov 2014 08:26:47 -0800 (PST) X-Received: by 10.112.12.35 with SMTP id v3mr3857138lbb.80.1415377607040; Fri, 07 Nov 2014 08:26:47 -0800 (PST) X-Forwarded-To: patchwork-forward@linaro.org X-Forwarded-For: patch@linaro.org patchwork-forward@linaro.org Delivered-To: patch@linaro.org Received: by 10.112.184.201 with SMTP id ew9csp228287lbc; Fri, 7 Nov 2014 08:26:46 -0800 (PST) X-Received: by 10.66.254.164 with SMTP id aj4mr13261343pad.116.1415377605507; Fri, 07 Nov 2014 08:26:45 -0800 (PST) Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id ay14si9396718pdb.210.2014.11.07.08.26.42 for ; Fri, 07 Nov 2014 08:26:45 -0800 (PST) Received-SPF: none (google.com: linux-kernel-owner@vger.kernel.org does not designate permitted sender hosts) client-ip=209.132.180.67; Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752380AbaKGQ0k (ORCPT + 25 others); Fri, 7 Nov 2014 11:26:40 -0500 Received: from cam-admin0.cambridge.arm.com ([217.140.96.50]:48261 "EHLO cam-admin0.cambridge.arm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752258AbaKGQ0j (ORCPT ); Fri, 7 Nov 2014 11:26:39 -0500 Received: from leverpostej.cambridge.arm.com (leverpostej.cambridge.arm.com [10.1.205.151]) by cam-admin0.cambridge.arm.com (8.12.6/8.12.6) with ESMTP id sA7GPwwp014702; Fri, 7 Nov 2014 16:26:15 GMT From: Mark Rutland To: linux-arm-kernel@lists.infradead.org Cc: linux-kernel@vger.kernel.org, will.deacon@arm.com, Mark Rutland , Rob Herring , Grant Likely Subject: [PATCH 01/11] of: Add empty of_get_next_parent stub Date: Fri, 7 Nov 2014 16:25:26 +0000 Message-Id: <1415377536-12841-2-git-send-email-mark.rutland@arm.com> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1415377536-12841-1-git-send-email-mark.rutland@arm.com> References: <1415377536-12841-1-git-send-email-mark.rutland@arm.com> Sender: linux-kernel-owner@vger.kernel.org Precedence: list List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Removed-Original-Auth: Dkim didn't pass. X-Original-Sender: mark.rutland@arm.com X-Original-Authentication-Results: mx.google.com; spf=pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.217.178 as permitted sender) smtp.mail=patch+caf_=patchwork-forward=linaro.org@linaro.org Mailing-list: list patchwork-forward@linaro.org; contact patchwork-forward+owners@linaro.org X-Google-Group-Id: 836684582541 List-Post: , List-Help: , List-Archive: List-Unsubscribe: , There's no stub version of of_get_next_parent, so use in code compiled without !CONFIG_OF will cause the kernel build to fail. This patch adds a stub version of of_get_next_parent as is with other !CONFIG_OF stub functions, so such code can compile without CONFIG_OF. Signed-off-by: Mark Rutland Cc: Rob Herring Cc: Grant Likely --- include/linux/of.h | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/include/linux/of.h b/include/linux/of.h index 6545e7a..2d4b7e0 100644 --- a/include/linux/of.h +++ b/include/linux/of.h @@ -392,6 +392,11 @@ static inline struct device_node *of_get_parent(const struct device_node *node) return NULL; } +static inline struct device_node *of_get_next_parent(struct device_node *node) +{ + return NULL; +} + static inline struct device_node *of_get_next_child( const struct device_node *node, struct device_node *prev) {