[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <alpine.DEB.2.21.1909280542490.2168@hadrien>
Date: Sat, 28 Sep 2019 05:43:57 -0700 (PDT)
From: Julia Lawall <julia.lawall@...6.fr>
To: YueHaibing <yuehaibing@...wei.com>
cc: Gilles Muller <Gilles.Muller@...6.fr>, nicolas.palix@...g.fr,
michal.lkml@...kovi.net, maennich@...gle.com,
gregkh@...uxfoundation.org, linux-kernel@...r.kernel.org,
cocci@...teme.lip6.fr
Subject: Re: [RFC PATCH] scripts: Fix coccicheck failed
On Sat, 28 Sep 2019, YueHaibing wrote:
> Run make coccicheck, I got this:
>
> spatch -D patch --no-show-diff --very-quiet --cocci-file
> ./scripts/coccinelle/misc/add_namespace.cocci --dir .
> -I ./arch/x86/include -I ./arch/x86/include/generated
> -I ./include -I ./arch/x86/include/uapi
> -I ./arch/x86/include/generated/uapi -I ./include/uapi
> -I ./include/generated/uapi --include ./include/linux/kconfig.h
> --jobs 192 --chunksize 1
>
> virtual rule patch not supported
> coccicheck failed
>
> It seems add_namespace.cocci cannot be called in coccicheck.
Could you explain the issue better? Does the current state cause make
coccicheck to fail? Or is it just silently not being called?
thanks,
julia
>
> Fixes: eb8305aecb95 ("scripts: Coccinelle script for namespace dependencies.")
> Signed-off-by: YueHaibing <yuehaibing@...wei.com>
> ---
> scripts/{coccinelle/misc => }/add_namespace.cocci | 0
> scripts/nsdeps | 2 +-
> 2 files changed, 1 insertion(+), 1 deletion(-)
> rename scripts/{coccinelle/misc => }/add_namespace.cocci (100%)
>
> diff --git a/scripts/coccinelle/misc/add_namespace.cocci b/scripts/add_namespace.cocci
> similarity index 100%
> rename from scripts/coccinelle/misc/add_namespace.cocci
> rename to scripts/add_namespace.cocci
> diff --git a/scripts/nsdeps b/scripts/nsdeps
> index ac2b6031dd13..0f743b76e501 100644
> --- a/scripts/nsdeps
> +++ b/scripts/nsdeps
> @@ -23,7 +23,7 @@ fi
>
> generate_deps_for_ns() {
> $SPATCH --very-quiet --in-place --sp-file \
> - $srctree/scripts/coccinelle/misc/add_namespace.cocci -D ns=$1 $2
> + $srctree/scripts/add_namespace.cocci -D ns=$1 $2
> }
>
> generate_deps() {
> --
> 2.20.1
>
>
>
Powered by blists - more mailing lists