Browse Source

UBI: Fastmap: Fix PEB array type

The PEB array is an array of __be32, so let's fix the
scan_pool() prototype accordingly.

Signed-off-by: Ezequiel Garcia <ezequiel@vanguardiasur.com.ar>
Signed-off-by: Richard Weinberger <richard@nod.at>
Ezequiel García 9 years ago
parent
commit
2a130f1aa5
1 changed files with 1 additions and 1 deletions
  1. 1 1
      drivers/mtd/ubi/fastmap.c

+ 1 - 1
drivers/mtd/ubi/fastmap.c

@@ -450,7 +450,7 @@ static void unmap_peb(struct ubi_attach_info *ai, int pnum)
  * < 0 indicates an internal error.
  * < 0 indicates an internal error.
  */
  */
 static int scan_pool(struct ubi_device *ubi, struct ubi_attach_info *ai,
 static int scan_pool(struct ubi_device *ubi, struct ubi_attach_info *ai,
-		     int *pebs, int pool_size, unsigned long long *max_sqnum,
+		     __be32 *pebs, int pool_size, unsigned long long *max_sqnum,
 		     struct list_head *free)
 		     struct list_head *free)
 {
 {
 	struct ubi_vid_hdr *vh;
 	struct ubi_vid_hdr *vh;