Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

gpio: virtio: reorder fields to reduce struct padding

Reorder struct virtio_gpio_line fields to place the DMA buffers
(req/res) last.

This eliminates the padding from aligning struct size on
ARCH_DMA_MINALIGN.

Acked-by: Viresh Kumar <viresh.kumar@linaro.org>
Message-ID: <f1221bbc120df6adaba9006710a517f1e84a10b2.1767601130.git.mst@redhat.com>
Acked-by: Bartosz Golaszewski <bartosz.golaszewski@oss.qualcomm.com>
Signed-off-by: Michael S. Tsirkin <mst@redhat.com>

+2 -1
+2 -1
drivers/gpio/gpio-virtio.c
··· 26 26 struct mutex lock; /* Protects line operation */ 27 27 struct completion completion; 28 28 29 + unsigned int rxlen; 30 + 29 31 __dma_from_device_group_begin(); 30 32 struct virtio_gpio_request req; 31 33 struct virtio_gpio_response res; 32 34 __dma_from_device_group_end(); 33 - unsigned int rxlen; 34 35 }; 35 36 36 37 struct vgpio_irq_line {