disklib: remove improper "inline"
authorH. Peter Anvin <hpa@zytor.com>
Sun, 14 Nov 2010 21:11:30 +0000 (13:11 -0800)
committerH. Peter Anvin <hpa@zytor.com>
Sun, 14 Nov 2010 21:11:30 +0000 (13:11 -0800)
Remove improper inlines from static functions which cause gcc 4.5 to
abort due to inlining failure.

Signed-off-by: H. Peter Anvin <hpa@zytor.com>
com32/gpllib/disk/msdos.c

index affec43..a4ee60f 100644 (file)
 #include <disk/partition.h>
 #include <disk/read.h>
 
-static inline int is_extended_partition(struct part_entry *ptab)
+static int is_extended_partition(struct part_entry *ptab)
 {
     return (ptab->ostype == 0x05 ||
            ptab->ostype == 0x0f || ptab->ostype == 0x85);
 }
 
-static inline int msdos_magic_present(const char *ptab)
+static int msdos_magic_present(const char *ptab)
 {
     return (*(uint16_t *) (ptab + 0x1fe) == 0xaa55);
 }