Revert "scsi: ufs: core: Add a compile-time structure size check"

This reverts commit 9a868c8ad3.

Currently breaks the build due to the modified Android UFS/Crypto
code, so revert this until it is worked out...

Cc: Eric Biggers <ebiggers@google.com>
Cc: Bart Van Assche <bvanassche@google.com>
Fixes: 9a868c8ad3 ("scsi: ufs: core: Add a compile-time structure size check")
Signed-off-by: Greg Kroah-Hartman <gregkh@google.com>
Change-Id: I8ad94a4c50d9d28fb21ce691dd6cb34090668b03
This commit is contained in:
Greg Kroah-Hartman
2021-11-16 19:14:19 +01:00
parent c75b1d6ae3
commit dd71af6430

View File

@@ -9832,11 +9832,6 @@ static int __init ufshcd_core_init(void)
{
int ret;
/* Verify that there are no gaps in struct utp_transfer_cmd_desc. */
static_assert(sizeof(struct utp_transfer_cmd_desc) ==
2 * ALIGNED_UPIU_SIZE +
SG_ALL * sizeof(struct ufshcd_sg_entry));
ufs_debugfs_init();
ret = scsi_register_driver(&ufs_dev_wlun_template.gendrv);