File 0099-bitmap-convert-inline-to-static-inline.patch of Package mdadm.5365

From d8f82d1d88f83a706478e2d1af3736032a018421 Mon Sep 17 00:00:00 2001
From: NeilBrown <neilb@suse.com>
Date: Fri, 24 Jul 2015 16:10:44 +1000
Subject: [PATCH 145/359] bitmap: convert "inline" to "static inline"
References: bsc#1081910

Otherwise new gcc ignores them with some compile options.

Signed-off-by: NeilBrown <neilb@suse.com>
Signed-off-by: Coly Li <colyli@suse.de>

---
 bitmap.c | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

Index: mdadm-3.3.1/bitmap.c
===================================================================
--- mdadm-3.3.1.orig/bitmap.c
+++ mdadm-3.3.1/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);
@@ -36,7 +36,7 @@ inline void sb_le_to_cpu(bitmap_super_t
 	sb->sectors_reserved = __le32_to_cpu(sb->sectors_reserved);
 }
 
-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 */
 }
@@ -76,7 +76,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;
 
openSUSE Build Service is sponsored by