From patchwork Mon Aug 5 09:07:04 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Manjunath Goudar X-Patchwork-Id: 2838608 Return-Path: X-Original-To: patchwork-linux-arm@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork2.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.19.201]) by patchwork2.web.kernel.org (Postfix) with ESMTP id EC924BF535 for ; Mon, 5 Aug 2013 09:13:21 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id ABB9220205 for ; Mon, 5 Aug 2013 09:13:20 +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 7EE6720202 for ; Mon, 5 Aug 2013 09:13:18 +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 1V6Gqn-0007ES-4J; Mon, 05 Aug 2013 09:13:13 +0000 Received: from localhost ([::1] helo=merlin.infradead.org) by merlin.infradead.org with esmtp (Exim 4.80.1 #2 (Red Hat Linux)) id 1V6Gqk-0007WZ-Vk; Mon, 05 Aug 2013 09:13:10 +0000 Received: from mail-pb0-f49.google.com ([209.85.160.49]) by merlin.infradead.org with esmtps (Exim 4.80.1 #2 (Red Hat Linux)) id 1V6Gqh-0007VN-BC for linux-arm-kernel@lists.infradead.org; Mon, 05 Aug 2013 09:13:08 +0000 Received: by mail-pb0-f49.google.com with SMTP id xb4so3097926pbc.36 for ; Mon, 05 Aug 2013 02:12:44 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=from:to:cc:subject:date:message-id:x-mailer:x-gm-message-state; bh=vB+TeYTpgokXA1wb7+ZpQsFkbjzA4w7KUmcNuhN3lpI=; b=YUoSWvOYlDqjjZ+ZkovYEZJQxB48XRknuer3CSG5vieJLDX6SIP2AClN5z0uttzn/i 7aHypBWjIbjlMkJTLgAkuX38U8Ml2engaIBjiULYiVdK3OjSMuYfYhIiyGeKBtGdR6Oc yGaUEps5tx5Jg9wx62AgFKyH2v6AhRbyvYE6kohEujm82ld2+BDSR6ym1oEfwcvUColo XJtolZ9fphTICy5HaGNcEvTIVjCvgAf5RtVF+Nfsult7YaaoA9eVxJsiaLNAF4nBhLQy xcfZmNdb6xhypguSHyk7kAufPaqvGyqbAMCBDQzh7Fj39zrXegVJ0YnY73j6Ue2cTKEd Z1+g== X-Received: by 10.66.119.74 with SMTP id ks10mr24087897pab.179.1375693641249; Mon, 05 Aug 2013 02:07:21 -0700 (PDT) Received: from manjunath-Latitude-E6420.LGE.NET ([203.247.149.152]) by mx.google.com with ESMTPSA id qp10sm24010352pab.13.2013.08.05.02.07.15 for (version=TLSv1.1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Mon, 05 Aug 2013 02:07:20 -0700 (PDT) From: Manjunath Goudar To: linux-arm-kernel@lists.infradead.org Subject: [PATCH] mach-ks8695/Kconfig: Make MACH_KS8695 depends on PCI Date: Mon, 5 Aug 2013 14:37:04 +0530 Message-Id: <1375693624-21548-1-git-send-email-manjunath.goudar@linaro.org> X-Mailer: git-send-email 1.7.9.5 X-Gm-Message-State: ALoCoQkFqohTUsYdLqG4dYSqpXq1d5w8iaP8g/TNZWjm+DMAOVzMmQA8zVA7pV23Dw3PFtSwvkpg X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20130805_051307_483179_514D6CA9 X-CRM114-Status: GOOD ( 10.02 ) X-Spam-Score: -1.8 (-) Cc: linaro-kernel@lists.linaro.org, Arnd Bergmann , patches@linaro.org, root , manjunath.goudar@linaro.org, dsaxena@linaro.org, Greg Ungerer , arnd@linaro.org 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: , MIME-Version: 1.0 Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org X-Spam-Status: No, score=-3.4 required=5.0 tests=BAYES_00, RCVD_IN_DNSWL_MED, RCVD_IN_SORBS_WEB,RP_MATCHES_RCVD,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 From: root This patch adds a Kconfig dependency on MACH_KS8695,MACH_CM* or MACH_IM* being available before PCI can be enabled. Without this patch,build system can lead to issues. This was discovered during randconfig testing, without PCI if any one of MACH_KS8695,MACH_CM* or MACH_IM* being enabled, leading to the following error: LD init/built-in.o arch/arm/mach-ks8695/built-in.o: In function `og_register_pci': arch/arm/mach-ks8695/board-og.c:47:undefined reference to `ks8695_init_pci' make: *** [vmlinux] Error 1 Signed-off-by: Manjunath Goudar Cc: Arnd Bergmann Cc: Deepak Saxena Cc: Greg Ungerer Cc: linux-arm-kernel@lists.infradead.org --- arch/arm/mach-ks8695/Kconfig | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/arch/arm/mach-ks8695/Kconfig b/arch/arm/mach-ks8695/Kconfig index a545976..29d7d9f 100644 --- a/arch/arm/mach-ks8695/Kconfig +++ b/arch/arm/mach-ks8695/Kconfig @@ -5,6 +5,7 @@ menu "Kendin/Micrel KS8695 Implementations" config MACH_KS8695 bool "KS8695 development board" select MIGHT_HAVE_PCI + depends on PCI help Say 'Y' here if you want your kernel to run on the original Kendin-Micrel KS8695 development board. @@ -53,6 +54,7 @@ config MACH_CM4002 config MACH_CM4008 bool "OpenGear CM4008" select MIGHT_HAVE_PCI + depends on PCI help Say 'Y' here if you want your kernel to support the OpenGear CM4008 Console Server. See http://www.opengear.com for more @@ -61,6 +63,7 @@ config MACH_CM4008 config MACH_CM41xx bool "OpenGear CM41xx" select MIGHT_HAVE_PCI + depends on PCI help Say 'Y' here if you want your kernel to support the OpenGear CM4016 or CM4048 Console Servers. See http://www.opengear.com for @@ -69,6 +72,7 @@ config MACH_CM41xx config MACH_IM4004 bool "OpenGear IM4004" select MIGHT_HAVE_PCI + depends on PCI help Say 'Y' here if you want your kernel to support the OpenGear IM4004 Secure Access Server. See http://www.opengear.com for @@ -77,6 +81,7 @@ config MACH_IM4004 config MACH_IM42xx bool "OpenGear IM42xx" select MIGHT_HAVE_PCI + depends on PCI help Say 'Y' here if you want your kernel to support the OpenGear IM4216 or IM4248 Console Servers. See http://www.opengear.com for