2 /// Use ERR_CAST inlined function instead of ERR_PTR(PTR_ERR(...))
5 // Copyright: (C) 2009, 2010 Nicolas Palix, DIKU. GPLv2.
6 // Copyright: (C) 2009, 2010 Julia Lawall, DIKU. GPLv2.
7 // Copyright: (C) 2009, 2010 Gilles Muller, INRIA/LiP6. GPLv2.
8 // URL: http://coccinelle.lip6.fr/
11 // Keywords: ERR_PTR, PTR_ERR, ERR_CAST
12 // Version min: 2.6.25
21 @ depends on context && !patch && !org && !report@
27 @ depends on !context && patch && !org && !report @
34 @r depends on !context && !patch && (org || report)@
41 @script:python depends on org@
46 msg="WARNING ERR_CAST can be used with %s" % (x)
47 msg_safe=msg.replace("[","@(").replace("]",")")
48 coccilib.org.print_todo(p[0], msg_safe)
50 @script:python depends on report@
55 msg="WARNING: ERR_CAST can be used with %s" % (x)
56 coccilib.report.print_report(p[0], msg)