Skip to content

Improve device information handling

Bart Van Assche linux-scsi 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest3 patches 2 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/3device information: Do not interpret error codes as flagsdrivers/scsi/scsi_devinfo.c drivers/scsi/scsi_priv.h drivers/scsi/scsi_scan.c +1 more+30 -231 reply
2/3Constify scsi_dev_info_list_add_keyed() string argumentsdrivers/scsi/scsi_devinfo.c drivers/scsi/scsi_priv.h+7 -60 replies
3/3Introduce a type for device information flags, namely bflags_tdrivers/scsi/scsi_devinfo.c drivers/scsi/scsi_priv.h drivers/scsi/scsi_scan.c +5 more+60 -521 reply

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [PATCH 0/3] Improve device information handling

Hello Martin,

There are multiple issues with the device information flag handling (a.k.a. blacklist flags):
* For neither scsi_get_device_flags() nor scsi_get_device_flags_keyed() it is possible to determine whether an error code has been returned or whether the flag with bit position 31 was set.
* A large number of sparse warnings is generated by the blacklist flags code. The three patches in this series address these issues.

Please consider these patches for inclusion in the upstream kernel.

Thanks,

Bart.

Bart Van Assche (3):
device information: Do not interpret error codes as flags Constify scsi_dev_info_list_add_keyed() string arguments Introduce a type for device information flags, namely bflags_t

 drivers/scsi/scsi_devinfo.c       | 48 +++++++++++++++++++-----------------
 drivers/scsi/scsi_priv.h          | 12 +++++----
 drivers/scsi/scsi_scan.c          | 28 +++++++++++----------
 drivers/scsi/scsi_sysfs.c         |  4 +--
 drivers/scsi/scsi_transport_spi.c | 11 +++++----
 include/scsi/scsi_device.h        |  3 ++-
 include/scsi/scsi_devinfo.h       | 52 ++++++++++++++++++++-------------------
 include/scsi/scsi_types.h         |  6 +++++
 8 files changed, 90 insertions(+), 74 deletions(-)
 create mode 100644 include/scsi/scsi_types.h
Signature · 1 line
2.15.0