]> git.hungrycats.org Git - linux/commitdiff
[SPARC32]: gcc 3.4+ compile fixes
authorKeith M. Wesolowski <wesolows@foobazco.org>
Thu, 25 Mar 2004 15:14:22 +0000 (07:14 -0800)
committerKeith M. Wesolowski <wesolows@foobazco.org>
Thu, 25 Mar 2004 15:14:22 +0000 (07:14 -0800)
From: Art Haas <ahaas@airmail.net>

Fix casts-as-lvalues and labels left at the end of blocks.

arch/sparc/kernel/sys_sunos.c
arch/sparc/math-emu/math.c

index 001f15d9b7a635cd59306420ddb7a0c52b66f3d9..4b0dfff5822ff4d525c8c0bfcc8bb6642df6a84d 100644 (file)
@@ -343,7 +343,7 @@ static int sunos_filldir(void * __buf, const char * name, int namlen,
        put_user(reclen, &dirent->d_reclen);
        copy_to_user(dirent->d_name, name, namlen);
        put_user(0, dirent->d_name + namlen);
-       ((char *) dirent) += reclen;
+       dirent = (void *)dirent + reclen;
        buf->curr = dirent;
        buf->count -= reclen;
        return 0;
@@ -422,7 +422,7 @@ static int sunos_filldirentry(void * __buf, const char * name, int namlen,
        put_user(reclen, &dirent->d_reclen);
        copy_to_user(dirent->d_name, name, namlen);
        put_user(0, dirent->d_name + namlen);
-       ((char *) dirent) += reclen;
+       dirent = (void *)dirent + reclen;
        buf->curr = dirent;
        buf->count -= reclen;
        return 0;
index cd15e4f41ef23fc2952a730d734ca54b3588dcd1..deaacb8933968cea6699e46606e35f443c725830 100644 (file)
@@ -327,6 +327,7 @@ static int do_one_mathemu(u32 insn, unsigned long *pfsr, unsigned long *fregs)
 #ifdef DEBUG_MATHEMU
                        printk("unknown FPop1: %03lx\n",(insn>>5)&0x1ff);
 #endif
+                       break;
                }
        } else if ((insn & 0xc1f80000) == 0x81a80000)   /* FPOP2 */ {
                switch ((insn >> 5) & 0x1ff) {
@@ -340,6 +341,7 @@ static int do_one_mathemu(u32 insn, unsigned long *pfsr, unsigned long *fregs)
 #ifdef DEBUG_MATHEMU
                        printk("unknown FPop2: %03lx\n",(insn>>5)&0x1ff);
 #endif
+                       break;
                }
        }