Message ID | 1415377536-12841-2-git-send-email-mark.rutland@arm.com |
---|---|
State | New |
Headers | show
Return-Path: <patchwork-forward+bncBDRMFBMIXEGBBR7F6ORAKGQEHWDQ3WQ@linaro.org> 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 <linaro@patches.linaro.org>; Fri, 7 Nov 2014 16:26:48 +0000 (UTC) Received: by mail-la0-f71.google.com with SMTP id gq15sf3208192lab.10 for <linaro@patches.linaro.org>; 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 <patchwork-forward@linaro.org> (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 <patchwork-forward@linaro.org>; 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 <multiple recipients>; 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 <rfc822;hongbo.zhang@linaro.org> + 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 <rfc822;linux-kernel@vger.kernel.org>); 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 <mark.rutland@arm.com> To: linux-arm-kernel@lists.infradead.org Cc: linux-kernel@vger.kernel.org, will.deacon@arm.com, Mark Rutland <mark.rutland@arm.com>, Rob Herring <rob.herring@kernel.org>, Grant Likely <grant.likely@linaro.org> 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: <patchwork-forward.linaro.org> 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: <http://groups.google.com/a/linaro.org/group/patchwork-forward/post>, <mailto:patchwork-forward@linaro.org> List-Help: <http://support.google.com/a/linaro.org/bin/topic.py?topic=25838>, <mailto:patchwork-forward+help@linaro.org> List-Archive: <http://groups.google.com/a/linaro.org/group/patchwork-forward/> List-Unsubscribe: <mailto:googlegroups-manage+836684582541+unsubscribe@googlegroups.com>, <http://groups.google.com/a/linaro.org/group/patchwork-forward/subscribe> |
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) {
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 <mark.rutland@arm.com> Cc: Rob Herring <rob.herring@kernel.org> Cc: Grant Likely <grant.likely@linaro.org> --- include/linux/of.h | 5 +++++ 1 file changed, 5 insertions(+)