Message ID | 3d6e9fdff41d56b50ce0b20a9b9ad9bbf5a2b634.1699675570.git.msakai@redhat.com (mailing list archive) |
---|---|
State | New, archived |
Headers | show |
Series | [1/8] dm vdo memory-alloc: remove UDS_ALLOCATE_NOWAIT macro | expand |
diff --git a/drivers/md/dm-vdo/memory-alloc.c b/drivers/md/dm-vdo/memory-alloc.c index 81069698dd5a..136a19db33be 100644 --- a/drivers/md/dm-vdo/memory-alloc.c +++ b/drivers/md/dm-vdo/memory-alloc.c @@ -319,7 +319,7 @@ void *uds_allocate_memory_nowait(size_t size, const char *what __maybe_unused) return p; } -void uds_free_memory(void *ptr) +void uds_free(void *ptr) { if (ptr != NULL) { if (is_vmalloc_addr(ptr)) { diff --git a/drivers/md/dm-vdo/memory-alloc.h b/drivers/md/dm-vdo/memory-alloc.h index 1429d5173dbd..76789f357e00 100644 --- a/drivers/md/dm-vdo/memory-alloc.h +++ b/drivers/md/dm-vdo/memory-alloc.h @@ -16,10 +16,8 @@ int __must_check uds_allocate_memory(size_t size, size_t align, const char *what, void *ptr); -void uds_free_memory(void *ptr); - /* Free memory allocated with uds_allocate(). */ -#define uds_free(PTR) uds_free_memory(PTR) +void uds_free(void *ptr); static inline void *__uds_forget(void **ptr_ptr) {