[PATCH 56/62] UBI: Fastmap: Fix PEB array type

Teresa Remmet t.remmet at phytec.de
Mon May 23 01:26:44 PDT 2016

From: Ezequiel García <ezequiel at vanguardiasur.com.ar>

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

Signed-off-by: Ezequiel Garcia <ezequiel at vanguardiasur.com.ar>
Signed-off-by: Richard Weinberger <richard at nod.at>


Fixed minor conflict.

Signed-off-by: Teresa Remmet <t.remmet at phytec.de>
 drivers/mtd/ubi/fastmap.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/mtd/ubi/fastmap.c b/drivers/mtd/ubi/fastmap.c
index 173da9c..ffa2859 100644
--- a/drivers/mtd/ubi/fastmap.c
+++ b/drivers/mtd/ubi/fastmap.c
@@ -385,7 +385,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 *lfree)
 	struct ubi_vid_hdr *vh;

More information about the barebox mailing list