Re: backports spatch question

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Thu, 2021-07-01 at 14:39 -0700, Ben Greear wrote:
> Hello,
> 
> I'm trying to get backports to work against my 5.13 kernel.  I'm executing
> this attempt on a Fedora-34 system, freshly updated.
> 
> I am stuck on an spatch thing:
> 
> [greearb@v-f34-64 backports]$ mkdir /tmp/x
> [greearb@v-f34-64 backports]$ spatch --sp-file patches/0049-no-pfmemalloc/no-pfmemalloc.cocci --dir /tmp/x
> init_defs_builtins: /usr/lib64/coccinelle/standard.h
> minus: parse error:
>    File "patches/0049-no-pfmemalloc/no-pfmemalloc.cocci", line 7, column 4, charpos = 90
>    around = 'page_is_pfmemalloc',
>    whole content =  || page_is_pfmemalloc(page)
> 
> 
> [greearb@v-f34-64 backports]$ cat patches/0049-no-pfmemalloc/no-pfmemalloc.cocci
> @r1@
> struct page *page;
> expression E1;
> @@
>   return E1
> +#if LINUX_VERSION_IS_GEQ(3,6,0)
>   || page_is_pfmemalloc(page)
> +#endif /* if LINUX_VERSION_IS_GEQ(3,6,0) */
>   ;
> 
> 
> Any idea how to fix this?

What's your spatch version on that system?

johannes

--
To unsubscribe from this list: send the line "unsubscribe backports" in



[Index of Archives]     [Linux ARM Kernel]     [Linux ARM]     [Linux Omap]     [Fedora ARM]     [IETF Annouce]     [Security]     [Bugtraq]     [Linux]     [Linux OMAP]     [Linux MIPS]     [ECOS]     [Asterisk Internet PBX]     [Linux API]

  Powered by Linux