On Mon, May 15, 2023 at 08:55:33AM +0100, James Clark wrote:
On 13/05/2023 12:04, Greg KH wrote:
On Tue, May 09, 2023 at 10:49:38AM +0100, James Clark wrote:
There is no krealloc_array equivalent in devres. Users would have to
do their own multiplication overflow check so provide one.
Reviewed-by: Jonathan Cameron <Jonathan.Cameron@xxxxxxxxxx>
Signed-off-by: James Clark <james.clark@xxxxxxx>
---
Documentation/driver-api/driver-model/devres.rst | 1 +
include/linux/device.h | 11 +++++++++++
2 files changed, 12 insertions(+)
Maybe something could be done with some macro magic, but it would
probably end up being worse than just copying them and would affect the
real ones as well. So yeah I can't think of any easy gains either.
Ok, that's good. Given a lack of objections from others, I'll just take
this through my driver core tree in a few days.