diff for duplicates of <52C6B3C8.7040509@suse.cz> diff --git a/a/1.txt b/N1/1.txt index f4026f7..24e9c8d 100644 --- a/a/1.txt +++ b/N1/1.txt @@ -47,7 +47,7 @@ Michal > +// Detection > +//---------------------------------------------------------- > + -> + at runtime_bad_err_handle exists@ +> +@runtime_bad_err_handle exists@ > +expression ret; > +@@ > +( @@ -79,7 +79,7 @@ Michal > +// For context mode > +//---------------------------------------------------------- > + -> + at depends on runtime_bad_err_handle && context@ +> +@depends on runtime_bad_err_handle && context@ > +identifier pm_runtime_api; > +expression ret; > +@@ @@ -94,7 +94,7 @@ Michal > +// For patch mode > +//---------------------------------------------------------- > + -> + at depends on runtime_bad_err_handle && patch@ +> +@depends on runtime_bad_err_handle && patch@ > +identifier pm_runtime_api; > +expression ret; > +@@ @@ -110,19 +110,19 @@ Michal > +// For org and report mode > +//---------------------------------------------------------- > + -> + at r depends on runtime_bad_err_handle exists@ +> +@r depends on runtime_bad_err_handle exists@ > +position p1, p2; > +identifier pm_runtime_api; > +expression ret; > +@@ > +( -> +ret = pm_runtime_api at p1(...); +> +ret = pm_runtime_api@p1(...); > +... -> +IS_ERR_VALUE at p2(ret) +> +IS_ERR_VALUE@p2(ret) > +... > +) > + -> + at script:python depends on org@ +> +@script:python depends on org@ > +p1 << r.p1; > +p2 << r.p2; > +pm_runtime_api << r.pm_runtime_api; @@ -131,12 +131,12 @@ Michal > +cocci.print_main(pm_runtime_api,p1) > +cocci.print_secs("IS_ERR_VALUE",p2) > + -> + at script:python depends on report@ +> +@script:python depends on report@ > +p1 << r.p1; > +p2 << r.p2; > +pm_runtime_api << r.pm_runtime_api; > +@@ > + -> +msg = "%s returns < 0 as error. Unecessary IS_ERR_VALUE@line %s" % (pm_runtime_api, p2[0].line) +> +msg = "%s returns < 0 as error. Unecessary IS_ERR_VALUE at line %s" % (pm_runtime_api, p2[0].line) > +coccilib.report.print_report(p1[0],msg) > diff --git a/a/content_digest b/N1/content_digest index a9362a2..bae32d3 100644 --- a/a/content_digest +++ b/N1/content_digest @@ -1,8 +1,16 @@ "ref\01385991581-16843-1-git-send-email-nm@ti.com\0" - "From\0mmarek@suse.cz (Michal Marek)\0" - "Subject\0[Cocci] [PATCH resend] scripts: Coccinelle script for pm_runtime_* return checks with IS_ERR_VALUE\0" + "From\0Michal Marek <mmarek@suse.cz>\0" + "Subject\0Re: [PATCH resend] scripts: Coccinelle script for pm_runtime_* return checks with IS_ERR_VALUE\0" "Date\0Fri, 03 Jan 2014 13:57:44 +0100\0" - "To\0cocci@systeme.lip6.fr\0" + "To\0Nishanth Menon <nm@ti.com>" + Julia.Lawall@lip6.fr + Gilles.Muller@lip6.fr + " nicolas.palix@imag.fr\0" + "Cc\0linux-kernel@vger.kernel.org" + cocci@systeme.lip6.fr + linux-pm@vger.kernel.org + Sekhar Nori <nsekhar@ti.com> + " Russell King <rmk+kernel@arm.linux.org.uk>\0" "\00:1\0" "b\0" "On 2013-12-02 14:39, Nishanth Menon wrote:\n" @@ -54,7 +62,7 @@ "> +// Detection\n" "> +//----------------------------------------------------------\n" "> +\n" - "> + at runtime_bad_err_handle exists@\n" + "> +@runtime_bad_err_handle exists@\n" "> +expression ret;\n" "> +@@\n" "> +(\n" @@ -86,7 +94,7 @@ "> +// For context mode\n" "> +//----------------------------------------------------------\n" "> +\n" - "> + at depends on runtime_bad_err_handle && context@\n" + "> +@depends on runtime_bad_err_handle && context@\n" "> +identifier pm_runtime_api;\n" "> +expression ret;\n" "> +@@\n" @@ -101,7 +109,7 @@ "> +// For patch mode\n" "> +//----------------------------------------------------------\n" "> +\n" - "> + at depends on runtime_bad_err_handle && patch@\n" + "> +@depends on runtime_bad_err_handle && patch@\n" "> +identifier pm_runtime_api;\n" "> +expression ret;\n" "> +@@\n" @@ -117,19 +125,19 @@ "> +// For org and report mode\n" "> +//----------------------------------------------------------\n" "> +\n" - "> + at r depends on runtime_bad_err_handle exists@\n" + "> +@r depends on runtime_bad_err_handle exists@\n" "> +position p1, p2;\n" "> +identifier pm_runtime_api;\n" "> +expression ret;\n" "> +@@\n" "> +(\n" - "> +ret = pm_runtime_api at p1(...);\n" + "> +ret = pm_runtime_api@p1(...);\n" "> +...\n" - "> +IS_ERR_VALUE at p2(ret)\n" + "> +IS_ERR_VALUE@p2(ret)\n" "> +...\n" "> +)\n" "> +\n" - "> + at script:python depends on org@\n" + "> +@script:python depends on org@\n" "> +p1 << r.p1;\n" "> +p2 << r.p2;\n" "> +pm_runtime_api << r.pm_runtime_api;\n" @@ -138,14 +146,14 @@ "> +cocci.print_main(pm_runtime_api,p1)\n" "> +cocci.print_secs(\"IS_ERR_VALUE\",p2)\n" "> +\n" - "> + at script:python depends on report@\n" + "> +@script:python depends on report@\n" "> +p1 << r.p1;\n" "> +p2 << r.p2;\n" "> +pm_runtime_api << r.pm_runtime_api;\n" "> +@@\n" "> +\n" - "> +msg = \"%s returns < 0 as error. Unecessary IS_ERR_VALUE@line %s\" % (pm_runtime_api, p2[0].line)\n" + "> +msg = \"%s returns < 0 as error. Unecessary IS_ERR_VALUE at line %s\" % (pm_runtime_api, p2[0].line)\n" "> +coccilib.report.print_report(p1[0],msg)\n" > -55947ef711e2dc1b36feb107cacdc2fba95e765cecd64161d9c15864c4d889eb +42cef91f35f9d406d3d975b10c98dbc84ea3d3f390ed5ce6ee94c02f84bfbfb9
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.