Received: by 2002:a05:6602:18e:0:0:0:0 with SMTP id m14csp4694493ioo; Tue, 31 May 2022 09:32:32 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxqEKLXdNrgskGxrWnBH+c1HuomXJX+vb5YdolKelPwRWhkcmIbeLac5HGKW614HxhumUv1 X-Received: by 2002:a17:902:f708:b0:153:839f:bf2c with SMTP id h8-20020a170902f70800b00153839fbf2cmr62238341plo.113.1654014751762; Tue, 31 May 2022 09:32:31 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1654014751; cv=none; d=google.com; s=arc-20160816; b=txmHGUPFqbO62Ic2EvTIbJG6yH8Q4op3kazwCRUBdURmw4tuNGHzjuf3dpbnGLl61S iplJ3qe2Sc3iTwa5tA20xJcjyP1Io/J/6XgWv5oxtxQD8edFAmlikQHYCt8iNPB4hG+N +F64R4f0qUWWYBA5/yFAAJpflbANJFd+yu1miUCd4AxBG1wKyR/1S96YA08FeiISWJuU fLpAiGwyXauY3LxyN58JLk34x1+k7kUUj968LEhs822S8K+9Jpm5oU4ikY0+hzVQZDb3 LFubpxdhr3JN495baV2HElg5mnOnRxjPHAfbRQbX+9k8EtKGgCwiqf7F0+DU4H71OL7j wa7g== 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; bh=5yh3D3Fo93CMOz6qIjat73khzhNtIgPFhPxzL5zKLe4=; b=AgBTwjXv2YzioiXiB+Ae1Vb6Aa8GF85gYpUwKBKWCO6HqplJm8CM1uzdFsqhrRNn56 i1FUx/r59OvY+3HPMoX855/DFxrTERNCsNO86tAgzOUnbEh/82VDNYUkxS1EBf5CR7m9 X/H7JjtcAUYOuGjjZt5ehz/e0ghO3tfzglKK1okwN5Ar8aaCTFhNOnhSkEi/xsbgP0Uo UkKeCUVKa4INjjP77AYKMFF1JRZtCkk1/jIpfViQtetdMqn3nlDcZ+lPtHW7+YMchF2R +rUlEnpQmI91AeqEDcMy32EriIT8Y//GC58xP93+mAPps4ADTeqPENZg7TgQ4hxd9+O1 tLUA== 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 d189-20020a6368c6000000b003fc826f6ac6si1182829pgc.172.2022.05.31.09.31.56; Tue, 31 May 2022 09:32:31 -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 S236529AbiE3N66 (ORCPT + 99 others); Mon, 30 May 2022 09:58:58 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:34630 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S239278AbiE3NvZ (ORCPT ); Mon, 30 May 2022 09:51:25 -0400 Received: from mout.kundenserver.de (mout.kundenserver.de [212.227.17.13]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 5416184A27 for ; Mon, 30 May 2022 06:35:48 -0700 (PDT) Received: from mail-yw1-f178.google.com ([209.85.128.178]) by mrelayeu.kundenserver.de (mreue107 [213.165.67.113]) with ESMTPSA (Nemesis) id 1MfZDK-1nK8wk15ZI-00g16a for ; Mon, 30 May 2022 15:35:46 +0200 Received: by mail-yw1-f178.google.com with SMTP id 00721157ae682-2fee010f509so109981217b3.11 for ; Mon, 30 May 2022 06:35:46 -0700 (PDT) X-Gm-Message-State: AOAM530hDCIMXA2LTXs8jCJlLJAMpT/BAumIE6ARmkF3mgOZ1NZHH2lY 3CY5HmMC1Q92ZDFrF15EL0XPtM10UmvUh2ZDNxc= X-Received: by 2002:a81:ad7:0:b0:2e6:84de:3223 with SMTP id 206-20020a810ad7000000b002e684de3223mr59829800ywk.209.1653917745100; Mon, 30 May 2022 06:35:45 -0700 (PDT) MIME-Version: 1.0 References: <87a6aztli2.fsf@intel.com> <877d63tleq.fsf@intel.com> <87czfvrwsv.fsf@intel.com> In-Reply-To: <87czfvrwsv.fsf@intel.com> From: Arnd Bergmann Date: Mon, 30 May 2022 15:35:28 +0200 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: Jani Nikula Cc: Arnd Bergmann , Linus Torvalds , 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-Provags-ID: V03:K1:rzsa03eeqIQ8apQAiT85cbcZDekwnj75JYrCwH/bTgWY4EtRZZd QnZet8BsjNcEXzS6LvwNytFO9wCsF3+QkNHS8TG0KJOsdGheUWFgLXNdrS8n3P0ph0tSF/d JIt7vvZITIH/tZ5+YKtH4z6NIlEzzhdnlS13C/+TfTmLS07qzyD1I/VoBiqN5cHOsm63myU Jbr23fWS0yWignE+XUP5Q== X-UI-Out-Filterresults: notjunk:1;V03:K0:h6cTD7p23yU=:DEyHDjNBFwqbW/1LsGKpfs EFFD9OOc/9tUAwS8yS/2Ome7csgZWNM4MA1aeOJbeplnDOvlcQv13vyviYdqJdeZ5qzhdpFMJ XOQ424P+MrItrmZRNCjeeuShG3akBpuRE8ubROsrfdSxdhSWsOqjVmMB2GMicp+azm8WBxoMK keNhpRkL9X+q2W5j5Ax0h1ykhaWU8oBSSuUCWOn6mB1l+SkQBKqvmEwMnwJJSS2s9AWE6T6WY h7krffX7M1/PIFnrmqWL8ynFHzWVk8dPLKnCd1qKaBsCk1JmvhmEuMN9vC+D1dulgDmSagQw0 fprzmoq0hdpnWB0g3aXL4Ua6sRE2Gp0kBAeEaXAoIfmkMw01BsEYzQN1T3YXWsVyWA2H04a7t SG1a12u3inP6v9Iu7l7AMyPmdpbdVUD4+XgTIS6fiJHJopPZNyYrMrQdy2OMmUWDd/oPuxUFv J2r+JhfdOIInJj4n0s9wRGeAVtKMd0IMA6Bt/iQTp+wVfvFAaVhTxePFvkGtlJ4knR03OFY4X thUDH4tOX4udPpmW6QaojbncmaDlWyqBoLNLObLoNmTWD6PzHaXCNxVySfwpRicB9k9FD+O1m s3C8gA9BjZG8bF8DbH00xHjAQ1skef0Xq48HHAHsuBMQGAuHXEpZhidX+iI3Rk+zhUI13Awoh oUCGX4egpkRgt0pKrrlST9jhCKOpULbZ92T3k8zQ2E/HwR5c7frcvIZLVKu42vRN40Xk0jh5e acSwI3BgU6P3noLDOLi2VFbTPE5tgjlRXI2robRAvCDEhG8KOdVrmtZuCEOGyfhwQpqhoDQth MqAIZU3GtbeHayav0opkJiVcIgzjCeNZicWo5SZ44v7+/1qvtqqBOdqSHMRd6h4JqGySvmajh bAbONdkfU5wFds0ZNdOQ== X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,RCVD_IN_MSPIKE_H2, 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 Mon, May 30, 2022 at 3:10 PM Jani Nikula wrote: > > > > I think in general, most __packed annotations we have in the kernel are > > completely pointless because they do not change the structure layout on > > any architecture but instead just make member access slower on > > Please explain. > > They are used quite a bit for parsing blob data, or > serialization/deserialization, like in the EDID case at hand. Try > removing __attribute__((packed)) from include/drm/drm_edid.h and see the > sizeof(struct edid) on any architecture. The annotations for edid are completely correct and necessary. However other driver authors just slap __packed annotations on any structure even if the layout is not fixed at all like: struct my_driver_priv { struct device dev; u8 causes_misalignment; spinlock_t lock; atomic_t counter; } __packed; /* this annotation is harmful because it breaks the atomics */ or if the annotation does not change the layout like struct my_dma_descriptor { __le64 address; __le64 length; } __packed; /* does not change layout but makes access slow on some architectures */ Arnd