]> git.baikalelectronics.ru Git - kernel.git/commit
dmaengine: xilinx_dma: Remove __aligned attribute on zynqmp_dma_desc_ll
authorNathan Chancellor <natechancellor@gmail.com>
Thu, 25 Oct 2018 18:05:25 +0000 (11:05 -0700)
committerVinod Koul <vkoul@kernel.org>
Sat, 24 Nov 2018 13:41:20 +0000 (19:11 +0530)
commit50494195e19f188e04a8617083b958748ab6f7e7
treed08a8dc8518a5ff4634218bda3ba9ba6bd9a6bc0
parent0c2e38da73a1302488134ab29b0f4eb4a3110f79
dmaengine: xilinx_dma: Remove __aligned attribute on zynqmp_dma_desc_ll

Clang warns:

drivers/dma/xilinx/zynqmp_dma.c:166:4: warning: attribute 'aligned' is
ignored, place it after "struct" to apply attribute to type declaration
[-Wignored-attributes]
}; __aligned(64)
   ^
./include/linux/compiler_types.h:200:38: note: expanded from macro
'__aligned'
                                               ^
1 warning generated.

As Nick pointed out in the previous version of this patch, the author
likely intended for this struct to be 8-byte (64-bit) aligned, not
64-byte, which is the default. Remove the hanging __aligned attribute.

Fixes: fd358d7e03f7 ("dmaengine: Add Xilinx zynqmp dma engine driver support")
Reported-by: Nick Desaulniers <ndesaulniers@google.com>
Suggested-by: Nick Desaulniers <ndesaulniers@google.com>
Signed-off-by: Nathan Chancellor <natechancellor@gmail.com>
Reviewed-by: Nick Desaulniers <ndesaulniers@google.com>
Signed-off-by: Vinod Koul <vkoul@kernel.org>
drivers/dma/xilinx/zynqmp_dma.c