Received: by 2002:a05:7412:bb8d:b0:d7:7d3a:4fe2 with SMTP id js13csp1629336rdb; Wed, 16 Aug 2023 18:34:02 -0700 (PDT) X-Google-Smtp-Source: AGHT+IHOFcP5UI372Ka9WK3kD5ZMGq/0EcSOh7LP4rFDbxW2Ync/n+0jSD+4Q4FllBdEXCSTvWtM X-Received: by 2002:aa7:d8d8:0:b0:525:6e04:bcb3 with SMTP id k24-20020aa7d8d8000000b005256e04bcb3mr3317353eds.40.1692236042697; Wed, 16 Aug 2023 18:34:02 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1692236042; cv=none; d=google.com; s=arc-20160816; b=0Wo0c6nff8VsQFBdFdTV5UZhipDjmNNGc8Uqg3en4GpSBI9Xg2mpmmW/5gH6YRUt6w DF7hTKCyEwWj8SzL4colo6VVfEOA54I/kWsxwzbOW17U5jvH6HfDWcZ0hwrEfxcPfu1W 8xG5y4zeePF2+ZoIakxw9G21WP9XrKC5OmdO0h35CsKbpsEoLXsAs1SL+IUfhJe9MqCy rbELO5I4NwIeMi8j76z/oAOnbYcDuNdMx6+K6QKmptLjrslTZ8dcR2MonT6jTehxWGKB KRplEqy2dhzufbBnR4asV4cc4xYxj3Ty2atCRDG+fG+lY9bXhy7lZZ67jYTMocW/gTqh N/kg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:subject:cc:to:from:date:references:in-reply-to :message-id:mime-version:user-agent:feedback-id:dkim-signature :dkim-signature; bh=PKwgtqkR2y/xbPvM4PfA1+c92fw2z23WvdUcv3+4Y6A=; fh=O/VR8CKoBUtS2ZSW6UWaUP/y9MnvpsNKSKtn4UI6Bmo=; b=g77cO1luJZicBWPNSfJ5nsp2Uhps2cNK/c1bu/sD/ijBKjTio7MB50pItt2QhR/0ff WG5LxRpgvpSlX5ncacoHuLqbPmJ5iOS8XZdrBztCMC4hzwaxgI2IMMm+xPu1+xcQS59h cr/VMxDgrhZl7WFUrxYimIbqDxBY1BJrCUshX58ueuZqWd5e7tl23ZlhrT850uHvY3hQ 6ciSsIA1QVeR2yfWdqKPzbz7p06+D7s7lgxFXbKCe6dUeN2nOm45PMJPUsLQptW1K24i 4z2UG59wvUCYrmkIlDaGUc1NQbxZDwsiGXSGnSpHqshDvMCtHMIO+uhA4tMHjKcKUMS7 M0pQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=neutral (expired) header.i=@arndb.de header.s=fm3 header.b=Vksnh44S; dkim=neutral (expired) header.i=@messagingengine.com header.s=fm1 header.b=g51ohYsB; spf=pass (google.com: domain of linux-wireless-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-wireless-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 m26-20020aa7d35a000000b0052563bff339si6026906edr.286.2023.08.16.18.33.45; Wed, 16 Aug 2023 18:34:02 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-wireless-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; dkim=neutral (expired) header.i=@arndb.de header.s=fm3 header.b=Vksnh44S; dkim=neutral (expired) header.i=@messagingengine.com header.s=fm1 header.b=g51ohYsB; spf=pass (google.com: domain of linux-wireless-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-wireless-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232413AbjHNVDR (ORCPT + 54 others); Mon, 14 Aug 2023 17:03:17 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:56454 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232704AbjHNVCx (ORCPT ); Mon, 14 Aug 2023 17:02:53 -0400 Received: from wout4-smtp.messagingengine.com (wout4-smtp.messagingengine.com [64.147.123.20]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 12D8EC3; Mon, 14 Aug 2023 14:02:47 -0700 (PDT) Received: from compute6.internal (compute6.nyi.internal [10.202.2.47]) by mailout.west.internal (Postfix) with ESMTP id 757A73200920; Mon, 14 Aug 2023 17:02:46 -0400 (EDT) Received: from imap51 ([10.202.2.101]) by compute6.internal (MEProxy); Mon, 14 Aug 2023 17:02:47 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=arndb.de; h=cc :cc:content-type:content-type:date:date:from:from:in-reply-to :in-reply-to:message-id:mime-version:references:reply-to:sender :subject:subject:to:to; s=fm3; t=1692046965; x=1692133365; bh=PK wgtqkR2y/xbPvM4PfA1+c92fw2z23WvdUcv3+4Y6A=; b=Vksnh44SXZxKX91cKi ZZB0JmenLJqM0l0EmOQ9ye965AMryOOEiBSIZC7Ewlqyq+SKXvZgTIjIlp/T5sGc JVfoTKnuWboSv974qal5XQ5p9F+ThdiWJPZutwkp4qvedYIrejHmMQjzCQUFZkxt 46n+SEo88aKmd3J3AlT8xv+7/D/vG++TVh6iF+A/n5K1yKTXnrYw+andkOeUI35Z qhOv7wCUUCUIQ42BetaHUhZf1EMokaTD4z+X1ltHh18TMr8U5hSmGk1T5kFl5paX GHfvD+vfVkZs8G1tNpS3QoC6CFzzYjQP+W0fWfGKCoNH4B9/im9f4JQrwK8ONGnr gVgw== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:cc:content-type:content-type:date:date :feedback-id:feedback-id:from:from:in-reply-to:in-reply-to :message-id:mime-version:references:reply-to:sender:subject :subject:to:to:x-me-proxy:x-me-proxy:x-me-sender:x-me-sender :x-sasl-enc; s=fm1; t=1692046965; x=1692133365; bh=PKwgtqkR2y/xb PvM4PfA1+c92fw2z23WvdUcv3+4Y6A=; b=g51ohYsBF1oxGw9oHbUkfFQjtr2ow AE9TDgZlLnL8FusKBIhMEw/lUbyqapPjR7KPzXczFDgmY4XEASq3nN9QucksGrLG VaEf2/LfqdbXYG0hW5+GlNzpDXI75Mq4/zOzKs5xwWSFMq98QLtYKw+ipZUjXSzD RL55kk73RE4JYzO8ncuBlxb1YBdQKfQc+aDfVQrZAyZN+K9CoXsRB8Tzo8ECa54G 1Ox+f0G4yWUQuQsDRLOL2p08UHw56sYGcB2NFJctcPnQuXOfp6NcZvU0/iBHd7h3 4HO8EvAe7NJC2LhAPY0NDIIctLtaUr/WTcKl3TPbhoHK0KhurqvCpAXmw== X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedviedruddthedgvdekucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucesvcftvggtihhpihgvnhhtshculddquddttddmne cujfgurhepofgfggfkjghffffhvfevufgtsehttdertderredtnecuhfhrohhmpedftehr nhguuceuvghrghhmrghnnhdfuceorghrnhgusegrrhhnuggsrdguvgeqnecuggftrfgrth htvghrnhepffehueegteeihfegtefhjefgtdeugfegjeelheejueethfefgeeghfektdek teffnecuvehluhhsthgvrhfuihiivgeptdenucfrrghrrghmpehmrghilhhfrhhomheprg hrnhgusegrrhhnuggsrdguvg X-ME-Proxy: Feedback-ID: i56a14606:Fastmail Received: by mailuser.nyi.internal (Postfix, from userid 501) id 69108B6008D; Mon, 14 Aug 2023 17:02:45 -0400 (EDT) X-Mailer: MessagingEngine.com Webmail Interface User-Agent: Cyrus-JMAP/3.9.0-alpha0-624-g7714e4406d-fm-20230801.001-g7714e440 Mime-Version: 1.0 Message-Id: In-Reply-To: <9a6b2c18b599e5c2e7cea99fec84a4ecb5092da5.camel@sipsolutions.net> References: <20230616090343.2454061-1-arnd@kernel.org> <9a6b2c18b599e5c2e7cea99fec84a4ecb5092da5.camel@sipsolutions.net> Date: Mon, 14 Aug 2023 23:02:19 +0200 From: "Arnd Bergmann" To: "Johannes Berg" , "Arnd Bergmann" , "Gregory Greenman" , "Kalle Valo" , "Luca Coelho" , "Shahar S Matityahu" Cc: "Mukesh Sisodiya" , linux-wireless@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH] iwlwifi: dbg_ini: fix structure packing Content-Type: text/plain X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_BLOCKED, RCVD_IN_MSPIKE_H5,RCVD_IN_MSPIKE_WL,SPF_HELO_PASS,T_SPF_TEMPERROR 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-wireless@vger.kernel.org On Mon, Aug 14, 2023, at 20:28, Johannes Berg wrote: > On Fri, 2023-06-16 at 11:03 +0200, Arnd Bergmann wrote: >> >> As the original intention was apparently to make the entire structure >> unaligned, mark the innermost members the same way so the union >> becomes packed as well. > > Hm. Not sure exactly what you mean by that, but shouldn't we make that > "union { ... } __packed"? Up to you, the effect is the same, as the other two members are already packed. I generally try to keep the packing to the members that are actually unaligned, to make the code more efficient, but in this case the entire structure is unaligned, so it doesn't matter. Arnd