public inbox for linux-rdma@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH rdma-core 00/10] Provide a compat infiniband/arch.h
@ 2017-02-09 21:53 Jason Gunthorpe
       [not found] ` <1486677212-3188-1-git-send-email-jgunthorpe-ePGOBjL8dl3ta4EC/59zMFaTQe2KTcn/@public.gmane.org>
  0 siblings, 1 reply; 24+ messages in thread
From: Jason Gunthorpe @ 2017-02-09 21:53 UTC (permalink / raw)
  To: linux-rdma-u79uwXL29TY76Z2rM5mHXA

Prior commits made arch.h into a private header, but there are several places
out there that include it to get htonll. Provide a dummy compat header that
will let such places continue to compile, but with warnings.

To do this we need to move the internal tree to use util/udma_barrier.h for
the barrier macros to free up the header file name and in the process replace
more of the crazy mix of byteswapping macros with endian.h equivalents.

To make sure that everything remains working travis also learns to
compile-test all the header files.

Jason Gunthorpe (10):
  Have check-build confirm that every public header is standalone
  Remove uses of htonll
  Remove uses of ntohll
  Do not use kernel byteswap macros
  Remove extraneous byteswap.h include
  mlx4: Remove include of asm/unistd.h
  rdmacm: Remove dangling cpu_to_be64 definitions
  umad: Replace htonll macros with proper inlines and mark deprecated
  Move the now private infiniband/arch.h to util/udma_barrier.h
  verbs: Add a compatibility arch.h

 CMakeLists.txt                    |   2 +-
 buildlib/check-build              |  55 ++++++++++++++++-
 buildlib/travis-build             |   2 +-
 ibacm/include/acm_mad.h           |  84 ++++++++++++-------------
 ibacm/linux/osd.h                 |   1 -
 ibacm/prov/acmp/src/acmp.c        |  12 ++--
 ibacm/src/acm.c                   |   6 +-
 iwpmd/iwarp_pm_common.c           |   5 +-
 libibcm/cm.h                      |   6 +-
 libibcm/examples/cmpost.c         |   7 +--
 libibumad/sysfs.c                 |   1 -
 libibumad/umad.h                  |  16 +++--
 libibverbs/CMakeLists.txt         |   2 +-
 libibverbs/arch.h                 | 101 +++---------------------------
 libibverbs/examples/asyncwatch.c  |   1 -
 libibverbs/examples/device_list.c |   1 -
 libibverbs/examples/devinfo.c     |   1 -
 librdmacm/cma.c                   |   1 -
 librdmacm/cma.h                   |   1 -
 librdmacm/examples/cmatose.c      |   1 -
 librdmacm/examples/common.c       |   1 -
 librdmacm/examples/common.h       |   3 -
 librdmacm/examples/mckey.c        |   1 -
 librdmacm/examples/rping.c        |   1 -
 librdmacm/examples/udaddy.c       |   1 -
 librdmacm/ib.h                    |   1 +
 librdmacm/rdma_cma_abi.h          |   1 +
 librdmacm/rsocket.c               |   1 +
 providers/cxgb3/cxio_wr.h         |   2 +-
 providers/cxgb3/iwch.h            |   2 +-
 providers/cxgb3/qp.c              |  12 ++--
 providers/cxgb4/dev.c             |   4 +-
 providers/cxgb4/libcxgb4.h        |   2 +-
 providers/cxgb4/t4.h              |   4 +-
 providers/hfi1verbs/hfiverbs.h    |   1 -
 providers/hns/hns_roce_u.h        |   2 +-
 providers/i40iw/i40iw_osdep.h     |   2 +-
 providers/i40iw/i40iw_uk.c        |   2 +
 providers/i40iw/i40iw_umain.h     |   2 +-
 providers/ipathverbs/ipathverbs.h |   1 -
 providers/mlx4/mlx4.h             |   2 +-
 providers/mlx4/mmio.h             |   1 -
 providers/mlx4/qp.c               |  12 ++--
 providers/mlx4/srq.c              |   2 +-
 providers/mlx5/cq.c               |   2 +-
 providers/mlx5/mlx5.h             |   2 +-
 providers/mlx5/qp.c               |  28 ++++-----
 providers/mlx5/srq.c              |   4 +-
 providers/mthca/mthca.h           |   2 +-
 providers/mthca/qp.c              |  34 +++++------
 providers/mthca/srq.c             |   4 +-
 providers/nes/nes_umain.h         |   2 +-
 providers/ocrdma/ocrdma_main.h    |   2 +-
 providers/qedr/qelr.h             |   2 +-
 providers/qedr/qelr_main.h        |   2 +-
 providers/qedr/qelr_verbs.c       |   2 +-
 providers/qedr/qelr_verbs.h       |   2 +-
 providers/rxe/rxe.c               |   1 -
 providers/vmw_pvrdma/cq.c         |   2 +-
 providers/vmw_pvrdma/qp.c         |   2 +-
 srp_daemon/srp_daemon.c           |  43 +++++++------
 srp_daemon/srp_daemon.h           |   1 -
 srp_daemon/srp_handle_traps.c     |   5 +-
 util/CMakeLists.txt               |   1 +
 util/udma_barrier.h               | 125 ++++++++++++++++++++++++++++++++++++++
 65 files changed, 356 insertions(+), 281 deletions(-)
 create mode 100644 util/udma_barrier.h

-- 
2.7.4

--
To unsubscribe from this list: send the line "unsubscribe linux-rdma" in
the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

^ permalink raw reply	[flat|nested] 24+ messages in thread

end of thread, other threads:[~2017-02-15 18:55 UTC | newest]

Thread overview: 24+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2017-02-09 21:53 [PATCH rdma-core 00/10] Provide a compat infiniband/arch.h Jason Gunthorpe
     [not found] ` <1486677212-3188-1-git-send-email-jgunthorpe-ePGOBjL8dl3ta4EC/59zMFaTQe2KTcn/@public.gmane.org>
2017-02-09 21:53   ` [PATCH rdma-core 01/10] Have check-build confirm that every public header is standalone Jason Gunthorpe
     [not found]     ` <1486677212-3188-2-git-send-email-jgunthorpe-ePGOBjL8dl3ta4EC/59zMFaTQe2KTcn/@public.gmane.org>
2017-02-12  8:48       ` Leon Romanovsky
2017-02-09 21:53   ` [PATCH rdma-core 02/10] Remove uses of htonll Jason Gunthorpe
     [not found]     ` <1486677212-3188-3-git-send-email-jgunthorpe-ePGOBjL8dl3ta4EC/59zMFaTQe2KTcn/@public.gmane.org>
2017-02-09 22:23       ` Steve Wise
2017-02-12  8:26       ` Amrani, Ram
2017-02-09 21:53   ` [PATCH rdma-core 03/10] Remove uses of ntohll Jason Gunthorpe
     [not found]     ` <1486677212-3188-4-git-send-email-jgunthorpe-ePGOBjL8dl3ta4EC/59zMFaTQe2KTcn/@public.gmane.org>
2017-02-09 22:24       ` Steve Wise
2017-02-09 21:53   ` [PATCH rdma-core 04/10] Do not use kernel byteswap macros Jason Gunthorpe
     [not found]     ` <1486677212-3188-5-git-send-email-jgunthorpe-ePGOBjL8dl3ta4EC/59zMFaTQe2KTcn/@public.gmane.org>
2017-02-09 22:23       ` Steve Wise
2017-02-09 21:53   ` [PATCH rdma-core 05/10] Remove extraneous byteswap.h include Jason Gunthorpe
2017-02-09 21:53   ` [PATCH rdma-core 06/10] mlx4: Remove include of asm/unistd.h Jason Gunthorpe
2017-02-09 21:53   ` [PATCH rdma-core 07/10] rdmacm: Remove dangling cpu_to_be64 definitions Jason Gunthorpe
2017-02-09 21:53   ` [PATCH rdma-core 08/10] umad: Replace htonll macros with proper inlines and mark deprecated Jason Gunthorpe
2017-02-09 21:53   ` [PATCH rdma-core 09/10] Move the now private infiniband/arch.h to util/udma_barrier.h Jason Gunthorpe
     [not found]     ` <1486677212-3188-10-git-send-email-jgunthorpe-ePGOBjL8dl3ta4EC/59zMFaTQe2KTcn/@public.gmane.org>
2017-02-09 22:25       ` Steve Wise
2017-02-12  8:28       ` Amrani, Ram
2017-02-09 21:53   ` [PATCH rdma-core 10/10] verbs: Add a compatibility arch.h Jason Gunthorpe
     [not found]     ` <1486677212-3188-11-git-send-email-jgunthorpe-ePGOBjL8dl3ta4EC/59zMFaTQe2KTcn/@public.gmane.org>
2017-02-12  9:05       ` Leon Romanovsky
     [not found]         ` <20170212090531.GC14015-U/DQcQFIOTAAJjI8aNfphQ@public.gmane.org>
2017-02-13 16:39           ` Jason Gunthorpe
     [not found]             ` <20170213163910.GA25430-ePGOBjL8dl3ta4EC/59zMFaTQe2KTcn/@public.gmane.org>
2017-02-13 18:17               ` Leon Romanovsky
2017-02-15  5:15   ` [PATCH rdma-core 00/10] Provide a compat infiniband/arch.h Leon Romanovsky
     [not found]     ` <20170215051511.GK6989-U/DQcQFIOTAAJjI8aNfphQ@public.gmane.org>
2017-02-15 13:51       ` Talat mellanox
     [not found]         ` <CAB1oGZeJNvwwcii+z7VYQzZK3LJcToZ4uRF=_waA6WAboJueCg-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2017-02-15 18:55           ` Jason Gunthorpe

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox