summaryrefslogtreecommitdiff
path: root/drivers/infiniband/ulp/srp/ib_srp.c
diff options
context:
space:
mode:
authorBart Van Assche <bvanassche@acm.org>2021-05-23 21:12:09 -0700
committerJason Gunthorpe <jgg@nvidia.com>2021-05-28 20:21:20 -0300
commit6dc26498e1d3d702b5321f380e24d3368765b351 (patch)
tree79967f6b6efe7d7bc8f8d6adda4d76b5cafaa8ee /drivers/infiniband/ulp/srp/ib_srp.c
parentc838de1af141ee3bd23ea1781a7033375b54f35a (diff)
downloadlinux-6dc26498e1d3d702b5321f380e24d3368765b351.tar.gz
linux-6dc26498e1d3d702b5321f380e24d3368765b351.tar.bz2
linux-6dc26498e1d3d702b5321f380e24d3368765b351.zip
RDMA/srp: Apply the __packed attribute to members instead of structures
Applying the __packed attribute to an entire data structure results in suboptimal code on architectures that do not support unaligned accesses. Hence apply the __packed attribute only to those data members that are not naturally aligned. Link: https://lore.kernel.org/r/20210524041211.9480-4-bvanassche@acm.org Cc: Nicolas Morey-Chaisemartin <nmoreychaisemartin@suse.com> Signed-off-by: Bart Van Assche <bvanassche@acm.org> Signed-off-by: Jason Gunthorpe <jgg@nvidia.com>
Diffstat (limited to 'drivers/infiniband/ulp/srp/ib_srp.c')
0 files changed, 0 insertions, 0 deletions