Re: [PATCH rdma-next] RDMA: Use __packed annotation instead of __attribute__ ((packed))

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Mon, Feb 25, 2019 at 08:52:30AM +0200, Leon Romanovsky wrote:
> From: Erez Alfasi <ereza@xxxxxxxxxxxx>
> 
> "__attribute__" set of macros has been standartized, its became
> more potentially portable and consistent code back then in
> v2.6.21 by this commit:
> 82ddcb040: ("[PATCH] extend the set of "__attribute__" shortcut macros").
> Moreover, nowadays checkpatch.pl warns about using
> __attribute__((packed)) instead of __packed.
> 
> This patch converts all the "__attribute__ ((packed))"
> annotations to "__packed" within the RDMA subsystem.
> 
> Signed-off-by: Erez Alfasi <ereza@xxxxxxxxxxxx>
> Signed-off-by: Leon Romanovsky <leonro@xxxxxxxxxxxx>
> ---
>  drivers/infiniband/core/cm_msgs.h        | 22 +++++++++++-----------
>  drivers/infiniband/core/mad_priv.h       |  4 ++--
>  drivers/infiniband/hw/cxgb3/cxio_wr.h    | 10 +++++-----
>  drivers/infiniband/hw/mthca/mthca_cq.c   |  2 +-
>  drivers/infiniband/hw/mthca/mthca_eq.c   | 16 ++++++++--------
>  drivers/infiniband/hw/mthca/mthca_mr.c   |  2 +-
>  drivers/infiniband/hw/mthca/mthca_qp.c   |  6 +++---
>  drivers/infiniband/sw/rxe/rxe_hdr.h      |  2 +-
>  drivers/infiniband/ulp/iser/iscsi_iser.h |  2 +-
>  include/rdma/ib_mad.h                    |  4 ++--
>  include/rdma/ib_smi.h                    |  2 +-
>  include/rdma/opa_port_info.h             |  2 +-
>  include/rdma/opa_smi.h                   |  4 ++--
>  13 files changed, 39 insertions(+), 39 deletions(-)

Since it doesn't change anything, applied to for-next

Thanks,
Jason



[Index of Archives]     [Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Photo]     [Yosemite News]     [Yosemite Photos]     [Linux Kernel]     [Linux SCSI]     [XFree86]

  Powered by Linux