From patchwork Mon Oct 14 10:22:27 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Majunath Goudar X-Patchwork-Id: 283171 Return-Path: X-Original-To: incoming-imx@patchwork.ozlabs.org Delivered-To: patchwork-incoming-imx@bilbo.ozlabs.org Received: from casper.infradead.org (unknown [IPv6:2001:770:15f::2]) (using TLSv1.2 with cipher DHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by ozlabs.org (Postfix) with ESMTPS id 7E0A42C0339 for ; Mon, 14 Oct 2013 21:30:53 +1100 (EST) Received: from merlin.infradead.org ([2001:4978:20e::2]) by casper.infradead.org with esmtps (Exim 4.80.1 #2 (Red Hat Linux)) id 1VVfQ9-0004H1-D0; Mon, 14 Oct 2013 10:30:41 +0000 Received: from localhost ([::1] helo=merlin.infradead.org) by merlin.infradead.org with esmtp (Exim 4.80.1 #2 (Red Hat Linux)) id 1VVfQ7-0001Kv-1Y; Mon, 14 Oct 2013 10:30:39 +0000 Received: from mail-pd0-x230.google.com ([2607:f8b0:400e:c02::230]) by merlin.infradead.org with esmtps (Exim 4.80.1 #2 (Red Hat Linux)) id 1VVfQ3-0001KX-Ip for linux-arm-kernel@lists.infradead.org; Mon, 14 Oct 2013 10:30:36 +0000 Received: by mail-pd0-f176.google.com with SMTP id q10so7184679pdj.35 for ; Mon, 14 Oct 2013 03:30:14 -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:mime-version:content-type :content-transfer-encoding; bh=DDU50PQytQ1c1UjIBQqZXX0UewXbdY9dtOEIS04t+pI=; b=aE6WMhvOuFP7Sav4P/zb+v1Et5hRc1i0G+fLLTjs6oInMSd6H8v3siVpaR8ib+ivHf SxkgSZ/Zyx4nbMPQ7xWa+G/VlrNOYoIXa0NliuTt2ReH5UgeG2vyHgh9lzg4ChS5Uq38 Xuw3xYwnDHgEBjJ68hLCzXtDz5rLm/B5/+g/ucVYppHI2wMHVgOSRbDbYgtEkHgdckNF hkTcYTuslljVFVpJRVv/27zmFumZGxtpRi6Y3xwGWw+LNtkDM9FLbeVq48XWiabgc+O/ 9Zbnp4Wl9nEyxJ8zIQn4L/Y4wObqwCrIGd7cAjF7I+WZRJRHfbuDIGQMagHCtnRVcBld zqig== X-Received: by 10.67.3.3 with SMTP id bs3mr12602197pad.46.1381746164321; Mon, 14 Oct 2013 03:22:44 -0700 (PDT) Received: from manjunath-Latitude-E6420.LGE.NET ([203.247.149.152]) by mx.google.com with ESMTPSA id yo2sm90383172pab.8.1969.12.31.16.00.00 (version=TLSv1.1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Mon, 14 Oct 2013 03:22:43 -0700 (PDT) From: Majunath Goudar To: linux-arm-kernel@lists.infradead.org Subject: [PATCH] ARM: CCI : Fix implicit declaration of function error Date: Mon, 14 Oct 2013 15:52:27 +0530 Message-Id: <1381746147-13830-1-git-send-email-manju.goudar@lge.com> X-Mailer: git-send-email 1.7.9.5 MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20131014_063035_753286_C3224C65 X-CRM114-Status: GOOD ( 12.16 ) X-Spam-Score: 0.1 (/) X-Spam-Report: SpamAssassin version 3.3.2 on merlin.infradead.org summary: Content analysis details: (0.1 points) pts rule name description ---- ---------------------- -------------------------------------------------- 1.3 RCVD_IN_BL_SPAMCOP_NET RBL: Received via a relay in bl.spamcop.net [Blocked - see ] 0.8 RCVD_IN_SORBS_WEB RBL: SORBS: sender is an abusable web server [203.247.149.152 listed in dnsbl.sorbs.net] 0.0 FREEMAIL_FROM Sender email is commonly abused enduser mail provider (csmanjuvijay[at]gmail.com) -0.0 SPF_PASS SPF: sender matches SPF record -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% [score: 0.0000] -0.1 DKIM_VALID_AU Message has a valid DKIM or DK signature from author's domain 0.1 DKIM_SIGNED Message has a DKIM or DK signature, not necessarily valid -0.1 DKIM_VALID Message has at least one valid DKIM or DK signature Cc: devicetree@vger.kernel.org, Majunath Goudar , linux-kernel@vger.kernel.org, Rob Herring , Grant Likely , nataraja.km@lge.com X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.15 Precedence: list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+incoming-imx=patchwork.ozlabs.org@lists.infradead.org List-Id: linux-imx-kernel.lists.patchwork.ozlabs.org This patch adds a inline dummy implementations of_find_matching_node() in "#ifdef CONFIG_OF" else part. Without this patch,build system can lead to issues. This was discovered during randconfig testing,in which ARM_CCI was enabled w/o CONFIG_OF being enabled,leading to the following error: CC drivers/bus/arm-cci.o drivers/bus/arm-cci.c: In function ‘cci_probe’: drivers/bus/arm-cci.c:971:2: error: implicit declaration of function ‘of_find_matching_node’ [-Werror=implicit-function-declaration] cc1: some warnings being treated as errors make[2]: *** [drivers/bus/arm-cci.o] Error 1 make[1]: *** [drivers/bus] Error 2 make: *** [drivers] Error 2 Signed-off-by: Manjunath Goudar Cc: Grant Likely Cc: Rob Herring Cc: devicetree@vger.kernel.org Cc: linux-kernel@vger.kernel.org --- include/linux/of.h | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/include/linux/of.h b/include/linux/of.h index f95aee3..2c57aa2 100644 --- a/include/linux/of.h +++ b/include/linux/of.h @@ -340,6 +340,13 @@ int of_device_is_stdout_path(struct device_node *dn); #else /* CONFIG_OF */ +static inline struct device_node *of_find_matching_node( + struct device_node *from, + const struct of_device_id *matches) +{ + return NULL; +} + static inline const char* of_node_full_name(struct device_node *np) { return "";