Skip to content

Commit c4ab47f

Browse files
committed
nbft: move nbft_file_entry to nbft header
The nbft_info is defined in nbft thus move the linked list also there. This decouples the dependencies between nbft.h and fabrics.h Signed-off-by: Daniel Wagner <wagi@kernel.org>
1 parent 958609b commit c4ab47f

2 files changed

Lines changed: 12 additions & 9 deletions

File tree

libnvme/src/nvme/fabrics.h

Lines changed: 1 addition & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -645,15 +645,7 @@ int nvmf_connect_config_json(struct nvme_global_ctx *ctx,
645645
int nvmf_config_modify(struct nvme_global_ctx *ctx,
646646
struct nvmf_context *fctx);
647647

648-
/**
649-
* struct nbft_file_entry - Linked list entry for NBFT files
650-
* @next: Pointer to next entry
651-
* @nbft: Pointer to NBFT info structure
652-
*/
653-
struct nbft_file_entry {
654-
struct nbft_file_entry *next;
655-
struct nbft_info *nbft;
656-
};
648+
struct nbft_file_entry;
657649

658650
/**
659651
* nvmf_nbft_read_files() - Read NBFT files from path

libnvme/src/nvme/nbft.h

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1254,3 +1254,14 @@ int nvme_nbft_read(struct nvme_global_ctx *ctx, struct nbft_info **nbft,
12541254
* @nbft: Parsed NBFT table data.
12551255
*/
12561256
void nvme_nbft_free(struct nvme_global_ctx *ctx, struct nbft_info *nbft);
1257+
1258+
/**
1259+
* struct nbft_file_entry - Linked list entry for NBFT files
1260+
* @next: Pointer to next entry
1261+
* @nbft: Pointer to NBFT info structure
1262+
*/
1263+
struct nbft_file_entry {
1264+
struct nbft_file_entry *next;
1265+
struct nbft_info *nbft;
1266+
};
1267+

0 commit comments

Comments
 (0)