Linux RTC
 help / color / mirror / Atom feed
* [PATCH 0/2] Remove VLA usage in rtc-s5m
@ 2018-03-10  6:27 Gustavo A. R. Silva
  2018-03-10  6:27 ` [PATCH 1/2] rtc: s5m: Move enum from rtc.h to rtc-s5m.c Gustavo A. R. Silva
                   ` (2 more replies)
  0 siblings, 3 replies; 9+ messages in thread
From: Gustavo A. R. Silva @ 2018-03-10  6:27 UTC (permalink / raw)
  To: Sangbeom Kim, Krzysztof Kozlowski, Bartlomiej Zolnierkiewicz,
	Alessandro Zummo, Alexandre Belloni, Lee Jones
  Cc: linux-samsung-soc, linux-rtc, linux-kernel, Kernel Hardening,
	Kees Cook, Gustavo A. R. Silva

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(-)

-- 
2.7.4

^ permalink raw reply	[flat|nested] 9+ messages in thread

end of thread, other threads:[~2018-03-13  3:42 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2018-03-10  6:27 [PATCH 0/2] Remove VLA usage in rtc-s5m Gustavo A. R. Silva
2018-03-10  6:27 ` [PATCH 1/2] rtc: s5m: Move enum from rtc.h to rtc-s5m.c Gustavo A. R. Silva
2018-03-11 16:39   ` Krzysztof Kozlowski
2018-03-13  3:22     ` Gustavo A. R. Silva
2018-03-12  8:54   ` Lee Jones
2018-03-10  6:27 ` [PATCH 2/2] rtc: s5m: Remove VLA usage Gustavo A. R. Silva
2018-03-12 11:14   ` Krzysztof Kozlowski
2018-03-13  0:35 ` [PATCH 0/2] Remove VLA usage in rtc-s5m Alexandre Belloni
2018-03-13  1:17   ` Gustavo A. R. Silva

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox