Re: [PATCH] powerpc: Fix duplicate included _clear.h
From: Michael Ellerman
Date: Mon Jun 07 2021 - 22:26:54 EST
Jiapeng Chong <jiapeng.chong@xxxxxxxxxxxxxxxxx> writes:
> Clean up the following includecheck warning:
>
> ./arch/powerpc/perf/req-gen/perf.h: _clear.h is included more than once.
That's by design.
See the error reported by the kbuild robot.
> No functional change.
Not true.
cheers
> Reported-by: Abaci Robot <abaci@xxxxxxxxxxxxxxxxx>
> Signed-off-by: Jiapeng Chong <jiapeng.chong@xxxxxxxxxxxxxxxxx>
> ---
> arch/powerpc/perf/req-gen/perf.h | 1 -
> 1 file changed, 1 deletion(-)
>
> diff --git a/arch/powerpc/perf/req-gen/perf.h b/arch/powerpc/perf/req-gen/perf.h
> index fa9bc80..59fa588 100644
> --- a/arch/powerpc/perf/req-gen/perf.h
> +++ b/arch/powerpc/perf/req-gen/perf.h
> @@ -51,7 +51,6 @@ enum CAT2(NAME_LOWER, _requests) {
> * r_fields
> * };
> */
> -#include "_clear.h"
> #define STRUCT_NAME__(name_lower, r_name) name_lower ## _ ## r_name
> #define STRUCT_NAME_(name_lower, r_name) STRUCT_NAME__(name_lower, r_name)
> #define STRUCT_NAME(r_name) STRUCT_NAME_(NAME_LOWER, r_name)
> --
> 1.8.3.1