Skip to content

Commit 0ef8238

Browse files
mi: make private-mi.h include conditional on MI support
MI support was made optional, but lib.c still included private-mi.h unconditionally. Made include contitional based on MI support. Signed-off-by: Broc Going <[email protected]>
1 parent 6d68ddc commit 0ef8238

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

libnvme/src/nvme/lib.c

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,11 @@
2424
#include "cleanup.h"
2525
#include "cleanup-linux.h"
2626
#include "private.h"
27+
28+
#ifdef CONFIG_MI
2729
#include "private-mi.h"
30+
#endif
31+
2832
#include "compiler-attributes.h"
2933

3034
static bool libnvme_mi_probe_enabled_default(void)

0 commit comments

Comments
 (0)