summaryrefslogtreecommitdiffstats
path: root/drivers/mtd/ubi/ubi.h
diff options
context:
space:
mode:
authorRishi Gupta <gupt21@gmail.com>2019-09-19 03:38:18 +0200
committerRichard Weinberger <richard@nod.at>2019-11-17 22:15:08 +0100
commit0997187767425f24518c876a51bb587eb64e02fd (patch)
treeb6710da1fed000508c092b1e76102527cfa2e330 /drivers/mtd/ubi/ubi.h
parentubi: Print skip_check in ubi_dump_vol_info() (diff)
downloadlinux-0997187767425f24518c876a51bb587eb64e02fd.tar.xz
linux-0997187767425f24518c876a51bb587eb64e02fd.zip
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: Rishi Gupta <gupt21@gmail.com> Signed-off-by: Richard Weinberger <richard@nod.at>
Diffstat (limited to 'drivers/mtd/ubi/ubi.h')
-rw-r--r--drivers/mtd/ubi/ubi.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/mtd/ubi/ubi.h b/drivers/mtd/ubi/ubi.h
index 721b6aa7936c..75e818cafb0c 100644
--- a/drivers/mtd/ubi/ubi.h
+++ b/drivers/mtd/ubi/ubi.h
@@ -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);
#else
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) {}
#endif