Received: by 2002:a05:6602:18e:0:0:0:0 with SMTP id m14csp2438064ioo; Sat, 28 May 2022 13:41:55 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxsdIOWu9VaH6Pog4mDDy22H2Ib/6XMbzB+J0nE6LTrFrVcZLKkl2ktBhjqFYra5yahYUZ1 X-Received: by 2002:a17:90b:698:b0:1e2:6efa:be00 with SMTP id m24-20020a17090b069800b001e26efabe00mr11657357pjz.91.1653770515175; Sat, 28 May 2022 13:41:55 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1653770515; cv=none; d=google.com; s=arc-20160816; b=bslhAp7NKVAcIxilhQb4UbQXx0b2x+NptUvG9NGZLskpHQSqAG/EoNG2uLbOW1g/8N 3cEQZzsJybi27DhK0SkHSH5VGHXcIyAH7ZSaYUGw1Lks5Art5xUszftjylgOj5+cN4y+ on6q7WEfdumqRgmpJjQ57Ab8MRGAqIpofwi2Go9yo25BxhOzUj2b+gQzNdNsCl7N84ys yUVL0DCDLLUDvwkjJqfrOwsQGB7q65jfWIYnykocX/JPE9QuOKUP5U02lff3mQDZRKMS 3YqG1kGiuzoHfYY6yyB+huFaqZBmoIPW8kr3rM4buCFS0yUN6MHmiYaHKmyCIri2Eeso hLIg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version:dkim-signature; bh=iGqp3sqIQ6D1oqU2b3UQ+JQ14av/DX22LG0p5NM1mUo=; b=B5qF9ynLsGTQWr2AKyTttc6uKsvQd4N0EV5Wo+/lct66pfI7H8FlmE9uRPLv2ZDGOR ryysUawfm7OdgjfU2MwaC/wN3lCfvYYax77v6KJ6zUc7uxouic6vxlKSbQUo8JE4Pps8 1SaGfcejhQYuJEy0eksqrQs70XxwFR3Mm0jbZT91jqa1rgi+GmR/e4YWNgNtiKRPoJvY es9lbgRT9rIaF+82h3an3GLr46IEHoD6P9DPavOafSzuWIUbnn6XiTTIbEdBZPEfOHaW 7PTKJ0X+DjpyZ3GfHXBhFv5WX7HcLrUXUqx2wsIZzpz7swDVShBICI8smj1AGt0Ih0lS Z12Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linux-foundation.org header.s=google header.b=Px8PhLWY; spf=softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from lindbergh.monkeyblade.net (lindbergh.monkeyblade.net. [23.128.96.19]) by mx.google.com with ESMTPS id j4-20020a056a00234400b0050d429bb67esi11457515pfj.82.2022.05.28.13.41.54 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 28 May 2022 13:41:55 -0700 (PDT) Received-SPF: softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) client-ip=23.128.96.19; Authentication-Results: mx.google.com; dkim=pass header.i=@linux-foundation.org header.s=google header.b=Px8PhLWY; spf=softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 66C761C925F; Sat, 28 May 2022 12:47:34 -0700 (PDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S239318AbiE1SJL (ORCPT + 99 others); Sat, 28 May 2022 14:09:11 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:51994 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S236088AbiE1SJJ (ORCPT ); Sat, 28 May 2022 14:09:09 -0400 Received: from mail-ej1-x629.google.com (mail-ej1-x629.google.com [IPv6:2a00:1450:4864:20::629]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 6F743DF1B for ; Sat, 28 May 2022 11:09:08 -0700 (PDT) Received: by mail-ej1-x629.google.com with SMTP id m20so13983173ejj.10 for ; Sat, 28 May 2022 11:09:08 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linux-foundation.org; s=google; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=iGqp3sqIQ6D1oqU2b3UQ+JQ14av/DX22LG0p5NM1mUo=; b=Px8PhLWYRiqNg8y87VlDUDsLJH2RoVnLN8Jl2LVu1LymXQyB5v2VGxblVmbq7n6ao8 VU3hqglYO5WBsoT19tAqis2S52THyYxULaMlPuhCVc+o+wPTrAjTjNWJDkwjJ3dtGVFj 8QZXFAV7pfp7xwqlA1vAGNq2rUWHaa1b3lzak= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=iGqp3sqIQ6D1oqU2b3UQ+JQ14av/DX22LG0p5NM1mUo=; b=dgmGnvXp8UKEUqFgvXP9OLpaFTiv9KySwhe+IQydHT7qClowgumW8tSGgZxZeIDw58 eQSRk7XFn6+1ltWXHxgjWy8pPD28WHanObi+85yxsTaw3WfsFAc0Zow5Rw2BF+HTNboZ I0lB4UeazDkiSOoieTxbYT98wXWMxaYqRWPpRGn3sV2anNoNZjImGdLFsYU9rvvD6l7f v8gq7G2pLeiLjQNCZpI0fPspNZKMcNlSyb0onT82+vljoazsLPSptLtaeM3qG2XS0ZdB 2RgF0E/bz4N0RXQEjZHe3eMfZN5G+SQy+IqzSSrLXPLQWDsBzQ+0yzN6dJsp/FDmcOJG v+0A== X-Gm-Message-State: AOAM5338XyabSYcJPYYEwlj/otcWAjgmeC1pfZ0b188nsAL6Whqih3jr 7FP6FfU/0Q3BFVDmgyqlMt0u3qoRCLhZPVbg X-Received: by 2002:a17:907:a426:b0:6ff:6c9f:7a3a with SMTP id sg38-20020a170907a42600b006ff6c9f7a3amr69120ejc.316.1653761346692; Sat, 28 May 2022 11:09:06 -0700 (PDT) Received: from mail-wr1-f42.google.com (mail-wr1-f42.google.com. [209.85.221.42]) by smtp.gmail.com with ESMTPSA id q9-20020a50cc89000000b0042ac2705444sm3809080edi.58.2022.05.28.11.09.05 for (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Sat, 28 May 2022 11:09:05 -0700 (PDT) Received: by mail-wr1-f42.google.com with SMTP id u3so9714289wrg.3 for ; Sat, 28 May 2022 11:09:05 -0700 (PDT) X-Received: by 2002:a05:6000:16c4:b0:20f:cd5d:4797 with SMTP id h4-20020a05600016c400b0020fcd5d4797mr28588153wrf.193.1653761344659; Sat, 28 May 2022 11:09:04 -0700 (PDT) MIME-Version: 1.0 References: In-Reply-To: From: Linus Torvalds Date: Sat, 28 May 2022 11:08:48 -0700 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: mainline build failure due to f1e4c916f97f ("drm/edid: add EDID block count and size helpers") To: Sudip Mukherjee , Russell King , Arnd Bergmann , Viresh Kumar , Shiraz Hashim Cc: Jani Nikula , =?UTF-8?B?VmlsbGUgU3lyasOkbMOk?= , Maarten Lankhorst , Maxime Ripard , Thomas Zimmermann , David Airlie , Daniel Vetter , dri-devel , Linux Kernel Mailing List , Linux ARM , SoC Team Content-Type: multipart/mixed; boundary="0000000000007e28af05e01651d2" X-Spam-Status: No, score=-2.0 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,RDNS_NONE,SPF_HELO_NONE,T_SCC_BODY_TEXT_LINE autolearn=no autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org --0000000000007e28af05e01651d2 Content-Type: text/plain; charset="UTF-8" On Sat, May 28, 2022 at 10:40 AM Linus Torvalds wrote: > > So digging a bit deeper - since I have am arm compiler after all - I > note that 'sizeof(detailed_timings)' is 88. Hmm. sizeof() both detailed_timings[0].data.other_data.data.range.formula.gtf2 and detailed_timings[0].data.other_data.data.range.formula.cvt is 7. But the *union* of those things is detailed_timings[0].data.other_data.data.range.formula and its size is 8 (despite having an alignment of just 1). The attached patch would seem to fix it for me. Not very much tested, and I have no idea what it is that triggers this only on spear3xx_defconfig. Some ARM ABI issue that is triggered by some very particular ARM compiler flag enabled by that config? Adding some ARM (and SPEAR, and SoC) people in case they have any idea. This smells like a compiler bug triggered by "there's a 16-bit member field in that gtf2 structure, and despite it being packed and aligned to 1, we somehow still align the size to 2". I dunno. But marking those unions packed too doesn't seem wrong, and does seem to fix it. Linus --0000000000007e28af05e01651d2 Content-Type: text/x-patch; charset="US-ASCII"; name="patch.diff" Content-Disposition: attachment; filename="patch.diff" Content-Transfer-Encoding: base64 Content-ID: X-Attachment-Id: f_l3q6oh0p0 IGluY2x1ZGUvZHJtL2RybV9lZGlkLmggfCA2ICsrKy0tLQogMSBmaWxlIGNoYW5nZWQsIDMgaW5z ZXJ0aW9ucygrKSwgMyBkZWxldGlvbnMoLSkKCmRpZmYgLS1naXQgYS9pbmNsdWRlL2RybS9kcm1f ZWRpZC5oIGIvaW5jbHVkZS9kcm0vZHJtX2VkaWQuaAppbmRleCBjMzIwNGE1OGZiMDkuLmIyNzU2 NzUzMzcwYiAxMDA2NDQKLS0tIGEvaW5jbHVkZS9kcm0vZHJtX2VkaWQuaAorKysgYi9pbmNsdWRl L2RybS9kcm1fZWRpZC5oCkBAIC0xMjEsNyArMTIxLDcgQEAgc3RydWN0IGRldGFpbGVkX2RhdGFf bW9uaXRvcl9yYW5nZSB7CiAJCQl1OCBzdXBwb3J0ZWRfc2NhbGluZ3M7CiAJCQl1OCBwcmVmZXJy ZWRfcmVmcmVzaDsKIAkJfSBfX2F0dHJpYnV0ZV9fKChwYWNrZWQpKSBjdnQ7Ci0JfSBmb3JtdWxh OworCX0gX19hdHRyaWJ1dG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