iio: core: New macros and making use of them
Status from this message: Applied to for-next/hardening, thanks!
Get series with b4
b4 am [email protected]Versions newest first
Changes in v4 from the cover letter
- dropped applied patches
- refactored macros and code to make them simpler (Jonathan)
- moved (renamed) macros to overflow.h
Patches in v4 Applied
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/8 | overflow: Use POD in check_shl_overflow()include/ | +1 | 3 replies | |
| 2/8 | overflow: Add struct_size_with_data() and struct_data_pointer() helpersinclude/ | +26 | 2 replies | |
| 3/8 | iio: core: NULLify private pointer when there is no private datadrivers/ | +6 | 3 replies | |
| 4/8 | iio: core: Calculate alloc_size only once in iio_device_alloc()drivers/ | +4 | 2 replies | |
| 5/8 | iio: core: Use new helpers from overflow.h in iio_device_alloc()drivers/ | +2 | 2 replies | |
| 6/8 | spi: Use new helpers from overflow.h in __spi_alloc_controller()drivers/ | +3 | 1 reply | |
| 7/8 | net-device: Use new helpers from overflow.h in netdevice APIsinclude/ net/ | +7 | 14 replies | |
| 8/8 | dmaengine: ste_dma40: Use new helpers from overflow.hdrivers/ | +6 | 2 replies |
Reviews trailers per patch
4 of 8 patches have a Reviewed-by or Acked-by.
| Patch | Nuno Sa | Mark Brown | Kees Cook | Linus Walleij |
|---|---|---|---|---|
| 1/8 | A-b | |||
| 2/8 | ||||
| 3/8 | ||||
| 4/8 | ||||
| 5/8 | R-b | |||
| 6/8 | A-b | |||
| 7/8 | ||||
| 8/8 | R-b |
Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes. Scroll the table sideways for all 4 reviewers.
Cover letter [PATCH v4 0/8] iio: core: New macros and making use of them
Added new macros to overflow.h and reuse it in IIO. For the sake of examples a few more places were updated (requested by Kees). In case maintainers are okay, tags will be appreciated.
v4:
- dropped applied patches
- refactored macros and code to make them simpler (Jonathan)
- moved (renamed) macros to overflow.h
v3: https://lore.kernel.org/r/[email protected]
- dropped applied patches
- use switch-case for the supported clocks (Jonathan) - redone opaque_struct_size() to be simpler (Uwe)
- dropped wrong hunk for krealloc_array() conversion (Jonathan) - dropped initcall move (Jonathan)
v2:
- sprintf() --> sysfs_emit() (Nuno)
- added tag (Nuno)
Andy Shevchenko (8):
overflow: Use POD in check_shl_overflow()
overflow: Add struct_size_with_data() and struct_data_pointer()
helpers
iio: core: NULLify private pointer when there is no private data
iio: core: Calculate alloc_size only once in iio_device_alloc()
iio: core: Use new helpers from overflow.h in iio_device_alloc()
spi: Use new helpers from overflow.h in __spi_alloc_controller()
net-device: Use new helpers from overflow.h in netdevice APIs
dmaengine: ste_dma40: Use new helpers from overflow.h
drivers/dma/ste_dma40.c | 12 ++++++------ drivers/iio/industrialio-core.c | 16 +++++++++------- drivers/spi/spi.c | 6 +++--- include/linux/netdevice.h | 3 ++- include/linux/overflow.h | 29 +++++++++++++++++++++++++++-- net/core/dev.c | 10 +++++----- 6 files changed, 52 insertions(+), 24 deletions(-)
Signature · 1 line
2.43.0.rc1.1.gbec44491f096