Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1756824AbYJMJJs (ORCPT ); Mon, 13 Oct 2008 05:09:48 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1755482AbYJMJJh (ORCPT ); Mon, 13 Oct 2008 05:09:37 -0400 Received: from nwd2mail11.analog.com ([137.71.25.57]:12972 "EHLO nwd2mail11.analog.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754879AbYJMJJg (ORCPT ); Mon, 13 Oct 2008 05:09:36 -0400 X-IronPort-AV: E=Sophos;i="4.33,402,1220241600"; d="scan'208";a="61011383" From: Bryan Wu To: ben@simtec.co.uk, s.hauer@pengutronix.de Cc: jeff@garzik.org, netdev@vger.kernel.org, linux-kernel@vger.kernel.org, Javier Herrero , Bryan Wu Subject: [PATCH 1/1] netdev: DM9000: Added typecasting to supress some warnings on Blackfin Date: Mon, 13 Oct 2008 17:10:09 +0800 Message-Id: <1223889009-31336-1-git-send-email-cooloney@kernel.org> X-Mailer: git-send-email 1.5.6 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1724 Lines: 61 From: Javier Herrero Signed-off-by: Javier Herrero Signed-off-by: Bryan Wu --- drivers/net/dm9000.c | 12 ++++++------ 1 files changed, 6 insertions(+), 6 deletions(-) diff --git a/drivers/net/dm9000.c b/drivers/net/dm9000.c index f42c23f..c4737ca 100644 --- a/drivers/net/dm9000.c +++ b/drivers/net/dm9000.c @@ -188,35 +188,35 @@ iow(board_info_t * db, int reg, int value) static void dm9000_outblk_8bit(void __iomem *reg, void *data, int count) { - writesb(reg, data, count); + writesb((int)reg, data, count); } static void dm9000_outblk_16bit(void __iomem *reg, void *data, int count) { - writesw(reg, data, (count+1) >> 1); + writesw((int)reg, data, (count+1) >> 1); } static void dm9000_outblk_32bit(void __iomem *reg, void *data, int count) { - writesl(reg, data, (count+3) >> 2); + writesl((int)reg, data, (count+3) >> 2); } /* input block from chip to memory */ static void dm9000_inblk_8bit(void __iomem *reg, void *data, int count) { - readsb(reg, data, count); + readsb((int)reg, data, count); } static void dm9000_inblk_16bit(void __iomem *reg, void *data, int count) { - readsw(reg, data, (count+1) >> 1); + readsw((int)reg, data, (count+1) >> 1); } static void dm9000_inblk_32bit(void __iomem *reg, void *data, int count) { - readsl(reg, data, (count+3) >> 2); + readsl((int)reg, data, (count+3) >> 2); } /* dump block from chip to null */ -- 1.5.6 -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/