Received: by 2002:a05:6602:18e:0:0:0:0 with SMTP id m14csp2445942ioo; Sat, 28 May 2022 13:58:39 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzlxmtes4MLKuMHRf0dTKIu6J9vRL8nfUhdVSr+JesTAv9KieYoXrpxjEVzNB6eCgc6hX6M X-Received: by 2002:a17:902:aa07:b0:162:467:db94 with SMTP id be7-20020a170902aa0700b001620467db94mr38053760plb.26.1653771519430; Sat, 28 May 2022 13:58:39 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1653771519; cv=none; d=google.com; s=arc-20160816; b=X1Pa0xysX+TVlJNxgC4E2PeLof7A6APGj1uZzizdYnR2hUICs/gvrtbTIRmpEPRjjC 9D1pHdKNFYaWkfKvBaLF/AbTq1azqVLDzDWVqs/esyFVlAzybojF3NVvb5hl8HxwdSLa GYU5Mo0Zwj5CqLi0E9qN5rAoBpZL1dcccWUhrlmQSINszN+ZXGfcSUTo+z45O1kRKYAf Zf8yPlvUA9z6kB1T5rWS6avBUDDpppDtvVTBtPuI/1WEuWQbLQ+iTWE/82fTLtS/bdX/ ww9PISx/HFSc8zP/5zx3t1FyFdNJ1vxADqi6tS1QCsBCUUj9TzZGbXpfHWATRP/1xEhH OeoQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date :dkim-signature; bh=sVwMCmxLWsbsfDuisFxMS45pxNxsdph6vk/Q4MCnxVs=; b=cTFG4MQsHXdEVqTqHhah1d1xElBc3/h9I1mKP/augnbeMaTRnd63d7lI55eYGkr2nR V/2rOQpqqw8WQL1qNRYpQh2nN+xxxlbCwm+0ZwLP+fgOdmLRaeDHUUN9b3g56tUOgND6 AH5LLqyx/dlhRssrdKPFf/qhOtRsRwlba5pz8IGPGYjk+cQCanXEpunmfaVI70skcpMf Z5dOw4gjnUu/UHySi9BmIKPYhxjsLCyvUnNqGGHvhqkUrHZeo++gMik+EO2btzLQubOZ r1jAM9taUO4KPvkJ5iRpM96dt3ry9iB/dxIIuhszmcXI2udf3gDaaTqZ/g2UP/EYMx5v OQEA== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail (test mode) header.i=@armlinux.org.uk header.s=pandora-2019 header.b=svLxRgQO; 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=armlinux.org.uk Return-Path: Received: from lindbergh.monkeyblade.net (lindbergh.monkeyblade.net. [2620:137:e000::1:18]) by mx.google.com with ESMTPS id e1-20020a170902cf4100b0015830f35108si9626702plg.209.2022.05.28.13.58.39 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 28 May 2022 13:58:39 -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=fail (test mode) header.i=@armlinux.org.uk header.s=pandora-2019 header.b=svLxRgQO; 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=armlinux.org.uk Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 0BBF3D59; Sat, 28 May 2022 13:33:03 -0700 (PDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229868AbiE1Uc4 (ORCPT + 99 others); Sat, 28 May 2022 16:32:56 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:55324 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229871AbiE1Ucx (ORCPT ); Sat, 28 May 2022 16:32:53 -0400 Received: from pandora.armlinux.org.uk (pandora.armlinux.org.uk [IPv6:2001:4d48:ad52:32c8:5054:ff:fe00:142]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 73FE61276A for ; Sat, 28 May 2022 13:32:50 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=armlinux.org.uk; s=pandora-2019; h=Sender:In-Reply-To:Content-Type: MIME-Version:References:Message-ID:Subject:Cc:To:From:Date:Reply-To: Content-Transfer-Encoding:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Id: List-Help:List-Unsubscribe:List-Subscribe:List-Post:List-Owner:List-Archive; bh=sVwMCmxLWsbsfDuisFxMS45pxNxsdph6vk/Q4MCnxVs=; b=svLxRgQOL9LJ6eX13vc1DeR5AC 7C0eYQF9MVCNok8ATdfWn8yWwjY9ZDAWnPd3UhJLNgQG/kcMhy4N7hynylYbmgz+cMNuuSEBYozlV Gusv3XEcuLGJHOQvlAKD0cJ87v8vDUBCneaD1tmgDaFuA7lXYtbeyD9eRNgEOdL4Z2xiN0tJW+YRf QW3HUhR3meFNqGRY9fbbGwgvkkVutHvzAn0D7uFK1ss3hdwf/9xvSsJEOqeny70pbjREu3VbjWxN2 mVS8zjMtfnnKll17XAbcdpAo6crx/N8mMno0Mc6ShDm3dM/TaDVEr/pLYkUjQRG3kDx4jMwgXyfS3 +K+q/2Kg==; Received: from shell.armlinux.org.uk ([fd8f:7570:feb6:1:5054:ff:fe00:4ec]:60864) by pandora.armlinux.org.uk with esmtpsa (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1nv36j-0001eB-5u; Sat, 28 May 2022 21:32:22 +0100 Received: from linux by shell.armlinux.org.uk with local (Exim 4.94.2) (envelope-from ) id 1nv36Z-0008Aq-Ix; Sat, 28 May 2022 21:32:11 +0100 Date: Sat, 28 May 2022 21:32:11 +0100 From: "Russell King (Oracle)" To: Linus Torvalds Cc: Sudip Mukherjee , Arnd Bergmann , Viresh Kumar , Shiraz Hashim , Jani Nikula , Ville =?iso-8859-1?Q?Syrj=E4l=E4?= , Maarten Lankhorst , Maxime Ripard , Thomas Zimmermann , David Airlie , Daniel Vetter , dri-devel , Linux Kernel Mailing List , Linux ARM , SoC Team Subject: Re: mainline build failure due to f1e4c916f97f ("drm/edid: add EDID block count and size helpers") Message-ID: References: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: Sender: Russell King (Oracle) X-Spam-Status: No, score=-1.7 required=5.0 tests=BAYES_00,DKIM_INVALID, DKIM_SIGNED,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 Sat, May 28, 2022 at 11:08:48AM -0700, Linus Torvalds wrote: > 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". It's an age old thing, it's no compiler bug, and it's completely compliant with the C standards. Implementations are permitted by the C standard to pad structures and unions how they see fit - and some do if it makes sense for performance. The mistake is that people forget this detail, and they expect structs and unions to be laid out a certain way - because it doesn't matter to the same extent on x86. However, as older ARM CPUs could not do unaligned loads, ensuring that things were naturally aligned made complete sense, even if it meant that people who assume the world is x86 got tripped up - the only way around that would be to make every load very expensive. It's not "align to size of 2" in OABI, it tends to be align to a multiple of 4, because the underlying architecture is 32-bit. -- RMK's Patch system: https://www.armlinux.org.uk/developer/patches/ FTTP is here! 40Mbps down 10Mbps up. Decent connectivity at last!