aboutsummaryrefslogtreecommitdiff
path: root/drivers/mmc
diff options
context:
space:
mode:
authorVirupax Sadashivpetimath <virupax.sadashivpetimath@stericsson.com>2010-05-28 16:39:33 +0530
committerJohn Rigby <john.rigby@linaro.org>2010-09-02 22:45:45 -0600
commit20970d371a89aaefcdd3eb7e75834d4a49f82969 (patch)
treed4ae9167992ff657a22ed3f08bac6b333bd9a2d3 /drivers/mmc
parentcff7f06817a40803a4acc08cd07509fc990d8439 (diff)
fix kernel warnings
Fix for the kernel warnings seen on compiling the kernel using the extra flag EXTRA_CFLAGS=-W. The action taken on the kernel warnings is as below. Below ones are fixed arch/arm/mach-ux500/clock.c:243: warning: comparison between signed and unsigned integer expressions arch/arm/mach-ux500/clock.c:246: warning: comparison between signed and unsigned integer expressions arch/arm/mach-ux500/clock.c:254: warning: comparison between signed and unsigned integer expressions arch/arm/mach-ux500/clock.c:257: warning: comparison between signed and unsigned integer expressions arch/arm/mach-ux500/clock.c:599: warning: comparison between signed and unsigned integer expressions arch/arm/mach-ux500/clock.c:641: warning: comparison between signed and unsigned integer expressions arch/arm/mach-ux500/clock.c:667: warning: comparison between signed and unsigned integer expressions arch/arm/mach-ux500/dma_40.c:1521: warning: comparison between signed and unsigned integer expressions arch/arm/mach-ux500/dma_40.c:1597: warning: comparison between signed and unsigned integer expressions arch/arm/mach-ux500/dma_40.c:1705: warning: comparison between signed and unsigned integer expressions arch/arm/mach-ux500/dma_40.c:1806: warning: comparison between signed and unsigned integer expressions arch/arm/mach-ux500/platsmp.c:211: warning: comparison between signed and unsigned integer expressions drivers/mmc/host/mmc-u8500.c:690: warning: comparison between signed and unsigned integer expressions drivers/mmc/host/mmc-u8500.c:757: warning: comparison between signed and unsigned integer expressions drivers/misc/ab8500.c:297: warning: comparison between signed and unsigned integer expressions Below warning is from the macro included from the /include/linux/clocksource.h header file, not fixed. arch/arm/mach-ux500/timer.c:57: warning: signed and unsigned type in conditional expression Below warnings are compiler dependant and are ignored. arch/arm/mach-ux500/prcmu-fw.c:306: warning: comparison of unsigned expression < 0 is always false arch/arm/mach-ux500/prcmu-fw.c:313: warning: comparison of unsigned expression < 0 is always false arch/arm/mach-ux500/prcmu-fw.c:332: warning: comparison of unsigned expression < 0 is always false arch/arm/mach-ux500/prcmu-fw.c:339: warning: comparison of unsigned expression < 0 is always false arch/arm/mach-ux500/prcmu-fw.c:365: warning: comparison of unsigned expression < 0 is always false arch/arm/mach-ux500/prcmu-fw.c:395: warning: comparison of unsigned expression < 0 is always false arch/arm/mach-ux500/prcmu-fw.c:464: warning: comparison of unsigned expression < 0 is always false arch/arm/mach-ux500/prcmu-fw.c:626: warning: comparison of unsigned expression < 0 is always false arch/arm/mach-ux500/prcmu-fw.c:627: warning: comparison of unsigned expression < 0 is always false arch/arm/mach-ux500/prcmu-fw.c:635: warning: comparison of unsigned expression < 0 is always false arch/arm/mach-ux500/prcmu-fw.c:636: warning: comparison of unsigned expression < 0 is always false Below one is ignored. arch/arm/mach-ux500/hotplug.c:48: warning: comparison between signed and unsigned integer expressions ST-Ericsson ID:ER259868 Signed-off-by: Virupax Sadashivpetimath <virupax.sadashivpetimath@stericsson.com> Reviewed-on: http://gerrit.lud.stericsson.com/gerrit/722 Reviewed-by: Linus WALLEIJ <linus.walleij@stericsson.com> Signed-off-by: Mian Yousaf Kaukab <mian.yousaf.kaukab@stericsson.com> Change-Id: I5d53beb5d05fab217fe95096480b354a22ff9d35 Reviewed-on: http://gerrit.lud.stericsson.com/gerrit/2622 Reviewed-by: Jonas ABERG <jonas.aberg@stericsson.com>
Diffstat (limited to 'drivers/mmc')
-rw-r--r--drivers/mmc/host/mmc-u8500.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/drivers/mmc/host/mmc-u8500.c b/drivers/mmc/host/mmc-u8500.c
index c75b7d157db..9316c6d3224 100644
--- a/drivers/mmc/host/mmc-u8500.c
+++ b/drivers/mmc/host/mmc-u8500.c
@@ -665,7 +665,7 @@ static int u8500_mmci_read(struct u8500_mmci_host *host, u32 * buffer,
unsigned int data_xfered = 0;
u8 *char_buf;
u16 *word_buf;
- int temp;
+ unsigned int temp;
u32 flag = MCI_DATA_IRQ;
base = host->base;
@@ -727,8 +727,8 @@ static int u8500_mmci_write(struct u8500_mmci_host *host, u32 * buffer,
unsigned int remain, u32 hoststatus)
{
void __iomem *base;
- int count, max_count, temp;
- unsigned int data_xfered = 0;
+ int count, max_count;
+ unsigned int data_xfered = 0, temp;
u16 *buf16;
u8 *buf8;
u32 flag = MCI_DATA_IRQ;