Skip to content

Commit f326b21

Browse files
committed
cleanup: rename _cleanup_uri_ to __cleanup_uri
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 24cda3d commit f326b21

3 files changed

Lines changed: 3 additions & 3 deletions

File tree

libnvme/src/nvme/cleanup.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,6 @@ static inline void free_uri(struct libnvme_fabrics_uri **uri)
5252
if (*uri)
5353
libnvmf_free_uri(*uri);
5454
}
55-
#define _cleanup_uri_ __cleanup(free_uri)
55+
#define __cleanup_uri __cleanup(free_uri)
5656

5757
#endif

libnvme/src/nvme/fabrics.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2895,7 +2895,7 @@ __public int libnvmf_discovery_nbft(struct libnvme_global_ctx *ctx,
28952895

28962896
/* Discovery Descriptor List */
28972897
for (dd = entry->nbft->discovery_list; dd && *dd; dd++) {
2898-
_cleanup_uri_ struct libnvme_fabrics_uri *uri = NULL;
2898+
__cleanup_uri struct libnvme_fabrics_uri *uri = NULL;
28992899
__cleanup_free char *trsvcid = NULL;
29002900
struct libnvmf_context nfctx = *fctx;
29012901
bool persistent = false;

util/cleanup.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ static inline void free_uri(struct libnvme_fabrics_uri **uri)
5151
if (*uri)
5252
libnvmf_free_uri(*uri);
5353
}
54-
#define _cleanup_uri_ __cleanup(free_uri)
54+
#define __cleanup_uri __cleanup(free_uri)
5555

5656
static inline void cleanup_nvmf_context(struct libnvmf_context **fctx)
5757
{

0 commit comments

Comments
 (0)