From patchwork Tue Nov 6 21:55:26 2012 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Arnd Bergmann X-Patchwork-Id: 12702 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 9AE0E23E00 for ; Tue, 6 Nov 2012 21:55:56 +0000 (UTC) Received: from mail-ia0-f180.google.com (mail-ia0-f180.google.com [209.85.210.180]) by fiordland.canonical.com (Postfix) with ESMTP id 4CC8AA1870B for ; Tue, 6 Nov 2012 21:55:56 +0000 (UTC) Received: by mail-ia0-f180.google.com with SMTP id f6so618566iag.11 for ; Tue, 06 Nov 2012 13:55:56 -0800 (PST) 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=IfnLpg2jBPnCQ8S5DDf2u4qwXiRctkWEIpzNLg6vGhc=; b=Io8WS53xpeJ712aTWxxt/WxYbjlvBcwZJ+/YbvrkCViVGznnLU+FYT7ZsaYeq70xCT TJ6mIHGdtbCRpitlq8aFuoiAn36aC2lWeGRpp8Wd67tgRSS4lwj9TEIyZHYOIQa2deVD 8JpmUMqoySWV+1I2VJVtVHxLFO046JwjpQ1zIssyEsxpsSVnh8Sh0KlPqZ4oLLCYPOem VLmoc+MX+qUu+tbDgHWAkgzjHLMk/0oGhbEX9qr6D6JbRGfBErAa7aMLq+lRoRFfrp5Z HjtZdU4o8d0AgQRg0DEPpUkCRmARSKOuKYPRJO0QAQEixumvav+UZ+QPFlAIJ3ymM6Jb DvRQ== Received: by 10.50.213.34 with SMTP id np2mr2630332igc.57.1352238956066; Tue, 06 Nov 2012 13:55:56 -0800 (PST) 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.67.148 with SMTP id n20csp114524igt; Tue, 6 Nov 2012 13:55:55 -0800 (PST) Received: by 10.14.0.68 with SMTP id 44mr8102933eea.1.1352238954718; Tue, 06 Nov 2012 13:55:54 -0800 (PST) Received: from moutng.kundenserver.de (moutng.kundenserver.de. [212.227.126.171]) by mx.google.com with ESMTPS id k8si20377657eed.60.2012.11.06.13.55.54 (version=TLSv1/SSLv3 cipher=OTHER); Tue, 06 Nov 2012 13:55:54 -0800 (PST) Received-SPF: neutral (google.com: 212.227.126.171 is neither permitted nor denied by best guess record for domain of arnd@arndb.de) client-ip=212.227.126.171; Authentication-Results: mx.google.com; spf=neutral (google.com: 212.227.126.171 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 0LxMeg-1TGzpZ3Whe-0179LV; Tue, 06 Nov 2012 22:55:40 +0100 From: Arnd Bergmann To: linux-kernel@vger.kernel.org Cc: linux-arm-kernel@lists.infradead.org, Arnd Bergmann , David Woodhouse , Artem Bityutskiy , linux-mtd@lists.infradead.org Subject: [PATCH 1/8] mtd: diskonchip: don't warn about ARM architecture Date: Tue, 6 Nov 2012 22:55:26 +0100 Message-Id: <1352238933-4886-2-git-send-email-arnd@arndb.de> X-Mailer: git-send-email 1.7.10 In-Reply-To: <1352238933-4886-1-git-send-email-arnd@arndb.de> References: <1352238933-4886-1-git-send-email-arnd@arndb.de> X-Provags-ID: V02:K0:+SvEu/tfzYh3xf1Hif7kTafZQ9EIoKAuyYcHkanWrwN D29z3GnrN/OQxvSwkvjsU4UIT+4Nzzu3d4Sp01WOZpI6Gj3LtE K9cp+hSEVrlC2gDkvkWBgIsVlTm663gXMamwGGuDOEBByAw/Qz dMyehPmkvieC+0fueusoUCntqLfcnQMfmBNQHXIGD4mnxl0cFr AM5QuUOajztvmBUJjPDPi4mRHAKPzvyrtB147h4bLqEYkSt/w4 8WdfTRE2BbiXI0SLIOfFtDmqdLPh5L789XjY3BY8kpOSlt3A3V 0WpSX5iywKN4A0m8Mr5VSL12fjGENeL8p1E7z9MEoDHJ/0ats0 GizXVPnANkVsOa9i9hlUSyqSj/VwEdZWbkazrlEuDZ+ZZZDKVo l0CY5EqlqcNew== X-Gm-Message-State: ALoCoQnvnF+HaciajnTNzpr3edG6M6RGe2jzlWjKJyk+s1imQsEYnSzNmVUuxbxgFx1wXxLk9f/T Enabling the diskonchip drivers on most architectures results in a pointless warning "#warning Unknown architecture for DiskOnChip. No default probe locations defined". The driver can in fact handle the default location already through the CONFIG_MTD_DOCPROBE_ADDRESS, which gets set on the platforms that need it, and we get a run-time error if this is not set correctly. Signed-off-by: Arnd Bergmann Cc: David Woodhouse Cc: Artem Bityutskiy Cc: linux-mtd@lists.infradead.org --- drivers/mtd/devices/docprobe.c | 2 -- drivers/mtd/nand/diskonchip.c | 2 -- 2 files changed, 4 deletions(-) diff --git a/drivers/mtd/devices/docprobe.c b/drivers/mtd/devices/docprobe.c index 706b847..88b3fd3 100644 --- a/drivers/mtd/devices/docprobe.c +++ b/drivers/mtd/devices/docprobe.c @@ -70,8 +70,6 @@ static unsigned long __initdata doc_locations[] = { 0xe0000, 0xe2000, 0xe4000, 0xe6000, 0xe8000, 0xea000, 0xec000, 0xee000, #endif /* CONFIG_MTD_DOCPROBE_HIGH */ -#else -#warning Unknown architecture for DiskOnChip. No default probe locations defined #endif 0xffffffff }; diff --git a/drivers/mtd/nand/diskonchip.c b/drivers/mtd/nand/diskonchip.c index 256eb30..81fa578 100644 --- a/drivers/mtd/nand/diskonchip.c +++ b/drivers/mtd/nand/diskonchip.c @@ -53,8 +53,6 @@ static unsigned long __initdata doc_locations[] = { 0xe0000, 0xe2000, 0xe4000, 0xe6000, 0xe8000, 0xea000, 0xec000, 0xee000, #endif /* CONFIG_MTD_DOCPROBE_HIGH */ -#else -#warning Unknown architecture for DiskOnChip. No default probe locations defined #endif 0xffffffff };