public inbox for linux-scsi@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH 0/3] Improve device information handling
@ 2017-11-15  2:33 Bart Van Assche
  2017-11-15  2:33 ` [PATCH 1/3] device information: Do not interpret error codes as flags Bart Van Assche
                   ` (2 more replies)
  0 siblings, 3 replies; 7+ messages in thread
From: Bart Van Assche @ 2017-11-15  2:33 UTC (permalink / raw)
  To: Martin K . Petersen, James E . J . Bottomley; +Cc: linux-scsi, Bart Van Assche

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

-- 
2.15.0

^ permalink raw reply	[flat|nested] 7+ messages in thread
* [PATCH 0/3] Improve device information handling
@ 2017-11-15  0:57 Bart Van Assche
  2017-11-15  0:57 ` [PATCH 3/3] Introduce a type for device information flags, namely bflags_t Bart Van Assche
  0 siblings, 1 reply; 7+ messages in thread
From: Bart Van Assche @ 2017-11-15  0:57 UTC (permalink / raw)
  To: Martin K . Petersen, James E . J . Bottomley; +Cc: linux-scsi, Bart Van Assche

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

-- 
2.15.0

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

end of thread, other threads:[~2017-11-16  0:01 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2017-11-15  2:33 [PATCH 0/3] Improve device information handling Bart Van Assche
2017-11-15  2:33 ` [PATCH 1/3] device information: Do not interpret error codes as flags Bart Van Assche
2017-11-15 23:57   ` Martin K. Petersen
2017-11-15  2:33 ` [PATCH 2/3] Constify scsi_dev_info_list_add_keyed() string arguments Bart Van Assche
2017-11-15  2:33 ` [PATCH 3/3] Introduce a type for device information flags, namely bflags_t Bart Van Assche
2017-11-16  0:00   ` Martin K. Petersen
  -- strict thread matches above, loose matches on Subject: below --
2017-11-15  0:57 [PATCH 0/3] Improve device information handling Bart Van Assche
2017-11-15  0:57 ` [PATCH 3/3] Introduce a type for device information flags, namely bflags_t Bart Van Assche

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox