raw-posix: inline paio_ioctl into hdev_aio_ioctl
authorPaolo Bonzini <pbonzini@redhat.com>
Fri, 2 Nov 2012 15:14:20 +0000 (16:14 +0100)
committerKevin Wolf <kwolf@redhat.com>
Tue, 11 Dec 2012 10:04:26 +0000 (11:04 +0100)
commitc208e8c2d88eea2bbafc2850d8856525637e495d
tree28108525486c3dbcdf1185ac469ab9c787d35ce7
parent258d2edbcd4bb5d267c96163333820332e1c14fa
raw-posix: inline paio_ioctl into hdev_aio_ioctl

clang now warns about an unused function:
  CC    block/raw-posix.o
block/raw-posix.c:707:26: warning: unused function paio_ioctl
[-Wunused-function]
static BlockDriverAIOCB *paio_ioctl(BlockDriverState *bs, int fd,
                         ^
1 warning generated.

because the only use of paio_ioctl() is inside a #if defined(__linux__)
guard and it is static now.

Reported-by: Peter Maydell <peter.maydell@linaro.org>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Signed-off-by: Stefan Hajnoczi <stefanha@redhat.com>
block/raw-posix.c