[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-Id: <20180620.073750.642289685695664600.davem@davemloft.net>
Date: Wed, 20 Jun 2018 07:37:50 +0900 (KST)
From: David Miller <davem@...emloft.net>
To: f.fainelli@...il.com
Cc: mdf@...nel.org, keescook@...omium.org, netdev@...r.kernel.org,
linux-kernel@...r.kernel.org
Subject: Re: [PATCH] net: nixge: Add __packed attribute to DMA descriptor
struct
From: Florian Fainelli <f.fainelli@...il.com>
Date: Tue, 19 Jun 2018 10:13:55 -0700
> How could padding be inserted given than all of the structure members
> are naturally aligned (all u32 type). Compiler bug?
Agreed, this looks completely unnecessary.
__packed should only be used when absolutely necessary because using
it generates less efficient code on some architectures.
Powered by blists - more mailing lists