Skip to content

devres: Provide krealloc_array

James Clark linux-arm-kernel linux-arm-msm linux-doc linux-hwmon linux-iio linux-serial lkml 4 versions – In review

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v4 Latest4 patches 10 repliesIn review
  2. v34 patches 3 repliesSuperseded
  3. v24 patches 7 repliesSuperseded
Earlier versions · 1
VersionPostedPatchesRepliesStatus
v14 patches3 repliesSuperseded

Changes in v4 from the cover letter

* Rebase onto v6.4-rc1

Patches in v4 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/4devres: Provide krealloc_arrayDocumentation/driver-api/driver-model/devres.rst include/linux/device.h+12 -010 replies
2/4hwmon: pmbus: Use devm_krealloc_arraydrivers/hwmon/pmbus/pmbus_core.c+3 -30 replies
3/4iio: adc: Use devm_krealloc_arraydrivers/iio/adc/xilinx-ams.c drivers/iio/adc/xilinx-xadc-core.c+10 -160 replies
4/4serial: qcom_geni: Comment use of devm_krealloc rather than devm_krealloc_arraydrivers/tty/serial/qcom_geni_serial.c+5 -00 replies

Reviews trailers per patch

All 4 patches have a Reviewed-by or Acked-by.

PatchJonathan CameronGuenter Roeck
1/4R-b
2/4R-b A-b
3/4R-b
4/4R-b

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v4 thread

Cover letter [PATCH v4 0/4] devres: Provide krealloc_array

Changes since v3:

* Rebase onto v6.4-rc1

Changes since v2:

* Remove change in qcom_geni_serial.c in the last commmit and replace it with a comment instead
* Whitespace fix

Changes since v1:

* Style fix

-----------------------

Hi,

I had a use for a devm realloc_array in a separate change, so I've added one and updated all the obvious existing uses of it that I could find. This is basically a copy paste of the one in slab.h

Applies to v6.4-rc1

Thanks
James
James Clark (4):
devres: Provide krealloc_array
hwmon: pmbus: Use devm_krealloc_array
iio: adc: Use devm_krealloc_array
serial: qcom_geni: Comment use of devm_krealloc rather than
devm_krealloc_array

 .../driver-api/driver-model/devres.rst          |  1 +
 drivers/hwmon/pmbus/pmbus_core.c                |  6 +++---
 drivers/iio/adc/xilinx-ams.c                    |  9 +++------
 drivers/iio/adc/xilinx-xadc-core.c              | 17 +++++++----------
 drivers/tty/serial/qcom_geni_serial.c           |  5 +++++
 include/linux/device.h                          | 11 +++++++++++
 6 files changed, 30 insertions(+), 19 deletions(-)
Signature · 1 line
2.34.1