From patchwork Tue Oct 8 14:51:42 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Majunath Goudar X-Patchwork-Id: 3004011 Return-Path: X-Original-To: patchwork-linux-arm@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork1.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.19.201]) by patchwork1.web.kernel.org (Postfix) with ESMTP id BA1CD9F1E1 for ; Tue, 8 Oct 2013 14:53:02 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 9DB9F2017D for ; Tue, 8 Oct 2013 14:53:01 +0000 (UTC) Received: from casper.infradead.org (casper.infradead.org [85.118.1.10]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 48FDB2017A for ; Tue, 8 Oct 2013 14:53:00 +0000 (UTC) Received: from merlin.infradead.org ([2001:4978:20e::2]) by casper.infradead.org with esmtps (Exim 4.80.1 #2 (Red Hat Linux)) id 1VTYeM-0002z9-57; Tue, 08 Oct 2013 14:52:38 +0000 Received: from localhost ([::1] helo=merlin.infradead.org) by merlin.infradead.org with esmtp (Exim 4.80.1 #2 (Red Hat Linux)) id 1VTYeE-0001wM-Cg; Tue, 08 Oct 2013 14:52:30 +0000 Received: from mail-pb0-x234.google.com ([2607:f8b0:400e:c01::234]) by merlin.infradead.org with esmtps (Exim 4.80.1 #2 (Red Hat Linux)) id 1VTYe9-0001uC-AC for linux-arm-kernel@lists.infradead.org; Tue, 08 Oct 2013 14:52:26 +0000 Received: by mail-pb0-f52.google.com with SMTP id wz12so8645384pbc.25 for ; Tue, 08 Oct 2013 07:52:02 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-type:content-transfer-encoding; bh=KshVmxS10wdzjZVb0FuEP4nRbgckRVdmDcDef6TEHu0=; b=PSpL36PXSVXdFxVa/EBsdrBBbQbGGmloh8bNTMSvnNgTKDb135plW3YQDJzP8Tf5o+ QnScSopqkKYUXkvMtcnkyM2MJvashg7x9hoPj/1ZPb0xffKwNvZqqm5HeXduzVkP7lhC MuPNffqBqnpMJXJyERIoL3bBAKycQiel4awTvK08kubx2lZEIIJUv8IEwbFfdqq/8WVZ RKwzmArq8tIa9B42c8UCjLacPqRmLcYAEh7ppw3+yaMQc7jPWrXrpiPyAbb9giJFnL4Q NMmPfUaZGevKQmFcXAOSNcgL9SdngN1OZiePNUI16VKBGgrbNFRQ0s9YO61ntq8k41vH Jpmw== X-Received: by 10.66.255.104 with SMTP id ap8mr4108550pad.53.1381243922756; Tue, 08 Oct 2013 07:52:02 -0700 (PDT) Received: from localhost.localdomain ([223.238.236.225]) by mx.google.com with ESMTPSA id py4sm40556069pbb.33.1969.12.31.16.00.00 (version=TLSv1.1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Tue, 08 Oct 2013 07:52:01 -0700 (PDT) From: Majunath Goudar To: linux-arm-kernel@lists.infradead.org Subject: [PATCH] VEXPRESS: Fix VEXPRESS implicit declarations dependence errors. Date: Tue, 8 Oct 2013 20:21:42 +0530 Message-Id: <1381243903-27952-1-git-send-email-csmanjuvijay@gmail.com> X-Mailer: git-send-email 1.7.9.5 In-Reply-To: <1381228895-24814-1-git-send-email-csmanjuvijay@gmail.com> References: <1381228895-24814-1-git-send-email-csmanjuvijay@gmail.com> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20131008_105225_485362_A2A2B1A9 X-CRM114-Status: GOOD ( 12.02 ) X-Spam-Score: -2.0 (--) Cc: devicetree@vger.kernel.org, Samuel Ortiz , Pawel Moll , linux-kernel@vger.kernel.org, Rob Herring , Majunath Goudar , Grant Likely , nataraja.km@lge.com, Lee Jones X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org X-Spam-Status: No, score=-4.4 required=5.0 tests=BAYES_00, DKIM_ADSP_CUSTOM_MED, DKIM_SIGNED, FREEMAIL_FROM, RCVD_IN_DNSWL_MED, RP_MATCHES_RCVD, T_DKIM_INVALID, UNPARSEABLE_RELAY autolearn=unavailable version=3.3.1 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mail.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP This patch adds a inline dummy implementations of_find_node_by_phandle() and of_get_next_parent() in "#ifdef CONFIG_OF" else part. Without this patch,build system can lead to issues. This was discovered during randconfig testing,in which VEXPRESS_CONFIG was enabled w/o CONFIG_OF being enabled,leading to the following error: CC drivers/mfd/vexpress-config.o drivers/mfd/vexpress-config.c: In function ‘__vexpress_config_func_get’: drivers/mfd/vexpress-config.c:117:4: error: implicit declaration of function ‘of_find_node_by_phandle’ [-Werror=implicit-function-declaration] bridge_node = of_find_node_by_phandle( ^ drivers/mfd/vexpress-config.c:117:16: warning: assignment makes pointer from integer without a cast [enabled by default] bridge_node = of_find_node_by_phandle( Signed-off-by: Manjunath Goudar Cc: Grant Likely Cc: Rob Herring Cc: Pawel Moll Cc: Samuel Ortiz Cc: Lee Jones Cc: devicetree@vger.kernel.org Cc: linux-kernel@vger.kernel.org --- include/linux/of.h | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/include/linux/of.h b/include/linux/of.h index f95aee3..968787d 100644 --- a/include/linux/of.h +++ b/include/linux/of.h @@ -340,6 +340,15 @@ int of_device_is_stdout_path(struct device_node *dn); #else /* CONFIG_OF */ +static inline struct device_node *of_find_node_by_phandle(phandle handle) +{ + return NULL; +} +static inline struct device_node *of_get_next_parent(struct device_node *node) +{ + return NULL; +} + static inline const char* of_node_full_name(struct device_node *np) { return "";