Skip to content

Simple kernel header de-duplication#29

Merged
dledford merged 4 commits intolinux-rdma:masterfrom
jgunthorpe:uapi
Nov 1, 2016
Merged

Simple kernel header de-duplication#29
dledford merged 4 commits intolinux-rdma:masterfrom
jgunthorpe:uapi

Conversation

@jgunthorpe
Copy link
Copy Markdown
Member

Start migrating to using the kernel UAPI header directly, as they exist in 4.8

These are some of the things that are easy to fix, and the basic infrastructure to do it.

This is useful to painlessly test if the kernel headers work with the
build. All the kernel header shimming is moved into
buildlib/RDMA_LinuxHeaders.cmake, new headers can be added to the list.

Signed-off-by: Jason Gunthorpe <jgunthorpe@obsidianresearch.com>
Detect if the distro's rdma_netlink.h is new enough, if not replace
it with the built in copy, and eliminate the two loose copies of the
header.

The built in copy is from v4.8

Signed-off-by: Jason Gunthorpe <jgunthorpe@obsidianresearch.com>
…b_user_sa.h

Using the system header from the kernel is now the expected way to export
definitions to user space. Tree wide update to shift from the local
header and deal with the name changes.

Unfortunately this was exposed as a public installed header, for
now drop in a compat header with a #warning not to use it. Some
day we can delete it.

Apps are expected to also migrate to rdma/ib_user_sa.h as their
source for this information.

Signed-off-by: Jason Gunthorpe <jgunthorpe@obsidianresearch.com>
…_cm.h

Using the system header from the kernel is now the expected way to export
definitions to user space.

Unfortunately this was exposed as a public installed header, for
now drop in a compat header with a #warning not to use it. Some
day we can delete it.

Signed-off-by: Jason Gunthorpe <jgunthorpe@obsidianresearch.com>
@dledford dledford merged commit c925b19 into linux-rdma:master Nov 1, 2016
@jgunthorpe jgunthorpe deleted the uapi branch November 4, 2016 00:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants