diff options
author | Artem Bityutskiy <artem.bityutskiy@linux.intel.com> | 2012-05-16 11:09:08 -0400 |
---|---|---|
committer | Artem Bityutskiy <artem.bityutskiy@linux.intel.com> | 2012-05-20 13:26:00 -0400 |
commit | aa44d1d35f3485e0acea0f22e41cb472d2c99858 (patch) | |
tree | b066ebf877a3eba5cb154b4d78f8bad6c86c1cfd /drivers/mtd/ubi/wl.c | |
parent | 718c00bb8fb00c68977f1076619cdfb050f92ba5 (diff) |
UBI: remove Kconfig debugging option
This patch kills the UBI debugging Kconfig option completely and makes all the
debugging stuff to be always compiled-in. It was pain in the neck to maintain
this useless option because all users I am aware of have debugging enabled
anyway - how else will you diagnose errors otherwise?
Signed-off-by: Artem Bityutskiy <artem.bityutskiy@linux.intel.com>
Diffstat (limited to 'drivers/mtd/ubi/wl.c')
-rw-r--r-- | drivers/mtd/ubi/wl.c | 10 |
1 files changed, 0 insertions, 10 deletions
diff --git a/drivers/mtd/ubi/wl.c b/drivers/mtd/ubi/wl.c index 64ce9930dacb..f99dbd084838 100644 --- a/drivers/mtd/ubi/wl.c +++ b/drivers/mtd/ubi/wl.c | |||
@@ -155,18 +155,12 @@ struct ubi_work { | |||
155 | int torture; | 155 | int torture; |
156 | }; | 156 | }; |
157 | 157 | ||
158 | #ifdef CONFIG_MTD_UBI_DEBUG | ||
159 | static int paranoid_check_ec(struct ubi_device *ubi, int pnum, int ec); | 158 | static int paranoid_check_ec(struct ubi_device *ubi, int pnum, int ec); |
160 | static int paranoid_check_in_wl_tree(const struct ubi_device *ubi, | 159 | static int paranoid_check_in_wl_tree(const struct ubi_device *ubi, |
161 | struct ubi_wl_entry *e, | 160 | struct ubi_wl_entry *e, |
162 | struct rb_root *root); | 161 | struct rb_root *root); |
163 | static int paranoid_check_in_pq(const struct ubi_device *ubi, | 162 | static int paranoid_check_in_pq(const struct ubi_device *ubi, |
164 | struct ubi_wl_entry *e); | 163 | struct ubi_wl_entry *e); |
165 | #else | ||
166 | #define paranoid_check_ec(ubi, pnum, ec) 0 | ||
167 | #define paranoid_check_in_wl_tree(ubi, e, root) | ||
168 | #define paranoid_check_in_pq(ubi, e) 0 | ||
169 | #endif | ||
170 | 164 | ||
171 | /** | 165 | /** |
172 | * wl_tree_add - add a wear-leveling entry to a WL RB-tree. | 166 | * wl_tree_add - add a wear-leveling entry to a WL RB-tree. |
@@ -1526,8 +1520,6 @@ void ubi_wl_close(struct ubi_device *ubi) | |||
1526 | kfree(ubi->lookuptbl); | 1520 | kfree(ubi->lookuptbl); |
1527 | } | 1521 | } |
1528 | 1522 | ||
1529 | #ifdef CONFIG_MTD_UBI_DEBUG | ||
1530 | |||
1531 | /** | 1523 | /** |
1532 | * paranoid_check_ec - make sure that the erase counter of a PEB is correct. | 1524 | * paranoid_check_ec - make sure that the erase counter of a PEB is correct. |
1533 | * @ubi: UBI device description object | 1525 | * @ubi: UBI device description object |
@@ -1624,5 +1616,3 @@ static int paranoid_check_in_pq(const struct ubi_device *ubi, | |||
1624 | dump_stack(); | 1616 | dump_stack(); |
1625 | return -EINVAL; | 1617 | return -EINVAL; |
1626 | } | 1618 | } |
1627 | |||
1628 | #endif /* CONFIG_MTD_UBI_DEBUG */ | ||