Received: by 2002:a05:6602:18e:0:0:0:0 with SMTP id m14csp5999608ioo; Wed, 1 Jun 2022 18:12:55 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxBKxQXRRXrm2s8P/xuL+9Xd357rIKipM05mOXIM79Kr6zuq3irjwuZDM2i49Z5uIbh8H8o X-Received: by 2002:a17:90b:4a12:b0:1e3:15ef:81e1 with SMTP id kk18-20020a17090b4a1200b001e315ef81e1mr16977716pjb.246.1654132375060; Wed, 01 Jun 2022 18:12:55 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1654132375; cv=none; d=google.com; s=arc-20160816; b=CxOl9P4ChgKu+iybVSMDQbFUeKrfwJcCLELRzzR+CnAmLX/RiXyWHgcoSnHMJc6GMO tLKhelTOscelYYrB/7HIXFcBEKlc5IKFrGDG7UOA2IY6dGh/VcwxcZxC5hEQ1vAKRicU dE9lDcbUZZwEaqPqT+pDPZRBsMZ3saXN+EPniDN0gan8QdhFErY4t7/6vn6uo71U9Ei+ 8d/Vyno73xD0Fd3OJRtcPRkOrDX6n2lCov1QRDycylJIVkl7Gf+7zfomVn19H4j4eX03 h8nQn1lPksJPOhxzUZ6KCpq2KR6+hXWx3ilRgXcs4bra/yxpCJoAxMMLX36WaP1KyjDR 8g8Q== 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=AMLk7uMNCtOe4gy9/LZgkLZRBX0ALCzfWfzDBXHnFo8=; b=Fbej175RsM5mhu/yLQknGJbysBgz6EB3QfltsL0Dq8QA9jofHoembR0SqTF2swXJ6x 2EZ88atOmx5e7n3RGfLsGXt12NV8l876wEN2fPWd0yXMnMXuQRLRfQxdW+wy1tdOdW0d KMYOIJOOusTJYDr2EAGNBJL5JDosd/4vFyt+ox/5sl5KRyTCdY7Ahz0lrnz0qzDE8Dge 2+O6krTPghoS8HfDoTdMDEjAJjxPJoPQOHkcIZFF9Lge0SbTZ2IoNUy3qJjXOihX6G/7 UJ1bQjrFJxQ5ptMq/jvz9WS2TJJ2wcHe7eDRRyDPzN0xWgQJDbUGVRLvud90af9Tq5Ra zBaA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linux-foundation.org header.s=google header.b=OYbmFRcq; 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 19-20020a631653000000b003daec53bf4bsi3969294pgw.532.2022.06.01.18.12.54 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 01 Jun 2022 18:12:55 -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=OYbmFRcq; 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 0A23027D0C6; Wed, 1 Jun 2022 18:08:50 -0700 (PDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232932AbiFBBIo (ORCPT + 99 others); Wed, 1 Jun 2022 21:08:44 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:34798 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232838AbiFBBIn (ORCPT ); Wed, 1 Jun 2022 21:08:43 -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 EE819278504 for ; Wed, 1 Jun 2022 18:08:41 -0700 (PDT) Received: by mail-ej1-x635.google.com with SMTP id m20so7009496ejj.10 for ; Wed, 01 Jun 2022 18:08:41 -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=AMLk7uMNCtOe4gy9/LZgkLZRBX0ALCzfWfzDBXHnFo8=; b=OYbmFRcqjOukBt1QgTghY6i5XSE1P4Lt88ABmn7yr1figRBOYiE95+mswItMYHSdNG lviOuM27J5QIIeBwiLSJpAbPnwuY91jc54iyDcuCVAnICvUgcOifKGuJEsuhq8aGrj2A h1gTJ/7WWYaX/+zmQRNAu0O5nZCrZo4IJc/ww= 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=AMLk7uMNCtOe4gy9/LZgkLZRBX0ALCzfWfzDBXHnFo8=; b=HPvGSLr3lZVofp8Ls5wrAWkOowZEikjOTy1f08rv4rUQJz0GJOiw9vQHqmjDfonhY0 q1UQOzErMxoq/Mgiw51lg58JwR71ixuAb7uvXwdHvAnE0B7rw3bEGdf5DVLwIP7lzTaM TVrOs5FiA3pPSns1fFswe/YMiD9EweSTJkHmmvDre9ijToaXJpocScnmk2iBM+WwCJfy pRvbQHymq7iJYnkx21cIaGJC2R0m80SmX2Gf3wnWhwwAES85mG2+MpXMhqaOH4Iww5Hb vXAlnOArdo4Yz4QnL+HKUvQJjiAZUMSjKcqsE1MA1xK4DM0HJR8yMFOibUpahrBTVNBy OWMQ== X-Gm-Message-State: AOAM53190MxwvaxcWvBQ86ewuRGufm2fR0WOlCj44fkysR+s8bIQ75uR yeNsP5jgRIg3WY8VkoHSgqyFk3/0hfJX2g3k X-Received: by 2002:a17:907:720f:b0:6f8:5c31:4027 with SMTP id dr15-20020a170907720f00b006f85c314027mr2050241ejc.284.1654132120312; Wed, 01 Jun 2022 18:08:40 -0700 (PDT) Received: from mail-wm1-f51.google.com (mail-wm1-f51.google.com. [209.85.128.51]) by smtp.gmail.com with ESMTPSA id n9-20020a170906700900b006fe8ac6bc69sm1234909ejj.140.2022.06.01.18.08.39 for (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Wed, 01 Jun 2022 18:08:40 -0700 (PDT) Received: by mail-wm1-f51.google.com with SMTP id r123-20020a1c2b81000000b0039c1439c33cso1966221wmr.5 for ; Wed, 01 Jun 2022 18:08:39 -0700 (PDT) X-Received: by 2002:a7b:cb91:0:b0:397:3225:244 with SMTP id m17-20020a7bcb91000000b0039732250244mr30980346wmi.68.1654132109585; Wed, 01 Jun 2022 18:08:29 -0700 (PDT) MIME-Version: 1.0 References: <91E67F46-A3C7-4159-9E0C-C6C6306F3669@inria.fr> In-Reply-To: From: Linus Torvalds Date: Wed, 1 Jun 2022 18:08:13 -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: Keisuke Nishimura , Kentaro Takeda , Tetsuo Handa , Ayush Sawal , Vinay Kumar Yadav , Rohit Maheshwari Cc: Julia Lawall , Arnd Bergmann , 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 Wed, Jun 1, 2022 at 3:28 PM Keisuke Nishimura wrote: > > > I found 13 definitions of packed structure that contains: > > - spinlock_t > > - atomic_t > > - dma_addr_t > > - phys_addr_t > > - size_t > > - struct mutex > > - struct device > > - raw_spinlock_t Ok, so I don't think dma_addr_t/phys_addr_t/size_t are problematic, they are just regular integers. And 'struct device' is problematic only as it then contains any of the atomic types (which it does) > security/tomoyo/common.h: atomic_t in tomoyo_shared_acl_head > drivers/net/ethernet/chelsio/inline_crypto/chtls/chtls.h: spinlock_t in key_map > arch/s390/include/asm/kvm_host.h: atomic_t in kvm_s390_sie_block So these do look problematic. I'm not actually clear on why tomoyo_shared_acl_head would be packed. That makes no sense to me. Same goes for key_map, it's not clear what the reason for that __packed is, and it's clearly bogus. It might work, almost by mistake, but it's wrong to try to pack that spinlock_t. The s390 kvm use actually looks fine: the structure is packed, but it's also aligned, and the spin-lock is at the beginning, so the "packing" part is about the other members, not the first one. The two that look wrong look like they will probably work anyway (they'll presumably be effectively word-aligned, and that's sufficient for spinlocks in practice). But let's cc the tomoyo and chelsio people. Linus