]> git.ipfire.org Git - thirdparty/linux.git/commit
dmaengine: idxd: Remove __packed from structures
authorYi Sun <yi.sun@intel.com>
Fri, 4 Apr 2025 05:36:14 +0000 (13:36 +0800)
committerVinod Koul <vkoul@kernel.org>
Fri, 27 Jun 2025 17:54:25 +0000 (10:54 -0700)
commit0044c5fcae3d2e89ee7d4979a52e1014774d4f92
tree08b57e63d28813240c6ae33f09c52993e5a4803b
parentddf16e16346a36ec6616e5282f675f2e3cdc826f
dmaengine: idxd: Remove __packed from structures

The __packed attribute introduces potential unaligned memory accesses
and endianness portability issues. Instead of relying on compiler-specific
packing, it's much better to explicitly fill structure gaps using padding
fields, ensuring natural alignment.

Since all previously __packed structures already enforce proper alignment
through manual padding, the __packed qualifiers are unnecessary and can be
safely removed.

Signed-off-by: Yi Sun <yi.sun@intel.com>
Reviewed-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Reviewed-by: Dave Jiang <dave.jiang@intel.com>
Reviewed-by: Fenghua Yu <fenghuay@nvidia.com>
Link: https://lore.kernel.org/r/20250404053614.3096769-1-yi.sun@intel.com
Signed-off-by: Vinod Koul <vkoul@kernel.org>
drivers/dma/idxd/registers.h