Received: by 2002:ac0:8c9a:0:0:0:0:0 with SMTP id r26csp5475257ima; Tue, 5 Feb 2019 12:23:49 -0800 (PST) X-Google-Smtp-Source: AHgI3Ibc8w7axzacqnqDIdXr8snXivr6eBj4OwPTaPX8FFdO4tDq232Pc59sYoLDfVn1SmTVnBWP X-Received: by 2002:a17:902:4d46:: with SMTP id o6mr6704892plh.302.1549398229004; Tue, 05 Feb 2019 12:23:49 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1549398228; cv=none; d=google.com; s=arc-20160816; b=oRyew2Ju4yfDvowTYmh8DAGLzThQwN+erIHRph5v3rX3H/cccuUBDnNRlmmPlJNm/E CuhXC8P9Zd14k64pXYzqAmBHFRqexNLaDO2HBu/OZ/oQh+H+lmY3uyrK+Ok2RNAa6xIr F1m5+FZ9kMRqiIynNuRoBsbU7+DzNrX7MYf0un5orIE7nUgCfm+7UBHlvAiQTpPttKb5 o1n8pzCeohyQYS2H91IDoPEMrdO8tbGXmB+lq2OHFuUebHExvG83lKsjklWiZ9G+4iZ6 ezRMYOUy/tzfPPrp1RGNmrePPC+Vyt9+u6hDvwZl7Fs3nQEHRCI8F1kj/jeXr7sISqkN VSmA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :user-agent:references:in-reply-to:date:cc:to:from:subject :message-id; bh=HcSoiq5sbgyrqY18t5XrIc2P6reLwfK/8OvBwxf5jjo=; b=LL9ACcG7ugLczVDqCLm2EJa3AmgHSFwYO0LVBDh5Vgpc8BMx80l2IsAguna01368yV Xanxjt0Rv2i1oMldm8f0aDL2N1ahRLaRFlZRuZLZtwZ4l497LmLllpS/ukq2izKayKmT Wos9q5l3Yg2LvPucsTX2/d441GrWUCPz1sGg7PxDzV3SsdD5KC16i+cSUmRlRwauxVG9 LYlrA8P3nBEXIQFPBw/O9rIPFmgh2+5eHW4z/hvD5NpfWs5GBYxPyanSbyTPyy+eMoKn 7llWTWJ79PclrPY295lNm+verAmbyc7a4+MHHoCKkcKfib1z7RfY8ZeqstDsoa9uc3Zu WF5w== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id d1si3904893pgg.301.2019.02.05.12.23.33; Tue, 05 Feb 2019 12:23:48 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729569AbfBEUSQ (ORCPT + 99 others); Tue, 5 Feb 2019 15:18:16 -0500 Received: from smtprelay0152.hostedemail.com ([216.40.44.152]:33641 "EHLO smtprelay.hostedemail.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1726547AbfBEUSQ (ORCPT ); Tue, 5 Feb 2019 15:18:16 -0500 Received: from filter.hostedemail.com (clb03-v110.bra.tucows.net [216.40.38.60]) by smtprelay01.hostedemail.com (Postfix) with ESMTP id 6FB16100E86C5; Tue, 5 Feb 2019 20:18:14 +0000 (UTC) X-Session-Marker: 6A6F6540706572636865732E636F6D X-Spam-Summary: 2,0,0,,d41d8cd98f00b204,joe@perches.com,:::::::::::::::,RULES_HIT:41:355:379:599:960:973:988:989:1260:1277:1311:1313:1314:1345:1359:1437:1515:1516:1518:1534:1539:1593:1594:1711:1730:1747:1777:1792:2393:2559:2562:2828:3138:3139:3140:3141:3142:3352:3622:3865:3866:3870:3871:3872:4321:5007:10004:10400:10848:11232:11658:11914:12740:12760:12895:13069:13073:13311:13357:13439:14659:14721:21080:21220:21324:21611:21627:21740:30054:30091,0,RBL:47.151.153.53:@perches.com:.lbl8.mailshell.net-62.8.0.100 64.201.201.201,CacheIP:none,Bayesian:0.5,0.5,0.5,Netcheck:none,DomainCache:0,MSF:not bulk,SPF:fn,MSBL:0,DNSBL:neutral,Custom_rules:0:0:0,LFtime:27,LUA_SUMMARY:none X-HE-Tag: juice35_81a31fe1f8d49 X-Filterd-Recvd-Size: 1737 Received: from XPS-9350.home (unknown [47.151.153.53]) (Authenticated sender: joe@perches.com) by omf07.hostedemail.com (Postfix) with ESMTPA; Tue, 5 Feb 2019 20:18:10 +0000 (UTC) Message-ID: <4aea523a3bc5be0d944f7ed9fadac276b7115002.camel@perches.com> Subject: Re: [PATCH v2 2/2] r8169: Avoid pointer aliasing From: Joe Perches To: Eric Dumazet , David Miller , thierry.reding@gmail.com Cc: hkallweit1@gmail.com, andrew@lunn.ch, nic_swsd@realtek.com, netdev@vger.kernel.org, linux-kernel@vger.kernel.org Date: Tue, 05 Feb 2019 12:18:09 -0800 In-Reply-To: References: <20190204164213.30727-1-thierry.reding@gmail.com> <20190204164213.30727-2-thierry.reding@gmail.com> <20190204.192040.1074738183781998611.davem@davemloft.net> <8553086eaec167846992f1cff12aa388cee81767.camel@perches.com> Content-Type: text/plain; charset="ISO-8859-1" User-Agent: Evolution 3.30.1-1build1 Mime-Version: 1.0 Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, 2019-02-05 at 12:04 -0800, Eric Dumazet wrote: > > On 02/05/2019 10:42 AM, Joe Perches wrote: > > It's declared after a pointer so it is already is 2 byte aligned. > > > > A lot of drivers wouldn't work otherwise. > > Maybe these drivers are only used on arches where this does not matter. Possible. I had only grepped through the sources looking for declarations using: $ git grep -B1 '\[ETH_ALEN\];' -- '*.c' | grep -A1 '\*' It's quite a few files in net/ too btw. I still think adding __align() is unnecessary here unless it follows something like a bool or a u8.