Skip to content

Remove VLA usage in rtc-s5m

Gustavo A. R. Silva kernel-hardening linux-rtc linux-samsung-soc lkml 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest2 patches 6 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/2rtc: s5m: Move enum from rtc.h to rtc-s5m.cdrivers/rtc/rtc-s5m.c include/linux/mfd/samsung/rtc.h+11 -113 replies
2/2rtc: s5m: Remove VLA usagedrivers/rtc/rtc-s5m.c+8 -61 reply

Reviews trailers per patch

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

PatchKrzysztof KozlowskiLee Jones
1/2R-b A-b
2/2R-b

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

Read the v1 thread

Cover letter [PATCH 0/2] Remove VLA usage in rtc-s5m

This patchset aims to remove VLA usage from rtc-s5m.

The first patch moves an enum from rtc.h to rtc-s5m.c, as this is the only driver in which such enum is actually being used [1].

The second patch adds the enum name RTC_MAX_NUM_TIME_REGS, which will be used as a maximum length to the current VLAs, hence turning them into fixed-length arrays instead.

[1] https://marc.info/?l=linux-rtc&m=152060068925948&w=2

Thanks

Gustavo A. R. Silva (2):
rtc: s5m: move enum from rtc.h to rtc-s5m.c
rtc: s5m: Remove VLA usage

 drivers/rtc/rtc-s5m.c           | 25 +++++++++++++++++++------
 include/linux/mfd/samsung/rtc.h | 11 -----------
 2 files changed, 19 insertions(+), 17 deletions(-)
Signature · 1 line
2.7.4