.. | .. |
---|
| 1 | +/* SPDX-License-Identifier: GPL-2.0-or-later */ |
---|
1 | 2 | /* |
---|
2 | 3 | * Copyright (c) International Business Machines Corp., 2006 |
---|
3 | 4 | * 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 |
---|
18 | 5 | * |
---|
19 | 6 | * Author: Artem Bityutskiy (Битюцкий Артём) |
---|
20 | 7 | */ |
---|
.. | .. |
---|
39 | 26 | #include <linux/notifier.h> |
---|
40 | 27 | #include <linux/mtd/mtd.h> |
---|
41 | 28 | #include <linux/mtd/ubi.h> |
---|
42 | | -#include <asm/pgtable.h> |
---|
| 29 | +#include <linux/pgtable.h> |
---|
43 | 30 | |
---|
44 | 31 | #include "ubi-media.h" |
---|
45 | 32 | |
---|
.. | .. |
---|
931 | 918 | int ubi_is_erase_work(struct ubi_work *wrk); |
---|
932 | 919 | void ubi_refill_pools(struct ubi_device *ubi); |
---|
933 | 920 | int ubi_ensure_anchor_pebs(struct ubi_device *ubi); |
---|
| 921 | +int ubi_bitflip_check(struct ubi_device *ubi, int pnum, int force_scrub); |
---|
934 | 922 | |
---|
935 | 923 | /* io.c */ |
---|
936 | 924 | int ubi_io_read(const struct ubi_device *ubi, void *buf, int pnum, int offset, |
---|
.. | .. |
---|
962 | 950 | int ubi_notify_all(struct ubi_device *ubi, int ntype, |
---|
963 | 951 | struct notifier_block *nb); |
---|
964 | 952 | int ubi_enumerate_volumes(struct notifier_block *nb); |
---|
| 953 | +void ubi_free_all_volumes(struct ubi_device *ubi); |
---|
965 | 954 | void ubi_free_internal_volumes(struct ubi_device *ubi); |
---|
966 | 955 | |
---|
967 | 956 | /* kapi.c */ |
---|
.. | .. |
---|
982 | 971 | void ubi_fastmap_destroy_checkmap(struct ubi_volume *vol); |
---|
983 | 972 | #else |
---|
984 | 973 | 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; } |
---|
986 | 975 | static inline void ubi_fastmap_destroy_checkmap(struct ubi_volume *vol) {} |
---|
987 | 976 | #endif |
---|
988 | 977 | |
---|