Commit 09971877 authored by Rishi Gupta's avatar Rishi Gupta Committed by Richard Weinberger

ubi: Fix warning static is not at beginning of declaration

Compiler generates following warning when kernel is built with W=1:

drivers/mtd/ubi/ubi.h:971:1: warning: ‘static’ is not at beginning
of declaration [-Wold-style-declaration]

This commit fixes this by correctly ordering keywords.
Signed-off-by: default avatarRishi Gupta <gupt21@gmail.com>
Signed-off-by: default avatarRichard Weinberger <richard@nod.at>
parent 188945e9
...@@ -968,7 +968,7 @@ int ubi_fastmap_init_checkmap(struct ubi_volume *vol, int leb_count); ...@@ -968,7 +968,7 @@ int ubi_fastmap_init_checkmap(struct ubi_volume *vol, int leb_count);
void ubi_fastmap_destroy_checkmap(struct ubi_volume *vol); void ubi_fastmap_destroy_checkmap(struct ubi_volume *vol);
#else #else
static inline int ubi_update_fastmap(struct ubi_device *ubi) { return 0; } static inline int ubi_update_fastmap(struct ubi_device *ubi) { return 0; }
int static inline ubi_fastmap_init_checkmap(struct ubi_volume *vol, int leb_count) { return 0; } static inline int ubi_fastmap_init_checkmap(struct ubi_volume *vol, int leb_count) { return 0; }
static inline void ubi_fastmap_destroy_checkmap(struct ubi_volume *vol) {} static inline void ubi_fastmap_destroy_checkmap(struct ubi_volume *vol) {}
#endif #endif
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment