]> git.ipfire.org Git - thirdparty/mdadm.git/commitdiff
bitmap: convert "inline" to "static inline"
authorNeilBrown <neilb@suse.com>
Fri, 24 Jul 2015 06:10:44 +0000 (16:10 +1000)
committerNeilBrown <neilb@suse.com>
Fri, 24 Jul 2015 06:10:44 +0000 (16:10 +1000)
Otherwise new gcc ignores them with some compile options.

Signed-off-by: NeilBrown <neilb@suse.com>
bitmap.c

index b1d54a6f7a54feec4a9219fb6fc9b157e8f1b79f..bbe9baec6baf813a469095e575460eac65c042c9 100644 (file)
--- a/bitmap.c
+++ b/bitmap.c
@@ -20,7 +20,7 @@
 
 #include "mdadm.h"
 
-inline void sb_le_to_cpu(bitmap_super_t *sb)
+static inline void sb_le_to_cpu(bitmap_super_t *sb)
 {
        sb->magic = __le32_to_cpu(sb->magic);
        sb->version = __le32_to_cpu(sb->version);
@@ -34,7 +34,7 @@ inline void sb_le_to_cpu(bitmap_super_t *sb)
        sb->write_behind = __le32_to_cpu(sb->write_behind);
 }
 
-inline void sb_cpu_to_le(bitmap_super_t *sb)
+static inline void sb_cpu_to_le(bitmap_super_t *sb)
 {
        sb_le_to_cpu(sb); /* these are really the same thing */
 }
@@ -74,7 +74,7 @@ typedef struct bitmap_info_s {
 } bitmap_info_t;
 
 /* count the dirty bits in the first num_bits of byte */
-inline int count_dirty_bits_byte(char byte, int num_bits)
+static inline int count_dirty_bits_byte(char byte, int num_bits)
 {
        int num = 0;