Skip to content

Commit 78220d3

Browse files
authored
Merge pull request #261 from martin-belanger/move-ccan-out-of-public-headers
Move ccan definitions out of public headers.
2 parents 16abb44 + d43a9f7 commit 78220d3

2 files changed

Lines changed: 7 additions & 6 deletions

File tree

src/nvme/util.c

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -759,3 +759,9 @@ size_t get_entity_version(char *buffer, size_t bufsz)
759759

760760
return num_bytes;
761761
}
762+
763+
struct nvmf_ext_attr *nvmf_exat_ptr_next(struct nvmf_ext_attr *p)
764+
{
765+
return (struct nvmf_ext_attr *)
766+
((uintptr_t)p + (ptrdiff_t)nvmf_exat_size(le16_to_cpu(p->exatlen)));
767+
}

src/nvme/util.h

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,6 @@
1010
#define _LIBNVME_UTIL_H
1111

1212
#include "types.h"
13-
#include <ccan/endian/endian.h>
1413

1514
/**
1615
* DOC: util.h
@@ -548,10 +547,6 @@ static inline __u16 nvmf_exat_size(size_t val_len)
548547
*
549548
* Return: Pointer to the next element in the array.
550549
*/
551-
static inline struct nvmf_ext_attr *nvmf_exat_ptr_next(struct nvmf_ext_attr *p)
552-
{
553-
return (struct nvmf_ext_attr *)
554-
((uintptr_t)p + (ptrdiff_t)nvmf_exat_size(le16_to_cpu(p->exatlen)));
555-
}
550+
struct nvmf_ext_attr *nvmf_exat_ptr_next(struct nvmf_ext_attr *p);
556551

557552
#endif /* _LIBNVME_UTIL_H */

0 commit comments

Comments
 (0)