Skip to content

Commit e2c77a7

Browse files
committed
cleanup: rename _cleanup_nvme_ctrl_ to __cleanup_nvme_ctrl
Follow the new naming pattern of the compiler attributes which is just __NAME. This is what the kernel is using as well. Signed-off-by: Daniel Wagner <[email protected]>
1 parent 2b96969 commit e2c77a7

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

fabrics.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -593,7 +593,7 @@ int fabrics_connect(const char *desc, int argc, char **argv)
593593
char *context = NULL;
594594
_cleanup_nvme_global_ctx_ struct libnvme_global_ctx *ctx = NULL;
595595
_cleanup_nvmf_context_ struct libnvmf_context *fctx = NULL;
596-
_cleanup_nvme_ctrl_ libnvme_ctrl_t c = NULL;
596+
__cleanup_nvme_ctrl libnvme_ctrl_t c = NULL;
597597
int ret;
598598
nvme_print_flags_t flags;
599599
struct libnvme_fabrics_config cfg = { 0 };

util/cleanup.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ static inline void cleanup_nvme_global_ctx(struct libnvme_global_ctx **ctx)
4343
#define _cleanup_nvme_global_ctx_ __cleanup(cleanup_nvme_global_ctx)
4444

4545
static inline DEFINE_CLEANUP_FUNC(cleanup_nvme_ctrl, libnvme_ctrl_t, libnvme_free_ctrl)
46-
#define _cleanup_nvme_ctrl_ __cleanup(cleanup_nvme_ctrl)
46+
#define __cleanup_nvme_ctrl __cleanup(cleanup_nvme_ctrl)
4747

4848
#ifdef CONFIG_FABRICS
4949
static inline void free_uri(struct libnvme_fabrics_uri **uri)

0 commit comments

Comments
 (0)