From 0243c6dd892f5ac0ed9c195034a67d2f1f08cec6 Mon Sep 17 00:00:00 2001 From: Thanos Makatos Date: Thu, 18 Feb 2021 08:39:56 +0000 Subject: drop -Wno-implicit-function-declaration from unit tests (#349) This might cause undefined program behavior. Signed-off-by: Thanos Makatos Reviewed-by: John Levon --- test/mocks.h | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) (limited to 'test/mocks.h') diff --git a/test/mocks.h b/test/mocks.h index 67a67b5..06b853c 100644 --- a/test/mocks.h +++ b/test/mocks.h @@ -42,4 +42,32 @@ handle_dirty_pages(vfu_ctx_t *vfu_ctx, uint32_t size, struct iovec **iovecs, size_t *nr_iovecs, struct vfio_iommu_type1_dirty_bitmap *dirty_bitmap); +int +__real_handle_dirty_pages(vfu_ctx_t *vfu_ctx, uint32_t size, + struct iovec **iovecs, size_t *nr_iovecs, + struct vfio_iommu_type1_dirty_bitmap *dirty_bitmap); + +int +__real_dma_controller_add_region(dma_controller_t *dma, dma_addr_t dma_addr, + size_t size, int fd, off_t offset, + uint32_t prot); + +bool +__real_device_is_stopped(struct migration *migr); + +int +__real_exec_command(vfu_ctx_t *vfu_ctx, struct vfio_user_header *hdr, + size_t size, int *fds, size_t *nr_fds, size_t **fds_out, + int *nr_fds_out, struct iovec *_iovecs, struct iovec **iovecs, + size_t *nr_iovecs, bool *free_iovec_data); +int +__real_close(int fd); + +void +__real_free(void *ptr); + +int +__real_process_request(vfu_ctx_t *vfu_ctx); + + /* ex: set tabstop=4 shiftwidth=4 softtabstop=4 expandtab: */ -- cgit v1.1