numam-spdk/lib
Changpeng Liu ea364da638 env/memory: use stack variable when unmapping the dma region
When enable Werror compile option with new kernel(v5.8), there is
following error reported due to the <linux/vfio.h> data structure
change(added a uint8_t data[] variable in new kernel), we can just
put the 'unmap' at the end of the data structure to fix the issue,
I think it's better to just use a stack variable instead.

CC lib/env_dpdk/memory.o
memory.c:63:36: error: field 'unmap' with variable sized type 'struct vfio_iommu_type1_dma_unmap' not
at the end of a struct or class is a GNU extension [-Werror,-Wgnu-variable-sized-type-not-at-end]
struct vfio_iommu_type1_dma_unmap unmap;
^
1 error generated.

Signed-off-by: Changpeng Liu <changpeng.liu@intel.com>
Reviewed-on: https://review.spdk.io/gerrit/c/spdk/spdk/+/4925 (master)

(cherry picked from commit 2c9b5b5af5)
Change-Id: Icf73a3c48a301e74b92b9ae2e2d8715262b2d056
Signed-off-by: Tomasz Zawadzki <tomasz.zawadzki@intel.com>
Reviewed-on: https://review.spdk.io/gerrit/c/spdk/spdk/+/4938
Reviewed-by: Jim Harris <james.r.harris@intel.com>
Reviewed-by: Shuhei Matsumoto <shuhei.matsumoto.xt@hitachi.com>
Reviewed-by: Aleksey Marchuk <alexeymar@mellanox.com>
Tested-by: SPDK CI Jenkins <sys_sgci@intel.com>
2020-10-29 08:09:24 +00:00
..
accel accel: Move non-engine specific batch to the accel_fw layer 2020-10-22 22:43:28 +00:00
bdev bdev_module: remove config_text 2020-10-21 02:25:45 +00:00
blob lib/blob: extent_page shall never occupy md page 0 2020-10-16 08:15:16 +00:00
blobfs lib/blobfs: remove legacy config support 2020-10-20 02:42:16 +00:00
conf lib/event: remove legacy configuration from event framework 2020-10-22 17:08:41 +00:00
env_dpdk env/memory: use stack variable when unmapping the dma region 2020-10-29 08:09:24 +00:00
env_ocf log: remove internal log.h header 2020-10-15 08:23:39 +00:00
event reactor: check calloc failure in gather_metrics 2020-10-28 15:03:17 +00:00
ftl log: remove internal log.h header 2020-10-15 08:23:39 +00:00
idxd lib/idxd: small code cleanup 2020-10-22 22:43:28 +00:00
ioat log: remove internal log.h header 2020-10-15 08:23:39 +00:00
iscsi subsystem/iscsi: remove legacy config support 2020-10-20 08:53:53 +00:00
json json: add spdk_json_free_object() 2020-10-19 10:02:10 +00:00
jsonrpc log: remove internal log.h header 2020-10-15 08:23:39 +00:00
log log: remove internal log.h header 2020-10-15 08:23:39 +00:00
lvol log: remove internal log.h header 2020-10-15 08:23:39 +00:00
nbd nbd: apply interrupt 2020-10-23 16:23:48 +00:00
net log: remove internal log.h header 2020-10-15 08:23:39 +00:00
notify log: remove internal log.h header 2020-10-15 08:23:39 +00:00
nvme nvme: Don't log an error when we can't resubmit all requests 2020-10-28 08:09:03 +00:00
nvmf nvmf/tcp: Align recv_buf_size to MIN_SOC_PIPE_SIZE 2020-10-28 08:08:37 +00:00
rdma log: remove internal log.h header 2020-10-15 08:23:39 +00:00
reduce log: remove internal log.h header 2020-10-15 08:23:39 +00:00
rocksdb rocksdb/env_spdk: Fix unused warning. 2020-10-29 08:09:09 +00:00
rpc RPC: update the error message for current RPC state 2020-07-31 08:21:37 +00:00
scsi log: remove internal log.h header 2020-10-15 08:23:39 +00:00
sock log: remove internal log.h header 2020-10-15 08:23:39 +00:00
thread thread: fix warning caused by intr 2020-10-27 15:43:46 +00:00
trace log: remove internal log.h header 2020-10-15 08:23:39 +00:00
ut_mock mk/lib: add a check that major and minor version is set for libs. 2020-05-21 09:19:00 +00:00
util interrupt: new fd_group in lib/util 2020-10-23 16:23:48 +00:00
vhost lib/vhost: remove legacy config support 2020-10-20 02:42:16 +00:00
virtio vhost: deprecate internal vhost library support 2020-10-20 02:42:16 +00:00
vmd log: remove internal log.h header 2020-10-15 08:23:39 +00:00
Makefile vhost: deprecate internal vhost library support 2020-10-20 02:42:16 +00:00