From patchwork Tue Oct 8 10:34:09 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Majunath Goudar X-Patchwork-Id: 3002581 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 5F8C79F1E1 for ; Tue, 8 Oct 2013 10:35:42 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id AE83920150 for ; Tue, 8 Oct 2013 10:35:37 +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 5FE2F2014A for ; Tue, 8 Oct 2013 10:35:36 +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 1VTUd9-00054F-J1; Tue, 08 Oct 2013 10:35:07 +0000 Received: from localhost ([::1] helo=merlin.infradead.org) by merlin.infradead.org with esmtp (Exim 4.80.1 #2 (Red Hat Linux)) id 1VTUcs-0002IJ-6a; Tue, 08 Oct 2013 10:34:50 +0000 Received: from mail-pd0-x22d.google.com ([2607:f8b0:400e:c02::22d]) by merlin.infradead.org with esmtps (Exim 4.80.1 #2 (Red Hat Linux)) id 1VTUcp-0002Gq-3e for linux-arm-kernel@lists.infradead.org; Tue, 08 Oct 2013 10:34:47 +0000 Received: by mail-pd0-f173.google.com with SMTP id p10so8480725pdj.32 for ; Tue, 08 Oct 2013 03:34:24 -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=OW2jetP9uDCtyFYmnp+ARHPdRcwcn6yKpsjsX5Lor3s=; b=xkCrJHlBWF2ieJICbuuXErb71Totkv26bDqPMGhFE+123JP1rYCjOJQHJHm4//g2ZA 02NJWqj1bBgBjyBwsDtzssp+w5CkfBrXrZ4euYuAJpRORFpOc1r8I5Q87yOx7T4ca+FU 9UhH1YiSd9DGbcKwqiwTtbs9QkWL5xheFrLBJWkC4FGNfTryHC3UOSk6DtEiBNPjgprm 5xa5k/sdyeUabv4H56Ubvx9x98HUJvztrnVW3DDujNQiB0kbIxlsvs2eH9oSsMD9/ALh o0u25OPmsxe8Snvs0hsAYaCU+mG+tVcPBKZ/Ryz04AdWAE22XIN4xuNSLakmTV14p3T1 CkAA== X-Received: by 10.66.242.17 with SMTP id wm17mr2755930pac.102.1381228464748; Tue, 08 Oct 2013 03:34:24 -0700 (PDT) Received: from manjunath-Latitude-E6420.LGE.NET ([203.247.149.152]) by mx.google.com with ESMTPSA id lm2sm46332227pab.2.1969.12.31.16.00.00 (version=TLSv1.1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Tue, 08 Oct 2013 03:34:23 -0700 (PDT) From: Majunath Goudar To: linux-arm-kernel@lists.infradead.org Subject: [PATCH] BUS: CCI : Fix arm-cci implicit declarations dependence errors. Date: Tue, 8 Oct 2013 16:04:09 +0530 Message-Id: <1381228449-19575-1-git-send-email-csmanjuvijay@gmail.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-20131008_063447_246517_C273FF0B X-CRM114-Status: GOOD ( 13.86 ) X-Spam-Score: 0.1 (/) Cc: Arnd Bergmann , Alexander Shiyan , Tony Lindgren , linux-kernel@vger.kernel.org, Majunath Goudar , nataraja.km@lge.com, Shawn Guo 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=-2.3 required=5.0 tests=BAYES_00, DKIM_ADSP_CUSTOM_MED, DKIM_SIGNED,FREEMAIL_FROM,RCVD_IN_BL_SPAMCOP_NET,RCVD_IN_DNSWL_MED, RCVD_IN_SORBS_WEB,RP_MATCHES_RCVD,T_DKIM_INVALID,UNPARSEABLE_RELAY autolearn=ham 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 OF dependency to configure the ARM_CCI in drivers/bus/Kconfig. Without this patch, build system can lead to build failure. This was observed during randconfig testing, in which ARM_CCI was enabled w/o OF being enabled. Following was the error: CC drivers/bus/arm-cci.o drivers/bus/arm-cci.c: In function ‘cci_ace_init_ports’: drivers/bus/arm-cci.c:131:2: error: implicit declaration of function ‘of_find_node_by_path’ [-Werror=implicit-function-declaration] cpus = of_find_node_by_path("/cpus"); ^ drivers/bus/arm-cci.c:131:7: warning: assignment makes pointer from integer without a cast [enabled by default] cpus = of_find_node_by_path("/cpus"); ^ cc1: some warnings being treated as errors make[2]: *** [drivers/bus/arm-cci.o] Error 1 make[1]: *** [drivers/bus] Error 2 Signed-off-by: Manjunath Goudar Cc: Tony Lindgren Cc: Shawn Guo Cc: Arnd Bergmann Cc: Alexander Shiyan Cc: linux-kernel@vger.kernel.org --- drivers/bus/Kconfig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/bus/Kconfig b/drivers/bus/Kconfig index 552373c..e522bd6 100644 --- a/drivers/bus/Kconfig +++ b/drivers/bus/Kconfig @@ -37,7 +37,7 @@ config OMAP_INTERCONNECT config ARM_CCI bool "ARM CCI driver support" - depends on ARM + depends on ARM && OF help Driver supporting the CCI cache coherent interconnect for ARM platforms.