From patchwork Wed Dec 12 12:34:15 2012 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Daniel Schwierzeck X-Patchwork-Id: 205498 X-Patchwork-Delegate: daniel.schwierzeck@googlemail.com Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from theia.denx.de (theia.denx.de [85.214.87.163]) by ozlabs.org (Postfix) with ESMTP id B45932C0079 for ; Wed, 12 Dec 2012 23:34:30 +1100 (EST) Received: from localhost (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id F41764A251; Wed, 12 Dec 2012 13:34:28 +0100 (CET) X-Virus-Scanned: Debian amavisd-new at theia.denx.de Received: from theia.denx.de ([127.0.0.1]) by localhost (theia.denx.de [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id MlzPwoOEUbvY; Wed, 12 Dec 2012 13:34:28 +0100 (CET) Received: from theia.denx.de (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id 41E0D4A257; Wed, 12 Dec 2012 13:34:27 +0100 (CET) Received: from localhost (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id 3C5614A257 for ; Wed, 12 Dec 2012 13:34:24 +0100 (CET) X-Virus-Scanned: Debian amavisd-new at theia.denx.de Received: from theia.denx.de ([127.0.0.1]) by localhost (theia.denx.de [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 7dudTOgi-dkA for ; Wed, 12 Dec 2012 13:34:23 +0100 (CET) X-policyd-weight: NOT_IN_SBL_XBL_SPAMHAUS=-1.5 NOT_IN_SPAMCOP=-1.5 NOT_IN_BL_NJABL=-1.5 (only DNSBL check requested) Received: from mail-bk0-f44.google.com (mail-bk0-f44.google.com [209.85.214.44]) by theia.denx.de (Postfix) with ESMTPS id 8158A4A251 for ; Wed, 12 Dec 2012 13:34:22 +0100 (CET) Received: by mail-bk0-f44.google.com with SMTP id w11so315939bku.3 for ; Wed, 12 Dec 2012 04:34:21 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=from:to:subject:date:message-id:x-mailer; bh=7fjoEeHyC2Ih5NtWn5xI9prVivHA+qZSYNAQDOARgOg=; b=O+ZJfkH8ohQuXFnkLfGbHR4QnvTPKFsVTiSkQ9c9w7PUICGBe0Yl0Gb/aXJARW+p6a ddeWjaQuYwrC/i4773hyPfmMXJk9MuA0XCdXqlsKhoUT7BTn8rDC0cv4qYj+dqM+6V9K 7DB3ItC1SzsjtQGQCXeN9p5NpwfWkYnv320Bgoz9fRvONKmap2HwlRPNa9OiAyvoK9Sv JozQvsv6U3vmtfUxOShiNnwrQnWTC2tTvwYQqwfgC8OnDmKxrNbuMFge6wPSKjpKFRuO zJ2+DGpfNAIoAFxsjzX0DhV2njUEopm6LyUs620QFUrk1WLlvoK9eQOOAByOhn4dIJbS x2Bg== Received: by 10.204.3.205 with SMTP id 13mr447108bko.38.1355315661808; Wed, 12 Dec 2012 04:34:21 -0800 (PST) Received: from pc000853.sas.sys.sphairon.com (dslb-094-222-093-193.pools.arcor-ip.net. [94.222.93.193]) by mx.google.com with ESMTPS id e22sm20059053bke.14.2012.12.12.04.34.20 (version=TLSv1/SSLv3 cipher=OTHER); Wed, 12 Dec 2012 04:34:21 -0800 (PST) From: Daniel Schwierzeck To: u-boot@lists.denx.de Date: Wed, 12 Dec 2012 13:34:15 +0100 Message-Id: <1355315655-15881-1-git-send-email-daniel.schwierzeck@gmail.com> X-Mailer: git-send-email 1.8.0 Subject: [U-Boot] [PATCH] MIPS: constify mips_io_port_base X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.11 Precedence: list List-Id: U-Boot discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Sender: u-boot-bounces@lists.denx.de Errors-To: u-boot-bounces@lists.denx.de mips_io_port_base is exported as 'extern const unsigned long mips_io_port_base;' in arch/mips/include/asm/io.h. Thus make the variable const too. Signed-off-by: Daniel Schwierzeck --- arch/mips/lib/board.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/mips/lib/board.c b/arch/mips/lib/board.c index 7ddd778..4f330cc 100644 --- a/arch/mips/lib/board.c +++ b/arch/mips/lib/board.c @@ -46,7 +46,7 @@ static char *failed = "*** failed ***\n"; * mips_io_port_base is the begin of the address space to which x86 style * I/O ports are mapped. */ -unsigned long mips_io_port_base = -1; +const unsigned long mips_io_port_base = -1; int __board_early_init_f(void) {