summaryrefslogtreecommitdiffstats
path: root/bitmap.c
diff options
context:
space:
mode:
authorNeilBrown <neilb@suse.com>2015-07-24 08:10:44 +0200
committerNeilBrown <neilb@suse.com>2015-07-24 08:10:44 +0200
commitd8f82d1d88f83a706478e2d1af3736032a018421 (patch)
tree310fabd5a5de130266d2a197cb1838f3d5ac20b7 /bitmap.c
parentAssemble: extend --homehost='<ignore>' to allow --name= to ignore homehost (diff)
downloadmdadm-d8f82d1d88f83a706478e2d1af3736032a018421.tar.xz
mdadm-d8f82d1d88f83a706478e2d1af3736032a018421.zip
bitmap: convert "inline" to "static inline"
Otherwise new gcc ignores them with some compile options. Signed-off-by: NeilBrown <neilb@suse.com>
Diffstat (limited to 'bitmap.c')
-rw-r--r--bitmap.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/bitmap.c b/bitmap.c
index b1d54a6f..bbe9baec 100644
--- 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;