linux-next/include/linux/greybus
Kees Cook 7ba59ac7da greybus: Avoid fake flexible array for response data
FORTIFY_SOURCE has been ignoring 0-sized destinations while the kernel
code base has been converted to flexible arrays. In order to enforce
the 0-sized destinations (e.g. with __counted_by), the remaining 0-sized
destinations need to be handled. Instead of converting an empty struct
into using a flexible array, just directly use a pointer without any
additional indirection. Remove struct gb_bootrom_get_firmware_response
and struct gb_fw_download_fetch_firmware_response.

Signed-off-by: Kees Cook <keescook@chromium.org>
Reviewed-by: Alex Elder <elder@linaro.org>
Link: https://lore.kernel.org/r/20240304211940.it.083-kees@kernel.org
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2024-03-05 13:59:43 +00:00
..
bundle.h
connection.h
control.h
greybus_id.h
greybus_manifest.h treewide: Replace zero-length arrays with flexible-array members 2022-02-17 07:00:39 -06:00
greybus_protocols.h greybus: Avoid fake flexible array for response data 2024-03-05 13:59:43 +00:00
hd.h treewide: Replace zero-length arrays with flexible-array members 2022-02-17 07:00:39 -06:00
interface.h
manifest.h
module.h treewide: Replace zero-length arrays with flexible-array members 2022-02-17 07:00:39 -06:00
operation.h
svc.h greybus: svc: Remove unused declarations 2023-08-22 16:32:35 +02:00