diff --git a/arch/arm/src/stm32f7/stm32_sdmmc.c b/arch/arm/src/stm32f7/stm32_sdmmc.c index 65cb28deb08..4d31696e2ad 100644 --- a/arch/arm/src/stm32f7/stm32_sdmmc.c +++ b/arch/arm/src/stm32f7/stm32_sdmmc.c @@ -2967,6 +2967,7 @@ static int stm32_registercallback(FAR struct sdio_dev_s *dev, static int stm32_dmapreflight(FAR struct sdio_dev_s *dev, FAR const uint8_t *buffer, size_t buflen) { +#ifdef CONFIG_STM32F7_DMACAPABLE struct stm32_dev_s *priv = (struct stm32_dev_s *)dev; DEBUGASSERT(priv != NULL && buffer != NULL && buflen > 0); @@ -2978,6 +2979,7 @@ static int stm32_dmapreflight(FAR struct sdio_dev_s *dev, { return -EFAULT; } +#endif return 0; } diff --git a/configs/stm32f769i-disco/src/stm32_bringup.c b/configs/stm32f769i-disco/src/stm32_bringup.c index 0789d899264..cf7c9a5a335 100644 --- a/configs/stm32f769i-disco/src/stm32_bringup.c +++ b/configs/stm32f769i-disco/src/stm32_bringup.c @@ -70,6 +70,7 @@ int stm32_bringup(void) { int ret = OK; +#ifdef CONFIG_FS_PROCFS #ifdef CONFIG_STM32_CCM_PROCFS /* Register the CCM procfs entry. This must be done before the procfs is * mounted. @@ -80,11 +81,11 @@ int stm32_bringup(void) /* Mount the procfs file system */ - ret = mount(NULL, SAMV71_PROCFS_MOUNTPOINT, "procfs", 0, NULL); + ret = mount(NULL, STM32_PROCFS_MOUNTPOINT, "procfs", 0, NULL); if (ret < 0) { - SYSLOG(LOG_ERR, "ERROR: Failed to mount procfs at %s: %d\n", - SAMV71_PROCFS_MOUNTPOINT, ret); + syslog(LOG_ERR, "ERROR: Failed to mount procfs at %s: %d\n", + STM32_PROCFS_MOUNTPOINT, ret); } #endif