Received: by 2002:a05:6602:18e:0:0:0:0 with SMTP id m14csp6675210ioo; Thu, 2 Jun 2022 11:19:34 -0700 (PDT) X-Google-Smtp-Source: ABdhPJybocEo7eTqEtr5TaXL7yQHFWbufF+yTDXV2Vhep8KirTnUiT69ajyY2FdgIloEiPFaxzIo X-Received: by 2002:a17:907:3a11:b0:6fe:c56e:6c66 with SMTP id fb17-20020a1709073a1100b006fec56e6c66mr5165474ejc.175.1654193973992; Thu, 02 Jun 2022 11:19:33 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1654193973; cv=none; d=google.com; s=arc-20160816; b=FSJlBpM4Fdx9gBrW6quBZTdau8mEapsCC13C/dSSJ5Ns6RlOjE6YWzT2cxFuVbYHsZ qP8Yti86wCJnStC22u2pJFWFGNJJHVMvgSmtXT66Cm2lJwef/Y0P8r8IzjtY9ZkpzoC9 8S6RH1Ghl1An6XKTBU3nT7qXI4CEoIgtzf0iPYxATECXV5pabzX8DHE5TeXdz++1QLe4 JJeHyfvnomaeDp7aTHG54yY+2VswEiZ7MxYqCYucbPt4fneCSBKsbixIm8sRZSJfg8PQ Zd4mWTxIuSun2/lQc/JvWs1s2QAJropthH0mgyVdkhfGye7MWjW8oiDmbyYYXMdjg/ou YLcA== 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; bh=v3iumTGybU/eO2hVRXQ2h40AiW/U+nKCCPVpy/oaFCg=; b=FdyN7JkZHvsTBSPsJ1HPUksFMJJH8tiPCC5trgCdqVYSNOe6jadfXHTAveoavWxYuf o+D8nkJkVJzqEDkrNxuGSFb7R+ItjYFpF3iwNWKbCYbygXuuLy3lkfB3vLmz4gFO3SWZ gAlW6JKFi/k96S8vFWirvNSTpa3oHnyGE4aZ/3jXBC9Xq09zbXAf7jEYDoX31mTM57nE Xk1x5SBQlyS1eySb+Iltj/DsoZ5/oeXAe4AmkusNiRrx6xAXsxENMF+O+yhOdC3i8OAh CyLSvNvR5Jc694kaEmkJ7g6F6KWvnT0ZytGLw/FMxk7KtshI+3Ad/c7tcJNs1EHQ8WJx 9+TA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id hp35-20020a1709073e2300b006fefeaf708bsi2482989ejc.593.2022.06.02.11.19.05; Thu, 02 Jun 2022 11:19:33 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234106AbiFBLVW (ORCPT + 99 others); Thu, 2 Jun 2022 07:21:22 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:42306 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231266AbiFBLVU (ORCPT ); Thu, 2 Jun 2022 07:21:20 -0400 Received: from www262.sakura.ne.jp (www262.sakura.ne.jp [202.181.97.72]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id E3A6B2A80FD for ; Thu, 2 Jun 2022 04:21:17 -0700 (PDT) Received: from fsav112.sakura.ne.jp (fsav112.sakura.ne.jp [27.133.134.239]) by www262.sakura.ne.jp (8.15.2/8.15.2) with ESMTP id 252BLGML002960; Thu, 2 Jun 2022 20:21:16 +0900 (JST) (envelope-from penguin-kernel@I-love.SAKURA.ne.jp) Received: from www262.sakura.ne.jp (202.181.97.72) by fsav112.sakura.ne.jp (F-Secure/fsigk_smtp/550/fsav112.sakura.ne.jp); Thu, 02 Jun 2022 20:21:16 +0900 (JST) X-Virus-Status: clean(F-Secure/fsigk_smtp/550/fsav112.sakura.ne.jp) Received: from [192.168.1.9] (M106072142033.v4.enabler.ne.jp [106.72.142.33]) (authenticated bits=0) by www262.sakura.ne.jp (8.15.2/8.15.2) with ESMTPSA id 252BLFww002957 (version=TLSv1.2 cipher=AES256-GCM-SHA384 bits=256 verify=NO); Thu, 2 Jun 2022 20:21:15 +0900 (JST) (envelope-from penguin-kernel@I-love.SAKURA.ne.jp) Message-ID: <74bed19a-713f-1a25-8142-cf32984beada@I-love.SAKURA.ne.jp> Date: Thu, 2 Jun 2022 20:21:14 +0900 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (Windows NT 6.3; Win64; x64; rv:91.0) Gecko/20100101 Thunderbird/91.9.1 Subject: Re: mainline build failure due to f1e4c916f97f ("drm/edid: add EDID block count and size helpers") Content-Language: en-US To: Arnd Bergmann , Linus Torvalds Cc: Keisuke Nishimura , Kentaro Takeda , Ayush Sawal , Vinay Kumar Yadav , Rohit Maheshwari , 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 References: <91E67F46-A3C7-4159-9E0C-C6C6306F3669@inria.fr> From: Tetsuo Handa In-Reply-To: Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-4.5 required=5.0 tests=BAYES_00,NICE_REPLY_A, SPF_HELO_NONE,SPF_NONE,T_SCC_BODY_TEXT_LINE autolearn=ham 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: >> But let's cc the tomoyo and chelsio people. > > I think both of them work because the structures are always > embedded inside of larger structures that have at least word > alignment. This is the thing I was looking for, and the > __packed attribute was added in error, most likely copied > from somewhere else. The __packed in "struct tomoyo_shared_acl_head" is to embed next naturally-aligned member of a larger struct into the bytes that would have been wasted if __packed is not specified. For example, struct tomoyo_shared_acl_head { struct list_head list; atomic_t users; } __packed; struct tomoyo_condition { struct tomoyo_shared_acl_head head; u32 size; /* Memory size allocated for this entry. */ (...snipped...) }; saves 4 bytes on 64 bits build. If the next naturally-aligned member of a larger struct is larger than the bytes that was saved by __packed, the saved bytes will be unused.