Centos-kernel-stream-9/drivers/firewire
Ewan D. Milne be46012c48 scsi: Change SCSI device boolean fields to single bit flags
JIRA: https://issues.redhat.com/browse/RHEL-23829
Upstream Status: From upstream linux mainline
Conflicts: KABI changes -- these changes resolve KABI issues noted in earlier patches

Commit 3cc2ffe5c16d ("scsi: sd: Differentiate system and runtime start/stop
management") changed the single bit manage_start_stop flag into 2 boolean
fields of the SCSI device structure. Commit 24eca2dce0f8 ("scsi: sd:
Introduce manage_shutdown device flag") introduced the manage_shutdown
boolean field for the same structure. Together, these 2 commits increase
the size of struct scsi_device by 8 bytes by using booleans instead of
defining the manage_xxx fields as single bit flags, similarly to other
flags of this structure.

Avoid this unnecessary structure size increase and be consistent with the
definition of other flags by reverting the definitions of the manage_xxx
fields as single bit flags.

Fixes: 3cc2ffe5c16d ("scsi: sd: Differentiate system and runtime start/stop management")
Fixes: 24eca2dce0f8 ("scsi: sd: Introduce manage_shutdown device flag")
Cc: <stable@vger.kernel.org>
Signed-off-by: Damien Le Moal <dlemoal@kernel.org>
Link: https://lore.kernel.org/r/20231120225631.37938-2-dlemoal@kernel.org
Reviewed-by: Niklas Cassel <niklas.cassel@wdc.com>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
(cherry picked from commit 6371be7aeb986905bb60ec73d002fc02343393b4)
Signed-off-by: Ewan D. Milne <emilne@redhat.com>
2024-07-08 15:39:22 -04:00
..
Kconfig
Makefile
core-card.c
core-cdev.c firewire: ohci: Replace zero-length array with flexible-array 2020-06-15 23:08:31 -05:00
core-device.c driver core: make struct device_type.uevent() take a const * 2023-10-23 10:35:56 -05:00
core-iso.c treewide: Use fallthrough pseudo-keyword 2020-08-23 17:36:59 -05:00
core-topology.c firewire: core: Fix fall-through warnings for Clang 2021-05-17 19:40:32 -05:00
core-transaction.c treewide: Use fallthrough pseudo-keyword 2020-08-23 17:36:59 -05:00
core.h firewire: ohci: Replace zero-length array with flexible-array 2020-06-15 23:08:31 -05:00
init_ohci1394_dma.c
net.c
nosy-user.h
nosy.c firewire: nosy: switch from 'pci_' to 'dma_' API 2021-06-15 17:09:14 +02:00
nosy.h
ohci.c firewire: ohci: Use tasklet_disable_in_atomic() where required 2021-03-17 16:34:05 +01:00
ohci.h
sbp2.c scsi: Change SCSI device boolean fields to single bit flags 2024-07-08 15:39:22 -04:00