Re: [PATCH] net: nixge: Add __packed attribute to DMA descriptor struct
From: David Miller
Date: Tue Jun 19 2018 - 18:45:41 EST
From: Florian Fainelli <f.fainelli@xxxxxxxxx>
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.