From mboxrd@z Thu Jan 1 00:00:00 1970 Return-path: Received: from sabertooth02.qualcomm.com ([65.197.215.38]) by merlin.infradead.org with esmtps (Exim 4.80.1 #2 (Red Hat Linux)) id 1VRawP-0007e7-GL for ath10k@lists.infradead.org; Thu, 03 Oct 2013 04:55:10 +0000 From: Kalle Valo Subject: Re: [PATCH net-next] ath10k: wmi: Convert use of 6 to ETH_ALEN References: <1380679480.2081.24.camel@joe-AO722> <87k3hw469z.fsf@kamboji.qca.qualcomm.com> <1380696054.2081.35.camel@joe-AO722> <1380736969.2081.72.camel@joe-AO722> <1380758954.2081.79.camel@joe-AO722> <1380760114.2081.81.camel@joe-AO722> <1380771110.2081.89.camel@joe-AO722> <1380771551.2081.93.camel@joe-AO722> <1380773924.19002.131.camel@edumazet-glaptop.roam.corp.google.com> <87fvsjynuk.fsf@kamboji.qca.qualcomm.com> <1380775478.19002.139.camel@edumazet-glaptop.roam.corp.google.com> Date: Thu, 3 Oct 2013 07:54:39 +0300 In-Reply-To: <1380775478.19002.139.camel@edumazet-glaptop.roam.corp.google.com> (Eric Dumazet's message of "Wed, 2 Oct 2013 21:44:38 -0700") Message-ID: <87bo37ymwg.fsf@kamboji.qca.qualcomm.com> MIME-Version: 1.0 List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "ath10k" Errors-To: ath10k-bounces+kvalo=adurom.com@lists.infradead.org To: Eric Dumazet Cc: "Luis R. Rodriguez" , netdev , "John W. Linville" , ath10k@lists.infradead.org, Julia Lawall , Joe Perches Eric Dumazet writes: > On Thu, 2013-10-03 at 07:34 +0300, Kalle Valo wrote: > >> Do you mean '6' or the union? The 6 can replaced with ETH_ALEN AFAICS. >> But the union is needed for aligning the packets as firmware expects >> them. > > I mean the 6, of course, since Joe seems to actively track them, as if > ETH_ALEN could change eventually, you never know. > > I am worrying this will take another hundred patches ... Ah, ok. > Regarding this union, the __packed attributes seem overkill, no ??? Yeah, they do. This should be enough, right? struct wmi_mac_addr { union { u8 addr[6]; struct { u32 word0; u32 word1; }; }; } __packed; -- Kalle Valo _______________________________________________ ath10k mailing list ath10k@lists.infradead.org http://lists.infradead.org/mailman/listinfo/ath10k