Received: by 2002:a05:6602:18e:0:0:0:0 with SMTP id m14csp2359848ioo; Sat, 28 May 2022 11:13:10 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxQqR8FmapYVu7Z/hC7T9hWN+KkrUsAsb0T0KFcLkIJ2ObAFpGuMRsqymLSidfBgF9hTv8X X-Received: by 2002:a17:90b:4f82:b0:1e0:4852:bc5d with SMTP id qe2-20020a17090b4f8200b001e04852bc5dmr14540198pjb.64.1653761590128; Sat, 28 May 2022 11:13:10 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1653761590; cv=none; d=google.com; s=arc-20160816; b=w8J/C1Prj/r6xhDFtr6a3Jv7w3l/CuWJxc35Sag2ShL0dd47UIGqvqPhISrAnU868j rwdcX3ZX3JbpG+n4SpyyJDN4O2AiLwabwT4hvQTtsY5S4zOoTZ0UAndq5ffHeS/AseG2 1VxWcSFKLttxuhmy5XL8JWrfdqMUHLAmlhD4NCYreU1CkFRU2x8BeXdi1IsEzLzyLRkc do8NjC8nxylAwz2E7dOk6cN7p50KtHm2Yj3lcdyZ8MRPQwos01EAz42Ovf4OnM9RUZEO k0Obe/tdRvq51+qjnGzxh+6qTIw+m0ET8EKedL9b3Ds/8RzZGQMgTVMykPR/UY9bd2lD 1iPQ== 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=/a8ecIYHg7QlH35fGGSVeTBLl6RR/RV9nck1HQAe+N8=; b=s3XlrKmU8UV9G88kcOM1TM4W5QETjHwMWNgehy5XZwFEXUiut2iajBzJy1PK8nW6yR HMPX3FDAtgRiaEtfNGP9uI8AK4gdxGkaF3eDi43oGs4Og/JstZSz46L6YvazQW4ojNWw DiTRb/58lmjQ4VBLxenuVgYyoPs+odLXvInF2GHKwJ1vjwbY5fvRjIPv2CaLBGISbo5c 4YXyHk7mD1Adcqlm9W5ZBPkBBRehAcFlpNyPV2g8cBw4gnwJ8x1hU1EXVU93jcSPtFUF uEJ4oRPAQ6zk6wIjJCVTzsqbSGIJW+U68eF6j7feLOwLiCjsDBYuaRT3v+WVtQaFgAv9 fJ7A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linux-foundation.org header.s=google header.b=SsVTwOnh; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from lindbergh.monkeyblade.net (lindbergh.monkeyblade.net. [2620:137:e000::1:18]) by mx.google.com with ESMTPS id n67-20020a622746000000b005182bb020aasi9347442pfn.20.2022.05.28.11.13.09 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 28 May 2022 11:13:10 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) client-ip=2620:137:e000::1:18; Authentication-Results: mx.google.com; dkim=pass header.i=@linux-foundation.org header.s=google header.b=SsVTwOnh; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 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 68A8FDEB5; Sat, 28 May 2022 11:13:08 -0700 (PDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1348240AbiE1BEk (ORCPT + 99 others); Fri, 27 May 2022 21:04:40 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:37158 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S241664AbiE1BEi (ORCPT ); Fri, 27 May 2022 21:04:38 -0400 Received: from mail-ej1-x635.google.com (mail-ej1-x635.google.com [IPv6:2a00:1450:4864:20::635]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 6D62764BCB for ; Fri, 27 May 2022 18:04:35 -0700 (PDT) Received: by mail-ej1-x635.google.com with SMTP id m20so11447708ejj.10 for ; Fri, 27 May 2022 18:04:35 -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=/a8ecIYHg7QlH35fGGSVeTBLl6RR/RV9nck1HQAe+N8=; b=SsVTwOnhWJT6nMnX54zeDkwThE54QCBhjL5oOAtESV+ElK1rhuZi4yfjiIkJid5QVn oPRMlhPY9Ha+TivafeKHuoBSIFj52kqDM9s2LYRerxU1+rtPdhzC1Z11bpZ1PJ4rVfpk f8tVQQp7rCAJPhDmpX2a9i4lP3pbTSoBarH80= 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=/a8ecIYHg7QlH35fGGSVeTBLl6RR/RV9nck1HQAe+N8=; b=AV3RG8zNCUPBOT8vVnO32q6SsRLuGzJ5RykqK6QVxwKKiOvpBQ0gYWbQk8KIUdMehx U5/c1+W+ueQDR53ifcpPEiOnxedpbLk2mFGfi/yKznFzIXr+jKGCbzK/YJoNMTiUCTe7 kaaSFC2hUJqjBQ4RwZWYy0DgALfWkeqkQFbYrkX/1uNyyguq1iwaRiF71KnebiM+fLLe TNGqcI4PdZPzAs4wqDYESN3YMzomXT1uxOTNjLXqlqL3CW4J+P20tSeqZLev38lnvMUE zeAzlmD991OBjjYKWW5tJ4SSsrg6nHNSX3iHAJIDLXTSf41lp2f10DopTC2g1cfACw6Q 4H/g== X-Gm-Message-State: AOAM532j18ZhtVrhxjN4/DJn1RPI0hWlWdskNMZ75nOaO0ArKon53A4T QbkAG5t7hHknd7eLojneV74z0Wxk/bdGw++C X-Received: by 2002:a17:906:5d04:b0:6db:7262:570e with SMTP id g4-20020a1709065d0400b006db7262570emr39971194ejt.8.1653699872848; Fri, 27 May 2022 18:04:32 -0700 (PDT) Received: from mail-wm1-f44.google.com (mail-wm1-f44.google.com. [209.85.128.44]) by smtp.gmail.com with ESMTPSA id j12-20020a1709062a0c00b006fee28d459csm1910905eje.224.2022.05.27.18.04.31 for (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Fri, 27 May 2022 18:04:31 -0700 (PDT) Received: by mail-wm1-f44.google.com with SMTP id o29-20020a05600c511d00b00397697f172dso4263462wms.0 for ; Fri, 27 May 2022 18:04:31 -0700 (PDT) X-Received: by 2002:a7b:c4ca:0:b0:397:3bac:9b2a with SMTP id g10-20020a7bc4ca000000b003973bac9b2amr9089329wmk.154.1653699870656; Fri, 27 May 2022 18:04:30 -0700 (PDT) MIME-Version: 1.0 References: In-Reply-To: From: Linus Torvalds Date: Fri, 27 May 2022 18:04:14 -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 Cc: Jani Nikula , =?UTF-8?B?VmlsbGUgU3lyasOkbMOk?= , Maarten Lankhorst , Maxime Ripard , Thomas Zimmermann , David Airlie , Daniel Vetter , dri-devel , Linux Kernel Mailing List Content-Type: text/plain; charset="UTF-8" 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 On Fri, May 27, 2022 at 4:41 PM Sudip Mukherjee wrote: > > I just tested with various values, sizeof(*edid) is 144 bytes at that place. Hmm. What compiler do you have? Because it seems very broken. You don't actually have to try with various sizes, you could have just done something like int size_of_edid(const struct edid *edid) { return sizeof(*edid); } and then "make drivers/gpu/drm/drm_edid.s" to generate assembly and see what it looks like (obviously removing the BUG_ON() in order to build). That obviously generates code like movl $128, %eax ret for me, and looking at the definition of that type I really can't see how it would ever generate anything else. But it's apparently not even close for you. I suspect some of the structs inside of that 'struct edid' end up getting aligned, despite the '__attribute__((packed))'. For example, 'struct est_timings' is supposed to be just 3 bytes, and it's at an odd offset too (byte offset 35 in the 'struct edid' if I did the math correctly). But it obviously doesn't happen for me or for most other people, so it's something in your setup. Unusual compiler? Linus