Skip to content

Commit a2a86dc

Browse files
committed
scsi: ufs: Fix the build for the old ARM OABI
JIRA: https://issues.redhat.com/browse/RHEL-79078 commit d0bac0e Author: Bart Van Assche <bvanassche@acm.org> Date: Tue Aug 29 09:35:42 2023 -0700 scsi: ufs: Fix the build for the old ARM OABI All structs and unions are word aligned when using the OABI. Mark the union in struct utp_upiu_header as packed to prevent that the compiler inserts padding bytes. Cc: Arnd Bergmann <arnd@arndb.de> Reported-by: kernel test robot <lkp@intel.com> Closes: https://lore.kernel.org/oe-kbuild-all/202308251634.tuRn4OVv-lkp@intel.com/ Fixes: 617bfaa ("scsi: ufs: Simplify response header parsing") Signed-off-by: Bart Van Assche <bvanassche@acm.org> Link: https://lore.kernel.org/r/20230829163547.1200183-1-bvanassche@acm.org Reviewed-by: Arnd Bergmann <arnd@arndb.de> Reviewed-by: Bean Huo <beanhuo@micron.com> Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com> Signed-off-by: Radu Rendec <rrendec@redhat.com>
1 parent 7c8510d commit a2a86dc

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

include/uapi/scsi/scsi_bsg_ufs.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,7 @@ struct utp_upiu_header {
8383
union {
8484
__u8 tm_function;
8585
__u8 query_function;
86-
};
86+
} __attribute__((packed));
8787
__u8 response;
8888
__u8 status;
8989
__u8 ehs_length;

0 commit comments

Comments
 (0)