Messages in this thread | | | Date | Wed, 20 Jun 2018 07:37:50 +0900 (KST) | Subject | Re: [PATCH] net: nixge: Add __packed attribute to DMA descriptor struct | From | David Miller <> |
| |
From: Florian Fainelli <f.fainelli@gmail.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.
| |