Re: [PATCH rdma-core] librdmacm: Fix compilation warnings

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

 



On Tue, Oct 03, 2017 at 02:05:29PM +0300, Leon Romanovsky wrote:
> Combination of glibc 2.26-4 and gcc 7.2.0-3 produces of following
> warnings at the compilation phase of rdma-core.
>
> [24/189] Building C object librdmacm/CMakeFiles/rspreload.dir/preload.c.o
> ../librdmacm/preload.c:818:9: warning: no previous prototype for ‘readv’ [-Wmissing-prototypes]
>  ssize_t readv(int socket, const struct iovec *iov, int iovcnt)
>          ^~~~~
> ../librdmacm/preload.c:857:9: warning: no previous prototype for ‘writev’ [-Wmissing-prototypes]
>  ssize_t writev(int socket, const struct iovec *iov, int iovcnt)
>
> The simple addition of "sys/uio.h" proposed by Sean Hefty [1] with Jason
> Gunthrope support [2] fixes it.
>
> [1] https://marc.info/?l=linux-rdma&m=150696066510225&w=2
> [2] https://marc.info/?l=linux-rdma&m=150696688111945&w=2
> Cc: Sean Hefty <sean.hefty@xxxxxxxxx>
> Cc: Jason Gunthorpe <jgunthorpe@xxxxxxxxxxxxxxxxxxxx>
> Signed-off-by: Leon Romanovsky <leonro@xxxxxxxxxxxx>
> ---
>  librdmacm/preload.c | 2 ++
>  1 file changed, 2 insertions(+)
>

Thanks, applied.

Attachment: signature.asc
Description: PGP signature


[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