From patchwork Mon May 13 20:31:55 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Tom Rini X-Patchwork-Id: 243530 X-Patchwork-Delegate: wd@denx.de 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 EBA162C009F for ; Tue, 14 May 2013 06:32:35 +1000 (EST) Received: from localhost (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id 9B5DF4A029; Mon, 13 May 2013 22:32:30 +0200 (CEST) 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 mBtvqo5t8HgQ; Mon, 13 May 2013 22:32:29 +0200 (CEST) Received: from theia.denx.de (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id 869F64A02E; Mon, 13 May 2013 22:32:22 +0200 (CEST) Received: from localhost (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id DEE6A4A01C for ; Mon, 13 May 2013 22:32:13 +0200 (CEST) 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 wnVVQtpbmcHW for ; Mon, 13 May 2013 22:32:06 +0200 (CEST) X-policyd-weight: NOT_IN_SBL_XBL_SPAMHAUS=-1.5 NOT_IN_SPAMCOP=-1.5 BL_NJABL=ERR(-1.5) (only DNSBL check requested) Received: from mail-yh0-f46.google.com (mail-yh0-f46.google.com [209.85.213.46]) by theia.denx.de (Postfix) with ESMTPS id 5A7494A01F for ; Mon, 13 May 2013 22:31:58 +0200 (CEST) Received: by mail-yh0-f46.google.com with SMTP id v1so1675385yhn.19 for ; Mon, 13 May 2013 13:31:57 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=x-received:sender:from:to:cc:subject:date:message-id:x-mailer :in-reply-to:references; bh=i57TMpMwz7raveKU1yyHBiKiLzVvdTmTaj7getBMT7w=; b=MweWl3j9P014RDvsIAmjJpyqf37ci5PbCyU4v+gAQ1Og/GusyTffGjgCwOv64KP2F0 UsptCH8r8CODOFnBncSF8jx0ZrD6uq5HBl9kaFY0wt+5+oKRRlKf7lNninnQHKNRQwxd JMkE1UwWuBwnxPCSuo8lx6GPI/9P907AoQdAdiPl9hlIvRkHBjVFKmXg5neoUc5m2pqP 85tVGgcW59sOjXNNG4PVSe5Dz9NDShUP12csIsfmAHfFYMT8LDI7Vawl+6MOh633aZ// KAXeT3oFbFkAyzi4dSyyJCPbOWSMhuVRYWzZWNgEj8ZDcN+HSdcbjBS76VD0v2+az9OO wLVA== X-Received: by 10.236.22.230 with SMTP id t66mr2858260yht.70.1368477117758; Mon, 13 May 2013 13:31:57 -0700 (PDT) Received: from localhost.localdomain (cpe-065-184-250-089.ec.res.rr.com. [65.184.250.89]) by mx.google.com with ESMTPSA id s20sm17074763yhh.17.2013.05.13.13.31.55 for (version=TLSv1.1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Mon, 13 May 2013 13:31:56 -0700 (PDT) From: Tom Rini To: u-boot@lists.denx.de Date: Mon, 13 May 2013 16:31:55 -0400 Message-Id: <1368477117-32669-2-git-send-email-trini@ti.com> X-Mailer: git-send-email 1.7.9.5 In-Reply-To: <1368477117-32669-1-git-send-email-trini@ti.com> References: <1368477117-32669-1-git-send-email-trini@ti.com> Subject: [U-Boot] [PATCH 2/4] mpc8xx: Correct cast of im_cpm.cp_dparam 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 We must cast this to unsigned char not unsigned short to avoid warnings. Cc: Wolfgang Denk Signed-off-by: Tom Rini --- arch/powerpc/cpu/mpc8xx/cpu.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/arch/powerpc/cpu/mpc8xx/cpu.c b/arch/powerpc/cpu/mpc8xx/cpu.c index b6b733d..db98e82 100644 --- a/arch/powerpc/cpu/mpc8xx/cpu.c +++ b/arch/powerpc/cpu/mpc8xx/cpu.c @@ -78,7 +78,7 @@ static int check_CPU (long clock, uint pvr, uint immr) if ((pvr >> 16) != 0x0050) return -1; - k = (immr << 16) | *((ushort *) & immap->im_cpm.cp_dparam[0xB0]); + k = (immr << 16) | *((uchar *) & immap->im_cpm.cp_dparam[0xB0]); m = 0; suf = ""; @@ -194,7 +194,7 @@ static int check_CPU (long clock, uint pvr, uint immr) if ((pvr >> 16) != 0x0050) return -1; - k = (immr << 16) | *((ushort *) & immap->im_cpm.cp_dparam[0xB0]); + k = (immr << 16) | *((uchar *) & immap->im_cpm.cp_dparam[0xB0]); m = 0; switch (k) { @@ -253,7 +253,7 @@ static int check_CPU (long clock, uint pvr, uint immr) if ((pvr >> 16) != 0x0050) return -1; - k = (immr << 16) | in_be16((ushort *)&immap->im_cpm.cp_dparam[0xB0]); + k = (immr << 16) | in_be16((uchar *)&immap->im_cpm.cp_dparam[0xB0]); m = 0; switch (k) { @@ -312,7 +312,7 @@ static int check_CPU (long clock, uint pvr, uint immr) if ((pvr >> 16) != 0x0050) return -1; - k = (immr << 16) | *((ushort *) & immap->im_cpm.cp_dparam[0xB0]); + k = (immr << 16) | *((uchar *) & immap->im_cpm.cp_dparam[0xB0]); m = 0; switch (k) {