Skip to content

mtd-utils: improve compatibility with klibc

Andrea Adami linux-mtd 2 versions – Applied

Status from this message: Applied to mtd-utils.git

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v2 Latest2 patches 1 replyApplied
  2. v12 patches 1 replySuperseded

Patches in v2 Applied

#Subject and filesSizeRepliesApplied
1/2mtd-utils: common.c: convert to integer arithmeticlib/common.c+12 -60 replies
2/2ubi-utils: ubiformat.c: convert to integer arithmeticubi-utils/ubiformat.c+1 -10 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v2 yet.

Read the v2 thread

Cover letter [PATCH v2 0/2] mtd-utils: improve compatibility with klibc

Klibc does not support floating point calculations.
Here some fixes needed to build the ubi-utils against klibc for aarch64, without FPU.

These lines end up compiled with soft float for other arm targets w/out FPU thus this was discovered only cross-building for qemuarm64 using the flag
'-mgeneral-regs-only'.

Changes tested on armv5, same output is printed. v2 fixes compiler warnings (-Wformat) about printf().

Andrea Adami (2):
mtd-utils: common.c: convert to integer arithmetic
ubi-utils: ubiformat.c: convert to integer arithmetic

 lib/common.c          | 18 ++++++++++++------
 ubi-utils/ubiformat.c |  2 +-
 2 files changed, 13 insertions(+), 7 deletions(-)
Signature · 1 line
2.7.4