summaryrefslogtreecommitdiff
path: root/scripts/gdb
diff options
context:
space:
mode:
authorDavid Lechner <dlechner@baylibre.com>2024-03-04 19:04:24 +0300
committerMark Brown <broonie@kernel.org>2024-03-04 20:43:59 +0300
commitc8340ac1015471ec5af234beff535efe15f382e9 (patch)
tree353202f73865ba3f9e3f71d872c61564686e9fce /scripts/gdb
parent69d54ee2e5b0dab9350be2a7019c472b9b8d4c14 (diff)
downloadlinux-c8340ac1015471ec5af234beff535efe15f382e9.tar.xz
spi: axi-spi-engine: use __counted_by() attribute
This adds the __counted_by() attribute to the flex array at the end of struct spi_engine_program in the AXI SPI Engine controller driver. The assignment of the length field has to be reordered to be before the access to the flex array in order to avoid potential compiler warnings/errors due to adding the __counted_by() attribute. Suggested-by: Nuno Sá <nuno.sa@analog.com> Signed-off-by: David Lechner <dlechner@baylibre.com> Reviewed-by: Gustavo A. R. Silva <gustavoars@kernel.org> Reviewed-by: Kees Cook <keescook@chromium.org> Link: https://msgid.link/r/20240304-mainline-axi-spi-engine-small-cleanups-v2-2-5b14ed729a31@baylibre.com Signed-off-by: Mark Brown <broonie@kernel.org>
Diffstat (limited to 'scripts/gdb')
0 files changed, 0 insertions, 0 deletions