UBI: Fastmap: Fix PEB array type
authorEzequiel García <ezequiel@vanguardiasur.com.ar>
Sat, 17 Oct 2015 17:55:55 +0000 (14:55 -0300)
committerRichard Weinberger <richard@nod.at>
Fri, 6 Nov 2015 22:26:50 +0000 (23:26 +0100)
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>
drivers/mtd/ubi/fastmap.c

index 0e6bfaf850f3d5cb11a621aa7a96b1b5440699f5..263b439e21a88fc1df3e21f3e2eb4a0da43b8d1f 100644 (file)
@@ -450,7 +450,7 @@ static void unmap_peb(struct ubi_attach_info *ai, int pnum)
  * < 0 indicates an internal error.
  */
 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 ubi_vid_hdr *vh;
This page took 0.037092 seconds and 5 git commands to generate.