diff options
author | Kees Cook <keescook@chromium.org> | 2022-11-18 04:42:55 +0100 |
---|---|---|
committer | Kees Cook <keescook@chromium.org> | 2022-12-02 22:10:36 +0100 |
commit | d662198e03bc7fb4635156ee7e8b8d325e2d8512 (patch) | |
tree | e18c6f5b356d6231cc96bd5f7f1768239ec20a6b /drivers/base/regmap/Makefile | |
parent | um: virt-pci: Avoid GCC non-NULL warning (diff) | |
download | linux-d662198e03bc7fb4635156ee7e8b8d325e2d8512.tar.xz linux-d662198e03bc7fb4635156ee7e8b8d325e2d8512.zip |
hpet: Replace one-element array with flexible-array member
One-element arrays are deprecated[1] and are being replaced with
flexible array members in support of the ongoing efforts to tighten the
FORTIFY_SOURCE routines on memcpy(), correctly instrument array indexing
with UBSAN_BOUNDS, and to globally enable -fstrict-flex-arrays=3.
Replace one-element array with flexible-array member in struct hpet.
This results in no differences in binary output. The use of struct hpet
is never used with sizeof() and accesses via hpet_timers array are
already done after explicit bounds checking.
[1] https://github.com/KSPP/linux/issues/79
Cc: Clemens Ladisch <clemens@ladisch.de>
Cc: "Gustavo A. R. Silva" <gustavoars@kernel.org>
Signed-off-by: Kees Cook <keescook@chromium.org>
Reviewed-by: Gustavo A. R. Silva <gustavoars@kernel.org>
Link: https://lore.kernel.org/r/20221118034250.never.999-kees@kernel.org
Diffstat (limited to 'drivers/base/regmap/Makefile')
0 files changed, 0 insertions, 0 deletions