qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
* [PATCH v2 0/3] hw/usb/dev-uas: Fix Clang 11 -Wgnu-variable-sized-type-not-at-end error
@ 2021-01-20 15:35 Philippe Mathieu-Daudé
  2021-01-20 15:35 ` [PATCH v2 1/3] scsi/utils: Rename 'illegal request' -> 'invalid request' Philippe Mathieu-Daudé
                   ` (2 more replies)
  0 siblings, 3 replies; 9+ messages in thread
From: Philippe Mathieu-Daudé @ 2021-01-20 15:35 UTC (permalink / raw)
  To: qemu-devel
  Cc: Fam Zheng, Paolo Bonzini, Philippe Mathieu-Daudé,
	Gerd Hoffmann, qemu-block

Another attempt to fix the following Clang 11 warning:

  usb/dev-uas.c:157:31: error: field 'status' with variable sized type 'uas_i=
u' not at the end of a struct or class is a GNU extension [-Werror,-Wgnu-vari=
able-sized-type-not-at-end]
      uas_iu                    status;
                                ^
If a guest send a packet with additional data, respond
with "Invalid Request - parameter not supported".

v2: Include Eric feedbacks

Philippe Mathieu-Daud=C3=A9 (3):
  scsi/utils: Rename 'illegal request' -> 'invalid request'
  scsi/utils: Add INVALID_PARAM_VALUE sense code definition
  hw/usb/dev-uas: Report command additional adb length as unsupported

 include/scsi/utils.h | 22 ++++++++++++----------
 hw/usb/dev-uas.c     | 12 +++++++++++-
 scsi/utils.c         | 25 +++++++++++++++----------
 3 files changed, 38 insertions(+), 21 deletions(-)

--=20
2.26.2




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

end of thread, other threads:[~2021-01-21 13:19 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2021-01-20 15:35 [PATCH v2 0/3] hw/usb/dev-uas: Fix Clang 11 -Wgnu-variable-sized-type-not-at-end error Philippe Mathieu-Daudé
2021-01-20 15:35 ` [PATCH v2 1/3] scsi/utils: Rename 'illegal request' -> 'invalid request' Philippe Mathieu-Daudé
2021-01-20 15:45   ` Eric Blake
2021-01-20 16:15   ` Gerd Hoffmann
2021-01-20 16:21     ` Eric Blake
2021-01-20 15:35 ` [PATCH v2 2/3] scsi/utils: Add INVALID_PARAM_VALUE sense code definition Philippe Mathieu-Daudé
2021-01-20 15:35 ` [PATCH v2 3/3] hw/usb/dev-uas: Report command additional adb length as unsupported Philippe Mathieu-Daudé
2021-01-21 11:14   ` Gerd Hoffmann
2021-01-21 13:17     ` Philippe Mathieu-Daudé

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).