+6
−0
+14
−23
+19
−53
Loading
`phys_addr` parameter was deprecated in SPDK 19.04 and it's use was discouraged with additional error logs. Parameters cannot really be removed, this would be the same as adding new function and removing old one, without any deprecation period. There are quite a few spdk_*_malloc() functions and their usage is quite broad. Adding another set of such functions [ex. spdk_*_malloc_without_phys_addr()] would bloat the API. Instead this patch proposes to change behaviour when `phys_addr` is provided. Passing non-NULL parameter would return NULL. This enforces the suggested use of spdk_vtophys(). Signed-off-by:Tomasz Zawadzki <tomasz.zawadzki@intel.com> Change-Id: I0b83b220a04af8a2c1fa0bfe7838ec9d5f857ec0 Reviewed-on: https://review.spdk.io/gerrit/c/spdk/spdk/+/6875 Reviewed-by:
Konrad Sztyber <konrad.sztyber@intel.com> Tested-by:
SPDK CI Jenkins <sys_sgci@intel.com> Reviewed-by:
Krzysztof Karas <krzysztof.karas@intel.com> Reviewed-by:
Aleksey Marchuk <alexeymar@nvidia.com> Community-CI: Mellanox Build Bot