[PATCH] platform: generic/allwinner: Optimize header file location

Samuel Holland samuel at sholland.org
Thu Nov 17 07:04:32 PST 2022


On 11/17/22 01:17, zhangleizheng at eswincomputing.com wrote:
> From: Leizheng Zhang <zhangleizheng at eswincomputing.com>
> 
> Optimize sbi/sbi_console.h file location
> 
> Signed-off-by: Leizheng Zhang <zhangleizheng at eswincomputing.com>
> ---
>  platform/generic/allwinner/sun20i-d1.c | 3 +--
>  1 file changed, 1 insertion(+), 2 deletions(-)
> 
> diff --git a/platform/generic/allwinner/sun20i-d1.c b/platform/generic/allwinner/sun20i-d1.c
> index 6a502e5..d2a0f53 100644
> --- a/platform/generic/allwinner/sun20i-d1.c
> +++ b/platform/generic/allwinner/sun20i-d1.c
> @@ -7,6 +7,7 @@
>  #include <platform_override.h>
>  #include <thead_c9xx.h>
>  #include <sbi/riscv_io.h>
> +#include <sbi/sbi_console.h>

This header is not actually used anywhere in the file, so you can just
remove it.

Regards,
Samuel

>  #include <sbi/sbi_bitops.h>
>  #include <sbi/sbi_ecall_interface.h>
>  #include <sbi/sbi_error.h>
> @@ -201,8 +202,6 @@ static int sun20i_d1_final_init(bool cold_boot, const struct fdt_match *match)
>  	return 0;
>  }
>  
> -#include <sbi/sbi_console.h>
> -
>  static void thead_c9xx_pmu_ctr_enable_irq(uint32_t ctr_idx)
>  {
>  	unsigned long mip_val;




More information about the opensbi mailing list