From: Jason Gunthorpe <jgg-uk2M96/98Pc@public.gmane.org>
To: Yishai Hadas <yishaih-LDSdmyG8hGV8YrgS2mwiifqBs+8SCbDb@public.gmane.org>
Cc: linux-rdma-u79uwXL29TY76Z2rM5mHXA@public.gmane.org,
Yishai Hadas <yishaih-VPRAkNaXOzVWk0Htik3J/w@public.gmane.org>
Subject: Re: [PATCH rdma-core 01/17] Update rdma/ib_user_verbs.h
Date: Mon, 15 Jan 2018 10:10:33 -0700 [thread overview]
Message-ID: <20180115171033.GA2206@ziepe.ca> (raw)
In-Reply-To: <fe2337a1-b02d-cc01-c55d-e6e493ec30ef-LDSdmyG8hGV8YrgS2mwiifqBs+8SCbDb@public.gmane.org>
On Mon, Jan 15, 2018 at 07:01:13PM +0200, Yishai Hadas wrote:
> On 1/12/2018 12:13 AM, Jason Gunthorpe wrote:
> >From: Jason Gunthorpe <jgg-VPRAkNaXOzVWk0Htik3J/w@public.gmane.org>
> >
> >To let us use definitions from the latest kernel headers in followup
> >patches.
> >
> > From v4.15-rc7
> >
> >Signed-off-by: Jason Gunthorpe <jgg-VPRAkNaXOzVWk0Htik3J/w@public.gmane.org>
> > buildlib/RDMA_LinuxHeaders.cmake | 2 +-
> > buildlib/fixup-include/rdma-ib_user_verbs.h | 1176 +++++++++++++++++++++++++++
> > 2 files changed, 1177 insertions(+), 1 deletion(-)
> > create mode 100644 buildlib/fixup-include/rdma-ib_user_verbs.h
> >
> >diff --git a/buildlib/RDMA_LinuxHeaders.cmake b/buildlib/RDMA_LinuxHeaders.cmake
> >index ea60b9b55844ea..aa2a89a53d0c2d 100644
> >+++ b/buildlib/RDMA_LinuxHeaders.cmake
> >@@ -86,7 +86,7 @@ function(rdma_report_missing_kheaders)
> > endfunction()
> > # This list is topologically sorted
> >-rdma_check_kheader("rdma/ib_user_verbs.h" "${DEFAULT_TEST}" NO_SHIM OPTIONAL)
> >+rdma_check_kheader("rdma/ib_user_verbs.h" "int main(int argc,const char *argv[]) { return IB_USER_VERBS_EX_CMD_MODIFY_CQ; }")
>
> Any future change in this kernel header will require a change in this check
> as well and also a commit into fixup-include/rdma-ib_user_verbs.h with the
> new kernel code, correct ?
Yes.
> How will people be aware of that and won't miss it ? can we have some script
> that will warn/suggest the expected change upon a kernel change ?
Keeping the header up to date is not a big problem, there is no way to
get new symbols otherwise so people patching in new features have to
do it.
travis always does compiles using these headers as well.
Keeping the check quoted above broadly correct is more difficult. I
can't think of how to automate that, other than to manually inspect
patches that update the header to make sure they update the check as
well.
We could also switch to a more iproute like model where we just
unconditionally use our copies of the kernel headers..
Jason
--
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
next prev parent reply other threads:[~2018-01-15 17:10 UTC|newest]
Thread overview: 28+ messages / expand[flat|nested] mbox.gz Atom feed top
2018-01-11 22:13 [PATCH rdma-core 00/17] Use the kernel ABI header instead of kern-abi.h Jason Gunthorpe
[not found] ` <20180111221340.965-1-jgg-uk2M96/98Pc@public.gmane.org>
2018-01-11 22:13 ` [PATCH rdma-core 01/17] Update rdma/ib_user_verbs.h Jason Gunthorpe
[not found] ` <20180111221340.965-2-jgg-uk2M96/98Pc@public.gmane.org>
2018-01-15 17:01 ` Yishai Hadas
[not found] ` <fe2337a1-b02d-cc01-c55d-e6e493ec30ef-LDSdmyG8hGV8YrgS2mwiifqBs+8SCbDb@public.gmane.org>
2018-01-15 17:10 ` Jason Gunthorpe [this message]
[not found] ` <20180115171033.GA2206-uk2M96/98Pc@public.gmane.org>
2018-01-22 10:48 ` Yishai Hadas
[not found] ` <c4ee82a7-f235-4370-cf64-d5c73a79bd1b-LDSdmyG8hGV8YrgS2mwiifqBs+8SCbDb@public.gmane.org>
2018-01-22 15:42 ` Jason Gunthorpe
[not found] ` <20180122154206.GC14372-uk2M96/98Pc@public.gmane.org>
2018-01-22 15:56 ` Yishai Hadas
2018-01-11 22:13 ` [PATCH rdma-core 02/17] verbs: Include rdma/ib_user_verbs.h in kern-abi.h Jason Gunthorpe
[not found] ` <20180111221340.965-3-jgg-uk2M96/98Pc@public.gmane.org>
2018-01-12 6:34 ` Leon Romanovsky
[not found] ` <20180112063433.GH15760-U/DQcQFIOTAAJjI8aNfphQ@public.gmane.org>
2018-01-12 16:28 ` Jason Gunthorpe
2018-01-11 22:13 ` [PATCH rdma-core 03/17] verbs: Delete extended command definitions from kern-abi.h Jason Gunthorpe
2018-01-11 22:13 ` [PATCH rdma-core 04/17] verbs: Remove unused structs Jason Gunthorpe
2018-01-11 22:13 ` [PATCH rdma-core 05/17] verbs: Remove kernel ABI v2 compat cruft Jason Gunthorpe
2018-01-11 22:13 ` [PATCH rdma-core 06/17] verbs: Add missing endian annotations to kern-abi.h Jason Gunthorpe
2018-01-11 22:13 ` [PATCH rdma-core 07/17] verbs: Use kernel uapi names for identical structs Jason Gunthorpe
[not found] ` <20180111221340.965-8-jgg-uk2M96/98Pc@public.gmane.org>
2018-01-15 16:48 ` Yishai Hadas
[not found] ` <2f04c4d8-bc14-9293-2e03-b29074e08637-LDSdmyG8hGV8YrgS2mwiifqBs+8SCbDb@public.gmane.org>
2018-01-15 17:01 ` Jason Gunthorpe
2018-01-11 22:13 ` [PATCH rdma-core 08/17] verbs: Use kernel uapi header for ibv_cq_moderation_caps_resp Jason Gunthorpe
2018-01-11 22:13 ` [PATCH rdma-core 09/17] verbs: Use kernel uapi header for ibv_query_device_resp_ex Jason Gunthorpe
2018-01-11 22:13 ` [PATCH rdma-core 10/17] verbs: Use kernel uapi header for ibv_kern_wc and ibv_poll_cq_resp Jason Gunthorpe
2018-01-11 22:13 ` [PATCH rdma-core 11/17] verbs: Use kernel uapi header for ibv_create_ah_resp Jason Gunthorpe
2018-01-11 22:13 ` [PATCH rdma-core 12/17] verbs: Use kernel uapi header for ibv_kern_send_wr Jason Gunthorpe
2018-01-11 22:13 ` [PATCH rdma-core 13/17] verbs: Use kernel uapi header for IBV_CREATE_QP_EX_KERNEL_MASK_IND_TABLE Jason Gunthorpe
2018-01-11 22:13 ` [PATCH rdma-core 14/17] verbs: Use kernel uapi header for flow steering types Jason Gunthorpe
2018-01-11 22:13 ` [PATCH rdma-core 15/17] verbs: Use kernel uapi header for ibv_modify_qp_common Jason Gunthorpe
2018-01-11 22:13 ` [PATCH rdma-core 16/17] verb: Use kernel uapi header in struct ex_hdr Jason Gunthorpe
2018-01-11 22:13 ` [PATCH rdma-core 17/17] verbs: Tidy up the remaining structs in kern-abi.h Jason Gunthorpe
2018-01-22 17:37 ` [PATCH rdma-core 00/17] Use the kernel ABI header instead of kern-abi.h Jason Gunthorpe
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20180115171033.GA2206@ziepe.ca \
--to=jgg-uk2m96/98pc@public.gmane.org \
--cc=linux-rdma-u79uwXL29TY76Z2rM5mHXA@public.gmane.org \
--cc=yishaih-LDSdmyG8hGV8YrgS2mwiifqBs+8SCbDb@public.gmane.org \
--cc=yishaih-VPRAkNaXOzVWk0Htik3J/w@public.gmane.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox