We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 21f04fb commit c306f74Copy full SHA for c306f74
drivers/ufs/core/ufshcd.c
@@ -10527,6 +10527,14 @@ static const struct dev_pm_ops ufshcd_wl_pm_ops = {
10527
10528
static void ufshcd_check_header_layout(void)
10529
{
10530
+ /*
10531
+ * gcc compilers before version 10 cannot do constant-folding for
10532
+ * sub-byte bitfields. Hence skip the layout checks for gcc 9 and
10533
+ * before.
10534
+ */
10535
+ if (IS_ENABLED(CONFIG_CC_IS_GCC) && CONFIG_GCC_VERSION < 100000)
10536
+ return;
10537
+
10538
BUILD_BUG_ON(((u8 *)&(struct request_desc_header){
10539
.cci = 3})[0] != 3);
10540
0 commit comments