diff --git a/drivers/mmcsd/mmcsd_debug.c b/drivers/mmcsd/mmcsd_debug.c index 817c0272c1c..62cec090203 100644 --- a/drivers/mmcsd/mmcsd_debug.c +++ b/drivers/mmcsd/mmcsd_debug.c @@ -85,7 +85,9 @@ void mmcsd_dmpcsd(FAR const uint8_t *csd, uint8_t cardtype) { bool mmc = (cardtype == MMCSD_CARDTYPE_MMC); +#if defined(CONFIG_DEBUG_FS_INFO) bool sd2 = (MMCSD_CSD_CSDSTRUCT(csd) == 1); +#endif finfo("CSD\n"); finfo(" CSD_STRUCTURE: 1.%d\n", MMCSD_CSD_CSDSTRUCT(csd)); diff --git a/drivers/syslog/syslog_console.c b/drivers/syslog/syslog_console.c index 0771a04562c..422e16a166c 100644 --- a/drivers/syslog/syslog_console.c +++ b/drivers/syslog/syslog_console.c @@ -47,6 +47,8 @@ #include #include +#include "syslog.h" + /**************************************************************************** * Private Function Prototypes ****************************************************************************/ diff --git a/fs/procfs/fs_procfsmeminfo.c b/fs/procfs/fs_procfsmeminfo.c index b6010aedc5b..abcf52aac16 100644 --- a/fs/procfs/fs_procfsmeminfo.c +++ b/fs/procfs/fs_procfsmeminfo.c @@ -54,6 +54,7 @@ #include #include +#include #include #include #include