]> git.hungrycats.org Git - linux/commitdiff
[ARM] Fix couple of compiler warnings:
authorRussell King <rmk@flint.arm.linux.org.uk>
Sat, 14 Feb 2004 18:36:01 +0000 (18:36 +0000)
committerRussell King <rmk@flint.arm.linux.org.uk>
Sat, 14 Feb 2004 18:36:01 +0000 (18:36 +0000)
arch/arm/kernel/time.c: Fix time_before type warning.
arch/arm/common/amba.c: Fix snprintf compiler warning.

arch/arm/common/amba.c
arch/arm/kernel/time.c

index cdfc26e27e012131b0c3632c65067e82aceac49b..46abe4cc43512217ece5bd0bec593709d4305f0b 100644 (file)
@@ -50,7 +50,7 @@ static int amba_hotplug(struct device *dev, char **envp, int nr_env, char *buf,
        if (nr_env < 2)
                return -ENOMEM;
 
-       snprintf(buf, bufsz, "AMBA_ID=%08lx", pcdev->periphid);
+       snprintf(buf, bufsz, "AMBA_ID=%08x", pcdev->periphid);
        *envp++ = buf;
        *envp++ = NULL;
        return 0;
index c9547904a09d8037328ae6781600faa4a55ea676..150f590bcf81ad1f8ed8b77e59184ae1d469b534 100644 (file)
@@ -116,7 +116,7 @@ static inline void do_set_rtc(void)
                return;
 
        if (next_rtc_update &&
-           time_before(xtime.tv_sec, next_rtc_update))
+           time_before((unsigned long)xtime.tv_sec, next_rtc_update))
                return;
 
        if (xtime.tv_nsec < 500000000 - ((unsigned) tick_nsec >> 1) &&