hc
2023-12-11 d2ccde1c8e90d38cee87a1b0309ad2827f3fd30d
kernel/drivers/mtd/ubi/ubi.h
....@@ -1,20 +1,7 @@
1
+/* SPDX-License-Identifier: GPL-2.0-or-later */
12 /*
23 * Copyright (c) International Business Machines Corp., 2006
34 * Copyright (c) Nokia Corporation, 2006, 2007
4
- *
5
- * This program is free software; you can redistribute it and/or modify
6
- * it under the terms of the GNU General Public License as published by
7
- * the Free Software Foundation; either version 2 of the License, or
8
- * (at your option) any later version.
9
- *
10
- * This program is distributed in the hope that it will be useful,
11
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
12
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See
13
- * the GNU General Public License for more details.
14
- *
15
- * You should have received a copy of the GNU General Public License
16
- * along with this program; if not, write to the Free Software
17
- * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
185 *
196 * Author: Artem Bityutskiy (Битюцкий Артём)
207 */
....@@ -39,7 +26,7 @@
3926 #include <linux/notifier.h>
4027 #include <linux/mtd/mtd.h>
4128 #include <linux/mtd/ubi.h>
42
-#include <asm/pgtable.h>
29
+#include <linux/pgtable.h>
4330
4431 #include "ubi-media.h"
4532
....@@ -931,6 +918,7 @@
931918 int ubi_is_erase_work(struct ubi_work *wrk);
932919 void ubi_refill_pools(struct ubi_device *ubi);
933920 int ubi_ensure_anchor_pebs(struct ubi_device *ubi);
921
+int ubi_bitflip_check(struct ubi_device *ubi, int pnum, int force_scrub);
934922
935923 /* io.c */
936924 int ubi_io_read(const struct ubi_device *ubi, void *buf, int pnum, int offset,
....@@ -962,6 +950,7 @@
962950 int ubi_notify_all(struct ubi_device *ubi, int ntype,
963951 struct notifier_block *nb);
964952 int ubi_enumerate_volumes(struct notifier_block *nb);
953
+void ubi_free_all_volumes(struct ubi_device *ubi);
965954 void ubi_free_internal_volumes(struct ubi_device *ubi);
966955
967956 /* kapi.c */
....@@ -982,7 +971,7 @@
982971 void ubi_fastmap_destroy_checkmap(struct ubi_volume *vol);
983972 #else
984973 static inline int ubi_update_fastmap(struct ubi_device *ubi) { return 0; }
985
-int static inline ubi_fastmap_init_checkmap(struct ubi_volume *vol, int leb_count) { return 0; }
974
+static inline int ubi_fastmap_init_checkmap(struct ubi_volume *vol, int leb_count) { return 0; }
986975 static inline void ubi_fastmap_destroy_checkmap(struct ubi_volume *vol) {}
987976 #endif
988977