Received: by 2002:a5d:9c59:0:0:0:0:0 with SMTP id 25csp318020iof; Mon, 6 Jun 2022 04:10:25 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwfD2h6aO4n1NzEunffRxq1ML8wqhLQCCHGBrz7SSQjIQxh64jNl4sZbR6dsDYKs5XAjZxw X-Received: by 2002:a17:902:6bc1:b0:15d:1e15:1a75 with SMTP id m1-20020a1709026bc100b0015d1e151a75mr24576081plt.114.1654513825111; Mon, 06 Jun 2022 04:10:25 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1654513825; cv=none; d=google.com; s=arc-20160816; b=yCDZ7giX4LdY9uCspUwtRDeL3Sli6H7PhsxsYQ4CqkuZ9JFbRt8LH40Qr2wot5oF/f QLQt5598v+yYn5LkRt08ztLnaPJlsqe9jTrxwtJvwdM3ho0fD8DF8vT4I5urQtYYq3M0 AyF4kHsn9B69NvOjP6fvG7+iyfb6faOITjHtJXYu+AHy9UqTE/PPtQysuUWhM4CrIDsd oF9vwmfmbF+9OLdwYm6z4utSVUqeqAx7nR+2UWtlv2kM3yCo6aBMp9zxRi9e8O40/bZO oqI4cux47EI6lRSpaenIWs4cttS1F07aAvC1ogcsB28GP8S0vUNLyBII4jxY/mGaebsI BUqQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to:from :references:cc:to:content-language:subject:user-agent:mime-version :date:message-id:dkim-signature; bh=Ze8TQqRMhX7HpjoC+K0KtEGfpNVrb+81cSLdx8Azg70=; b=hUeTf/e3/KYk6t6DknT6KXD0wajeCaTt1RD7V6Xi6fV60hKkdN/PYlGCR6TSyE3MnR xZPctXDTgr8J9a9cQLThcm2r9rfCXQshNzIMqbALTXFgAwmmWdWeyFFX+IXYwPnBKWrH LyGMY03DuHvD7pyrJOTmZ9MDxzC7tVZ3lIyRlHTuoKzQbgtRf23ARKrajxxPVU6cwhgs WspAraHD22AtR4//mn3bnWYOgoAWbyirD86XkNQ5w1mEu3QFc9/cZ7J3Xa8eN9PVC+Q2 UDpXXVDsFkBVpiG+z0D/2cqmq5O9Aj1lxVVf6B4Z9dL9Njv8RZtdSE6QKKRZRzN6ecS5 P9UQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@inria.fr header.s=dc header.b=lak033I3; 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=pass (p=NONE sp=NONE dis=NONE) header.from=inria.fr Return-Path: Received: from lindbergh.monkeyblade.net (lindbergh.monkeyblade.net. [2620:137:e000::1:18]) by mx.google.com with ESMTPS id d3-20020a63a703000000b003ab2440ce56si19446599pgf.207.2022.06.06.04.10.24 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 06 Jun 2022 04:10:25 -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=@inria.fr header.s=dc header.b=lak033I3; 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=pass (p=NONE sp=NONE dis=NONE) header.from=inria.fr Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id E83AD25E0; Mon, 6 Jun 2022 03:52:12 -0700 (PDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234567AbiFFKwF (ORCPT + 99 others); Mon, 6 Jun 2022 06:52:05 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:40370 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234566AbiFFKwA (ORCPT ); Mon, 6 Jun 2022 06:52:00 -0400 Received: from mail2-relais-roc.national.inria.fr (mail2-relais-roc.national.inria.fr [192.134.164.83]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 153F114FC83 for ; Mon, 6 Jun 2022 03:51:57 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=inria.fr; s=dc; h=message-id:date:mime-version:subject:to:cc:references: from:in-reply-to:content-transfer-encoding; bh=Ze8TQqRMhX7HpjoC+K0KtEGfpNVrb+81cSLdx8Azg70=; b=lak033I39OfXfSbKzJeUe8BC8roSULxmHxkZK/86LIzVrv8YZl24KwE2 CqOqDz+qJaFRZchikutxcTI/ls7zHelAHy5VbFp3UMxMzR8FFnTB6ReUz O99ZKjfI+buUt3CFhkEPzwXXpdDGv3NWuu8YYX7TbkyI8HrijqiKvP97B Y=; Authentication-Results: mail2-relais-roc.national.inria.fr; dkim=none (message not signed) header.i=none; spf=SoftFail smtp.mailfrom=keisuke.nishimura@inria.fr; dmarc=fail (p=none dis=none) d=inria.fr X-IronPort-AV: E=Sophos;i="5.91,280,1647298800"; d="scan'208";a="39634374" Received: from eth-east-parth2-46-193-69-7.wb.wifirst.net (HELO [10.188.210.33]) ([46.193.69.7]) by mail2-relais-roc.national.inria.fr with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 06 Jun 2022 12:51:55 +0200 Message-ID: <4ad227dc-3972-82f5-6c71-271becc37e66@inria.fr> Date: Mon, 6 Jun 2022 19:51:55 +0900 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:91.0) Gecko/20100101 Thunderbird/91.9.0 Subject: Re: mainline build failure due to f1e4c916f97f ("drm/edid: add EDID block count and size helpers") Content-Language: en-US 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 , Linus Torvalds References: <91E67F46-A3C7-4159-9E0C-C6C6306F3669@inria.fr> From: Keisuke Nishimura In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-4.9 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,NICE_REPLY_A,RDNS_NONE,SPF_HELO_NONE, T_SCC_BODY_TEXT_LINE autolearn=unavailable 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 2022/06/02 16:38, Arnd Bergmann wrote: > I think that SmPL script worked great, almost every instance is > something that ought to be changed, as long as it stops reporting > those structures that are also __aligned(). I would extend it to > also report structures with 'bool', 'enum', or any pointer, but that > could give more false-positives. Maybe have a separate script > for those instances embedding atomics or spinlocks (very broken) > vs the other members (causes more harm than good or might > need alignment). I extended my script to detect __packed struct or union without __aligned. It is split in two scripts. The first one is to search for problematic cases where __packed structs/unions have atomic types or spinlock types. In this version, types whose names contain "atomic" or "spinlock" are targeted. == Scripts == @r@ type T; identifier i; type b =~ ".*(atomic|spinlock).*"; position p; attribute name __packed, __aligned; attribute at; @@ T@p { ... b i; ... } at; @script:python@ p <