Skip to content

lseek related fixes

Andrey Smirnov barebox 1 version Applied

Status from this message: Applied, thanks

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest17 patches 1 replyApplied

Patches in v1 Applied

#Subject and filesSizeRepliesApplied
1/17libfile: Make failure path of open_and_lseek() consistentlib/libfile.c+12 -140 replies
2/17common: Always return enum filetype in file_name_detect_type_offset()common/filetype.c+2 -20 replies
3/17MIPS: ath79: Use errno to get error code from open_and_lseek()arch/mips/mach-ath79/art.c+2 -20 replies
4/17ARM: i.MX: bbu: Fix variable type in imx_bbu_external_nand_update()arch/arm/mach-imx/imx-bbu-external-nand.c+1 -10 replies
5/17ARM: i.MX: bbu: Fix lseek error check in imx_bbu_external_nand_update()arch/arm/mach-imx/imx-bbu-external-nand.c+5 -30 replies
6/17ARM: i.MX: bbu: Fix lseek error check in imx_bbu_internal_v2_write_nand_dbbt()arch/arm/mach-imx/imx-bbu-internal.c+5 -30 replies
7/17ARM: i.MX: bbu: Fix variable type in imx_bbu_internal_v2_write_nand_dbbt()arch/arm/mach-imx/imx-bbu-internal.c+1 -10 replies
8/17bpkfs: Fix lseek error check in bpkfs_probe()fs/bpkfs.c+2 -20 replies
9/17uimage: Fix lseek error check in uimage_verify()common/uimage.c+4 -30 replies
10/17uimage: Fix lseek error check in uimage_load()common/uimage.c+4 -40 replies
11/17uimage: Fix lseek error check in uimage_load_to_buf()common/uimage.c+7 -100 replies
12/17state: Fix lseek error check in state_backend_bucket_direct_read()common/state/backend_bucket_direct.c+8 -80 replies
13/17state: Fix lseek error check in state_backend_bucket_direct_write()common/state/backend_bucket_direct.c+3 -40 replies
14/17state: Fix lseek error check in state_mtd_peb_read()common/state/backend_bucket_circular.c+3 -40 replies
15/17state: Fix lseek error check in state_mtd_peb_write()common/state/backend_bucket_circular.c+3 -40 replies
16/17commands: loadxy: Make use of open_and_lseek()commands/loadxy.c+2 -110 replies
17/17commands: loadb: Make use of open_and_lseek()commands/loadb.c+1 -110 replies

Reviews trailers per patch

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

Read the v1 thread

Cover letter [PATCH 00/17] lseek related fixes

Everyone:

As a follow up to lseek() related fixes that went in recently, I went throught all of the calls to it in the codebase I could find and fixed a number of type problems as well as some other minor issue. This series is the result. Hopefuly all of the patches are self-explanatory.

Feedback is welcome!

Thanks,
Andrey Smirnov

Andrey Smirnov (17):
libfile: Make failure path of open_and_lseek() consistent
common: Always return enum filetype in file_name_detect_type_offset()
MIPS: ath79: Use errno to get error code from open_and_lseek()
ARM: i.MX: bbu: Fix variable type in imx_bbu_external_nand_update()
ARM: i.MX: bbu: Fix lseek error check in
imx_bbu_external_nand_update()
ARM: i.MX: bbu: Fix lseek error check in
imx_bbu_internal_v2_write_nand_dbbt()
ARM: i.MX: bbu: Fix variable type in
imx_bbu_internal_v2_write_nand_dbbt()
bpkfs: Fix lseek error check in bpkfs_probe()
uimage: Fix lseek error check in uimage_verify()
uimage: Fix lseek error check in uimage_load()
uimage: Fix lseek error check in uimage_load_to_buf()
state: Fix lseek error check in state_backend_bucket_direct_read()
state: Fix lseek error check in state_backend_bucket_direct_write()
state: Fix lseek error check in state_mtd_peb_read()
state: Fix lseek error check in state_mtd_peb_write()
commands: loadxy: Make use of open_and_lseek()
commands: loadb: Make use of open_and_lseek()

 arch/arm/mach-imx/imx-bbu-external-nand.c | 10 ++++---
 arch/arm/mach-imx/imx-bbu-internal.c      | 10 ++++---
 arch/mips/mach-ath79/art.c                |  4 +--
 commands/loadb.c                          | 12 +--------
 commands/loadxy.c                         | 13 ++-------
 common/filetype.c                         |  4 +--
 common/state/backend_bucket_circular.c    | 14 +++++-----
 common/state/backend_bucket_direct.c      | 23 ++++++++--------
 common/uimage.c                           | 32 +++++++++++------------
 fs/bpkfs.c                                |  4 +--
 lib/libfile.c                             | 26 +++++++++---------
 11 files changed, 65 insertions(+), 87 deletions(-)
Signature · 7 lines
2.20.1


_______________________________________________
barebox mailing list
[email protected]
http://lists.infradead.org/mailman/listinfo/barebox