All of lore.kernel.org
 help / color / mirror / Atom feed
* [Cocci] Is list_entry/rcu2.cocci example from coccinellery broken?
@ 2015-04-20  9:14 Michal Kazior
  0 siblings, 0 replies; only message in thread
From: Michal Kazior @ 2015-04-20  9:14 UTC (permalink / raw)
  To: cocci

Hello,

I'm trying to learn spatch. While playing around I've hit a problem of
not being able to figure out how to rename hash_for_each_safe() in
Linux kernel. I've looked around and found an adequate example which
seemed to do what I'm interested in as well. However upon trying to
test it it fails:

 ; cd /usr/src/linux
 ; wget https://raw.githubusercontent.com/coccinelle/coccinellery/c53a020006e37c40f006c3ab2f016b76b0de4d01/list_entry/rcu2.cocci
 ; spatch --version
spatch version 1.0.0-rc24 with Python support and with PCRE support
 ; spatch --sp-file rcu2.cocci --dir .
init_defs_builtins: /usr/local/share/coccinelle/standard.h
1179 1196
Fatal error: exception Failure("minus: parse error:
 = File "rcu2.cocci", line 80, column 2,  charpos = 1179
    around = 'list_for_each_rcu', whole content = - list_for_each_rcu(_X(I),E1)
")

Is this known? Is this a bug in spatch or is the example out of date?
If it's the latter can anyone give me a hint how such a rename should
be done now?


Micha?

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2015-04-20  9:14 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-04-20  9:14 [Cocci] Is list_entry/rcu2.cocci example from coccinellery broken? Michal Kazior

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.