[PATCH] platform: andes/ae350: Avoid repeated inclusion of header files

Bin Meng bmeng.cn at gmail.com
Wed Nov 16 00:47:36 PST 2022


On Wed, Nov 16, 2022 at 3:29 PM <zhangleizheng at eswincomputing.com> wrote:
>
> From: zhangleizheng <zhangleizheng at eswincomputing.com>
>
> Avoid cache.h reuse when compiling.
>
> Signed-off-by: zhangleizheng <zhangleizheng at eswincomputing.com>

nits: use "First Name" "Last Name" as the git.user.name

> ---
>  platform/andes/ae350/cache.h | 5 +++++
>  1 file changed, 5 insertions(+)
>
> diff --git a/platform/andes/ae350/cache.h b/platform/andes/ae350/cache.h
> index e1c1826..8e00a1d 100644
> --- a/platform/andes/ae350/cache.h
> +++ b/platform/andes/ae350/cache.h
> @@ -7,6 +7,9 @@
>   *   Nylon Chen <nylon7 at andestech.com>
>   */
>
> +#ifndef _AE350_CACHE_H_
> +#define _AE350_CACHE_H_
> +
>  uintptr_t mcall_set_mcache_ctl(unsigned long input);
>  uintptr_t mcall_set_mmisc_ctl(unsigned long input);
>  uintptr_t mcall_icache_op(unsigned int enable);
> @@ -15,3 +18,5 @@ uintptr_t mcall_l1_cache_i_prefetch_op(unsigned long enable);
>  uintptr_t mcall_l1_cache_d_prefetch_op(unsigned long enable);
>  uintptr_t mcall_non_blocking_load_store(unsigned long enable);
>  uintptr_t mcall_write_around(unsigned long enable);
> +
> +#endif /* _AE350_CACHE_H_ */
> --

Otherwise,
Reviewed-by: Bin Meng <bmeng at tinylab.org>



More information about the opensbi mailing list