Skip to content

Commit d43a9f7

Browse files
author
Martin Belanger
committed
Move ccan definitions out of public headers.
Signed-off-by: Martin Belanger <[email protected]>
1 parent 16abb44 commit d43a9f7

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)