diff --git a/arch/arm/src/common/up_initialize.c b/arch/arm/src/common/up_initialize.c index 2cb332671b..b6109e1c9b 100644 --- a/arch/arm/src/common/up_initialize.c +++ b/arch/arm/src/common/up_initialize.c @@ -44,6 +44,7 @@ #include #include #include +#include #include #include #include @@ -203,6 +204,9 @@ void up_initialize(void) devzero_register(); /* Standard /dev/zero */ #endif +#if defined(CONFIG_DEV_LOOP) + loop_register(); /* Standard /dev/loop */ +#endif #endif /* CONFIG_NFILE_DESCRIPTORS */ /* Initialize the serial device driver */ diff --git a/arch/avr/src/common/up_initialize.c b/arch/avr/src/common/up_initialize.c index f44b421c6d..f6273cb4e9 100644 --- a/arch/avr/src/common/up_initialize.c +++ b/arch/avr/src/common/up_initialize.c @@ -43,6 +43,7 @@ #include #include +#include #include #include #include @@ -235,6 +236,9 @@ void up_initialize(void) devzero_register(); /* Standard /dev/zero */ #endif +#if defined(CONFIG_DEV_LOOP) + loop_register(); /* Standard /dev/loop */ +#endif #endif /* CONFIG_NFILE_DESCRIPTORS */ /* Initialize the serial device driver */ diff --git a/arch/hc/src/common/up_initialize.c b/arch/hc/src/common/up_initialize.c index 5628c3aaec..6b2495f728 100644 --- a/arch/hc/src/common/up_initialize.c +++ b/arch/hc/src/common/up_initialize.c @@ -44,6 +44,7 @@ #include #include #include +#include #include #include #include @@ -159,6 +160,9 @@ void up_initialize(void) devzero_register(); /* Standard /dev/zero */ #endif +#if defined(CONFIG_DEV_LOOP) + loop_register(); /* Standard /dev/loop */ +#endif #endif /* CONFIG_NFILE_DESCRIPTORS */ /* Initialize the serial device driver */ diff --git a/arch/mips/src/common/up_initialize.c b/arch/mips/src/common/up_initialize.c index 1274772249..3588057b1d 100644 --- a/arch/mips/src/common/up_initialize.c +++ b/arch/mips/src/common/up_initialize.c @@ -44,6 +44,7 @@ #include #include #include +#include #include #include #include @@ -161,6 +162,9 @@ void up_initialize(void) devzero_register(); /* Standard /dev/zero */ #endif +#if defined(CONFIG_DEV_LOOP) + loop_register(); /* Standard /dev/loop */ +#endif #endif /* CONFIG_NFILE_DESCRIPTORS */ /* Initialize the serial device driver */ diff --git a/arch/sh/src/common/up_initialize.c b/arch/sh/src/common/up_initialize.c index f4e067489f..3b19140ac0 100644 --- a/arch/sh/src/common/up_initialize.c +++ b/arch/sh/src/common/up_initialize.c @@ -44,6 +44,7 @@ #include #include #include +#include #include #include #include @@ -146,6 +147,9 @@ void up_initialize(void) devzero_register(); /* Standard /dev/zero */ #endif +#if defined(CONFIG_DEV_LOOP) + loop_register(); /* Standard /dev/loop */ +#endif #endif /* CONFIG_NFILE_DESCRIPTORS */ /* Initialize the serial device driver */ diff --git a/arch/sim/src/up_initialize.c b/arch/sim/src/up_initialize.c index 667a618d49..4bf85707a0 100644 --- a/arch/sim/src/up_initialize.c +++ b/arch/sim/src/up_initialize.c @@ -43,6 +43,7 @@ #include #include +#include #include #include #include @@ -149,6 +150,9 @@ void up_initialize(void) devzero_register(); /* Standard /dev/zero */ #endif +#if defined(CONFIG_DEV_LOOP) + loop_register(); /* Standard /dev/loop */ +#endif #endif /* CONFIG_NFILE_DESCRIPTORS */ #if defined(USE_DEVCONSOLE) diff --git a/arch/x86/src/common/up_initialize.c b/arch/x86/src/common/up_initialize.c index 21d4eba7cb..d395c2d654 100644 --- a/arch/x86/src/common/up_initialize.c +++ b/arch/x86/src/common/up_initialize.c @@ -44,6 +44,7 @@ #include #include #include +#include #include #include #include @@ -161,6 +162,9 @@ void up_initialize(void) devzero_register(); /* Standard /dev/zero */ #endif +#if defined(CONFIG_DEV_LOOP) + loop_register(); /* Standard /dev/loop */ +#endif #endif /* CONFIG_NFILE_DESCRIPTORS */ /* Initialize the serial device driver */ diff --git a/arch/z16/src/common/up_initialize.c b/arch/z16/src/common/up_initialize.c index 747d448b0c..2932c50f17 100644 --- a/arch/z16/src/common/up_initialize.c +++ b/arch/z16/src/common/up_initialize.c @@ -44,6 +44,7 @@ #include #include #include +#include #include #include #include @@ -165,6 +166,9 @@ void up_initialize(void) devzero_register(); /* Standard /dev/zero */ #endif +#if defined(CONFIG_DEV_LOOP) + loop_register(); /* Standard /dev/loop */ +#endif #endif /* CONFIG_NFILE_DESCRIPTORS */ /* Initialize the serial device driver */ diff --git a/arch/z80/src/common/up_initialize.c b/arch/z80/src/common/up_initialize.c index 2bc7420c39..67aad82a37 100644 --- a/arch/z80/src/common/up_initialize.c +++ b/arch/z80/src/common/up_initialize.c @@ -44,6 +44,7 @@ #include #include #include +#include #include #include @@ -157,6 +158,9 @@ void up_initialize(void) devzero_register(); /* Standard /dev/zero */ #endif +#if defined(CONFIG_DEV_LOOP) + loop_register(); /* Standard /dev/loop */ +#endif #endif /* CONFIG_NFILE_DESCRIPTORS */ /* Initialize the serial device driver */