Received: by 2002:a05:6602:18e:0:0:0:0 with SMTP id m14csp5772912ioo; Wed, 1 Jun 2022 12:15:41 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyYwNCeBNipOkpA4wscJGqd+2NMRH8ayOVxc+wwVc7Lzst+++t7+Du7uwzxx0yfP1utB92t X-Received: by 2002:a63:5d1c:0:b0:39c:c5d7:ebbb with SMTP id r28-20020a635d1c000000b0039cc5d7ebbbmr795358pgb.54.1654110941152; Wed, 01 Jun 2022 12:15:41 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1654110941; cv=none; d=google.com; s=arc-20160816; b=wBIoaB4lhe4TL1scIhL7y15rWrzdkGFE1ZLlQrPO/t5I99ppaD++lYufh6yO/fcChw UMy58aj1Cj4BiPSzWruOuSJ5q9GpQyIG6c8JxO01oNyB4FhKcfYoUcyguRaThKNGy1aJ NibALGUOMVlPW+J0LeA3042VMm0F/GzC0TCt9vAWONJiDKnAbzaEd0p7lj4nXzkXPCUm jPeYguFU+9lUKvbWN9oG7vfkP+yw8ixQwyQA8hnoun9OeKSwhjcTpojvqeQT3VIBLeZy 2w+KgqXPjMVYfwrxfawWt3GDNVnTZlW0jbip4bvHrG5CVzD4T1rkaIeEXt2nWhaca4EH ma+Q== 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=h2w/DuMKGkCId0IhL+87Rlw/4m47o1ovVQT6DsHSgIE=; b=WZJd1/Ur93ccRyrYUd+yCa39g9eHdhdbzKfQhd79qAO1hWZJzo49S399S+Pyyq6Scm X2rE2YtZ2M5dMj9UXJB55Qggyc4zFIkMIO86PybgKxcSXsWRzECFNzmilcYyIlNhDVuD 7lebQ6IUhE8M2Xs1ji3FDqC0dJu/euOfOpQLtZtjjEhKVRajjP87FLUxrEV+0AIF4bh0 dER8kxiheWmzy1aBZa2wXeSeRu/vyvHayWlAL3nNwlKU4U3tRXl0lrpG4e6GHTF0wLhS R3CUHt62T6vuGo+BOeePHzceF2i72JUgFM2YCxkVQ0JTnKySA3RawgFHK1ajOf6qurIV lYPw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linux-foundation.org header.s=google header.b=CjjCxMkG; 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 p21-20020a631e55000000b003c1977e2008si3176235pgm.821.2022.06.01.12.15.40 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 01 Jun 2022 12:15:41 -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=CjjCxMkG; 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 1700B149DA5; Wed, 1 Jun 2022 11:53:26 -0700 (PDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1346202AbiEaQlq (ORCPT + 99 others); Tue, 31 May 2022 12:41:46 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:50990 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S241712AbiEaQlp (ORCPT ); Tue, 31 May 2022 12:41:45 -0400 Received: from mail-ed1-x535.google.com (mail-ed1-x535.google.com [IPv6:2a00:1450:4864:20::535]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 4B24CDF91 for ; Tue, 31 May 2022 09:41:44 -0700 (PDT) Received: by mail-ed1-x535.google.com with SMTP id c2so8790965edf.5 for ; Tue, 31 May 2022 09:41:44 -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=h2w/DuMKGkCId0IhL+87Rlw/4m47o1ovVQT6DsHSgIE=; b=CjjCxMkG9BjYxKYLC9ComQadGerm0pG7maothy8LMYDfIBQ12DEXm8VahwPd0mZNx8 v3YImB6YIt4mYYLyzpggxjSKvsKNJF/G32PfqlVOhn2iPGRIukb0lSsOPrkKTbno6a2F NHCRaxjzPZuwuhN/j0E7W+vBxTRDLSGYdAdCk= 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=h2w/DuMKGkCId0IhL+87Rlw/4m47o1ovVQT6DsHSgIE=; b=NrVeRdWp6sC8W4kVe7Jd2OA9lgcqxlb4r4DwdDAoMESwg1vqd8MbbGlHCa6wDsxCbo bJ1ZovHWw23RXlr4edr+OOV/kn161beI4Wj3STs25roKSD4/iP/wvAhnBmzLbJyoT5V2 UzvTjUYQKRDY0VwGL6UHvcUajwtI1TN2SLZITDLzwHXEeXlpO6lZWDRUHN3Hb1wV9qNv 8GDIVVosc83W0e3UO6zhAhTMOH9b4eDGXSlz7syXxfI1UVXcLc9ZuYVBthl8T2I735YY socwX9aFe54a3gMlyHxp4ecENg7ZaG3YyB4VgHgKGHLuADSd9D+rSp+NwkeUAmbOyBOR iZkA== X-Gm-Message-State: AOAM531dDrjoz6paqtqukfj/C6YrIw4lBu+YEToyllpyQ2von4GLs5Eu wSR7gstPseCW7QGI171nY448+MoOyZPkDAkE X-Received: by 2002:a05:6402:d05:b0:425:b5c8:faeb with SMTP id eb5-20020a0564020d0500b00425b5c8faebmr64509909edb.273.1654015302534; Tue, 31 May 2022 09:41:42 -0700 (PDT) Received: from mail-wm1-f50.google.com (mail-wm1-f50.google.com. [209.85.128.50]) by smtp.gmail.com with ESMTPSA id v5-20020a056402348500b0042ddd08d5f8sm2382392edc.2.2022.05.31.09.41.40 for (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Tue, 31 May 2022 09:41:41 -0700 (PDT) Received: by mail-wm1-f50.google.com with SMTP id p5-20020a1c2905000000b003970dd5404dso1540790wmp.0 for ; Tue, 31 May 2022 09:41:40 -0700 (PDT) X-Received: by 2002:a1c:7207:0:b0:397:66ee:9d71 with SMTP id n7-20020a1c7207000000b0039766ee9d71mr24513934wmc.8.1654015300146; Tue, 31 May 2022 09:41:40 -0700 (PDT) MIME-Version: 1.0 References: <91E67F46-A3C7-4159-9E0C-C6C6306F3669@inria.fr> In-Reply-To: From: Linus Torvalds Date: Tue, 31 May 2022 09:41:24 -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: Arnd Bergmann Cc: Julia Lawall , Jani Nikula , Sudip Mukherjee , Russell King , Viresh Kumar , Shiraz Hashim , =?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: 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 Tue, May 31, 2022 at 1:04 AM Arnd Bergmann wrote: > > As an experiment: what kind of results would we get when looking > for packed structures and unions that contain any of these: Yeah, any atomics or locks should always be aligned, and won't even work (or might be *very* slow) on multiple architectures. Even x86 - which does very well on unaligned data - reacts badly to sufficiently unaligned atomics (ie cacheline crossing). I don't think we have that. Not only because it would already cause breakage, but simply because the kinds of structures that people pack aren't generally the kind that contain these kinds of things. That said, you might have a struct that is packed, but that intentionally aligns parts of itself, so it *could* be valid. But it would probably not be a bad idea to check that packed structures/unions don't have atomic types or locks in them. I _think_ we're all good, but who knows.. Linus