From patchwork Tue Oct 2 16:36:46 2012 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Arnd Bergmann X-Patchwork-Id: 11957 Return-Path: X-Original-To: patchwork@peony.canonical.com Delivered-To: patchwork@peony.canonical.com Received: from fiordland.canonical.com (fiordland.canonical.com [91.189.94.145]) by peony.canonical.com (Postfix) with ESMTP id 97A0323EFF for ; Tue, 2 Oct 2012 16:37:25 +0000 (UTC) Received: from mail-ie0-f180.google.com (mail-ie0-f180.google.com [209.85.223.180]) by fiordland.canonical.com (Postfix) with ESMTP id 48A5DA18710 for ; Tue, 2 Oct 2012 16:37:25 +0000 (UTC) Received: by mail-ie0-f180.google.com with SMTP id e10so14609099iej.11 for ; Tue, 02 Oct 2012 09:37:25 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=x-forwarded-to:x-forwarded-for:delivered-to:received-spf:from:to:cc :subject:date:message-id:x-mailer:in-reply-to:references :x-provags-id:x-gm-message-state; bh=LtVXTwdyQaDscnYpOswSnwvmQMWjw4KblReV1UjSYRo=; b=BziBqgp9FIpm5z5FMf71DfV3kCmBaWBZli7p+ltnj8ixIAaR2LVZid5aS5SsgbPgGB maaoK9B9HhJ7BzFGa8AoPW+Dd/4GAy4Df507AxfxrHDjTrXvJTcfL5s+7qRkEdXUEAPe s/LgDZzMKocIPgNpwcUGTVvZh+FCHOuPvqtbmbIQdENlPRL4FqAGwnmf0H9ziA66jso9 Fy8i2zAciIebwQyy+9A5zl1KdaYFbg13Wm0yfcFYjKZ381bGE73ISkTFj+lrO0SU/dpY 4ZS1p22a+tyy+3pP4jPun9GEhBETyjKRM/kSpQJImXmkau+c2MRU1np2Q9VdU5AwmY2f 9Ilg== Received: by 10.50.160.165 with SMTP id xl5mr9543173igb.0.1349195845085; Tue, 02 Oct 2012 09:37:25 -0700 (PDT) X-Forwarded-To: linaro-patchwork@canonical.com X-Forwarded-For: patch@linaro.org linaro-patchwork@canonical.com Delivered-To: patches@linaro.org Received: by 10.50.184.232 with SMTP id ex8csp92069igc; Tue, 2 Oct 2012 09:37:24 -0700 (PDT) Received: by 10.180.78.102 with SMTP id a6mr23095678wix.20.1349195843736; Tue, 02 Oct 2012 09:37:23 -0700 (PDT) Received: from moutng.kundenserver.de (moutng.kundenserver.de. [212.227.17.9]) by mx.google.com with ESMTPS id u8si24163579wiw.9.2012.10.02.09.37.23 (version=TLSv1/SSLv3 cipher=OTHER); Tue, 02 Oct 2012 09:37:23 -0700 (PDT) Received-SPF: neutral (google.com: 212.227.17.9 is neither permitted nor denied by best guess record for domain of arnd@arndb.de) client-ip=212.227.17.9; Authentication-Results: mx.google.com; spf=neutral (google.com: 212.227.17.9 is neither permitted nor denied by best guess record for domain of arnd@arndb.de) smtp.mail=arnd@arndb.de Received: from localhost.localdomain (HSI-KBW-149-172-5-253.hsi13.kabel-badenwuerttemberg.de [149.172.5.253]) by mrelayeu.kundenserver.de (node=mrbap0) with ESMTP (Nemesis) id 0MTN1b-1St4gx3Sjf-00SI0m; Tue, 02 Oct 2012 18:37:13 +0200 From: Arnd Bergmann To: linux-arm-kernel@infradead.org Cc: arm@kernel.org, linux-kernel@vger.kernel.org, Arnd Bergmann , Nicolas Ferre , Jean-Christophe Plagniol-Villard Subject: [PATCH 07/17] ARM: at91: skip at91_io_desc definition for NOMMU Date: Tue, 2 Oct 2012 18:36:46 +0200 Message-Id: <1349195816-2225-8-git-send-email-arnd@arndb.de> X-Mailer: git-send-email 1.7.10 In-Reply-To: <1349195816-2225-1-git-send-email-arnd@arndb.de> References: <1349195816-2225-1-git-send-email-arnd@arndb.de> X-Provags-ID: V02:K0:QlHjxEnwLmwA1epN32TkX6c5cr6WnGd/TanEiFmfhum KpXYiX+zzt26aCVo/w5PDALnXqKSb6A3e/itiUtN4JWXZxoLKN 7H6FwZKsKcEpLeVjuSeXkS8KLAPSe3lh0IstvvTN/7d0saXYqD Ow3FxpwYj5Lah0KiYyXWfgoL4/A+E02wgEOBUyVOxY6p/FPzgb gfxzJxhFs7UBGMyVQqfbRRMJkirNDza3oq+EGmNqtIqfOd1AGD SmcdgpNT9lzlhomLbkpb6QoXs88EVfDpMGqAhDlQhmuX3Gqt0D XglbHZxhkxCX6AzimNTwDwPYCcKiQZvuIWjAyDFgkyeyeVqr2/ PQNchHz5XtQMQWbF8VBKqsAFXRNW7DfHmB97X7LpP4FGgKU8Fk lf73XimAq/OJg== X-Gm-Message-State: ALoCoQmssSWNTXv4zFb9bCnByN5oAfGr3fYgEom3mU1rJQpwmBrrCHVc66zNC1GexdCHDJ6Ni2i3 On NOMMU systems, we do cannot remap the MMIO space, so the definition of at91_io_desc is unused. Without this patch, building at91x40_defconfig results in: arch/arm/mach-at91/setup.c:90:24: warning: 'at91_io_desc' defined but not used [-Wunused-variable] Signed-off-by: Arnd Bergmann Cc: Nicolas Ferre Cc: Jean-Christophe Plagniol-Villard --- arch/arm/mach-at91/setup.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/arch/arm/mach-at91/setup.c b/arch/arm/mach-at91/setup.c index 944bffb..b9fdba0 100644 --- a/arch/arm/mach-at91/setup.c +++ b/arch/arm/mach-at91/setup.c @@ -87,12 +87,14 @@ void __init at91_init_sram(int bank, unsigned long base, unsigned int length) iotable_init(desc, 1); } +#ifdef CONFIG_MMU static struct map_desc at91_io_desc __initdata = { .virtual = AT91_VA_BASE_SYS, .pfn = __phys_to_pfn(AT91_BASE_SYS), .length = SZ_16K, .type = MT_DEVICE, }; +#endif static void __init soc_detect(u32 dbgu_base) {