Skip to content

Commit 0997187

Browse files
RishiGupta12richardweinberger
authored andcommitted
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>
1 parent 188945e commit 0997187

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎drivers/mtd/ubi/ubi.h‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -968,7 +968,7 @@ int ubi_fastmap_init_checkmap(struct ubi_volume *vol, int leb_count);
968968
void ubi_fastmap_destroy_checkmap(struct ubi_volume *vol);
969969
#else
970970
static inline int ubi_update_fastmap(struct ubi_device *ubi) { return 0; }
971-
int static inline ubi_fastmap_init_checkmap(struct ubi_volume *vol, int leb_count) { return 0; }
971+
static inline int ubi_fastmap_init_checkmap(struct ubi_volume *vol, int leb_count) { return 0; }
972972
static inline void ubi_fastmap_destroy_checkmap(struct ubi_volume *vol) {}
973973
#endif
974974

0 commit comments

Comments
 (0)