This pull request contains updates for UBI and UBIFS:

        - Add Zhihao Cheng as reviewer
	- Attach via device tree
	- Add NVMEM layer
	- Various fastmap related fixes

        - Add Zhihao Cheng as reviewer
	- Convert to folios
	- Various fixes (memory leaks in error paths, function prototypes)
mtd: ubi: fix NVMEM over UBI volumes on 32-bit systems

A compiler warning related to sizeof(int) != 8 when calling do_div()
is triggered when building on 32-bit platforms.
Address this by using integer types having a well-defined size.

Fixes: 3ce485803da1 ("mtd: ubi: provide NVMEM layer over UBI volumes")
Signed-off-by: Daniel Golle <>
Reviewed-by: Zhihao Cheng <>
Tested-by: Randy Dunlap <>
Signed-off-by: Richard Weinberger <>
1 file changed