From 1787a8143ee405ca0b64b7e6f9466893d388036e Mon Sep 17 00:00:00 2001 From: Gregory Nutt Date: Tue, 1 Nov 2016 14:18:21 -0600 Subject: [PATCH] Misoc: Logic on common directory should not include ANY lm32 specific header file. The generic header file chip.h can be exported by all architectures and that is what should be included instead of lm32.h which is an inappropriate dependency. --- arch/misoc/src/common/misoc_uart.c | 3 +-- arch/misoc/src/lm32/chip.h | 6 ++++++ 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/arch/misoc/src/common/misoc_uart.c b/arch/misoc/src/common/misoc_uart.c index 77410f5071d..76cdd487034 100644 --- a/arch/misoc/src/common/misoc_uart.c +++ b/arch/misoc/src/common/misoc_uart.c @@ -59,10 +59,9 @@ #include #include "hw/flags.h" -#include "chip.h" #include "misoc_uart.h" -#include "lm32.h" +#include "chip.h" /**************************************************************************** * Pre-processor Definitions diff --git a/arch/misoc/src/lm32/chip.h b/arch/misoc/src/lm32/chip.h index 0683bd5a282..bdb8823c5a2 100644 --- a/arch/misoc/src/lm32/chip.h +++ b/arch/misoc/src/lm32/chip.h @@ -36,6 +36,12 @@ #ifndef __ARCH_MISOC_SRC_LM32_CHIP_H #define __ARCH_MISOC_SRC_LM32_CHIP_H 1 +/**************************************************************************** + * Inline Functions + ****************************************************************************/ + +#include "lm32.h" + /**************************************************************************** * Inline Functions ****************************************************************************/