On 7/25/18 5:14 AM, Thomas Huth wrote:

>
> Note that the error has been reported to happen on FreeBSD - so I doubt
> that this <linux/types.h> header should be here.
>
> Anyway, our include/standard-headers/linux/types.h is also empty ... so
> could you try whether it compiles if you simply remove this #include
> line, Rebecca?


Sorry for the delay, I'm just getting back to this. Removing the include
causes it to fail later on, with:


/home/bcran/workspace/qemu/hw/rdma/vmw/pvrdma_cmd.c:60:17: warning:
implicit declaration of function 'mremap' is invalid in C99
[-Wimplicit-function-declaration]
    host_virt = mremap(curr_page, 0, length, MREMAP_MAYMOVE);
                ^
/home/bcran/workspace/qemu/hw/rdma/vmw/pvrdma_cmd.c:60:17: warning: this
function declaration is not a prototype [-Wstrict-prototypes]
/home/bcran/workspace/qemu/hw/rdma/vmw/pvrdma_cmd.c:60:46: error: use of
undeclared identifier 'MREMAP_MAYMOVE'
    host_virt = mremap(curr_page, 0, length, MREMAP_MAYMOVE);
                                             ^
/home/bcran/workspace/qemu/hw/rdma/vmw/pvrdma_cmd.c:97:48: error: use of
undeclared identifier 'MREMAP_MAYMOVE'
        mremap(curr_page, 0, TARGET_PAGE_SIZE, MREMAP_MAYMOVE |
MREMAP_FIXED,
                                               ^
/home/bcran/workspace/qemu/hw/rdma/vmw/pvrdma_cmd.c:97:65: error: use of
undeclared identifier 'MREMAP_FIXED'
        mremap(curr_page, 0, TARGET_PAGE_SIZE, MREMAP_MAYMOVE |
MREMAP_FIXED,


Since I'm not interested in RDMA support, I can work around it by
passing --disable-rdma on the command line.


-- 
Rebecca


Reply via email to