Home
last modified time | relevance | path

Searched refs:p1 (Results 1 – 25 of 36) sorted by relevance

12

/scripts/coccinelle/api/
Datomic_as_refcounter.cocci15 position p1, p2;
26 atomic_dec_and_test@p1(&(a)->x)
28 atomic_dec_and_lock@p1(&(a)->x, ...)
30 atomic_long_dec_and_lock@p1(&(a)->x, ...)
32 atomic_long_dec_and_test@p1(&(a)->x)
34 atomic64_dec_and_test@p1(&(a)->x)
36 local_dec_and_test@p1(&(a)->x)
55 p1 << r1.p1;
59 coccilib.report.print_report(p1[0], msg % (p2[0].line))
63 position p1, p2;
[all …]
Dplatform_get_irq.cocci65 position p1;
82 dev_err@p1(...);
86 dev_err@p1(...);
92 p1 << r.p1;
95 cocci.print_main(p1)
98 p1 << r.p1;
101 msg = "line %s is redundant because platform_get_irq() already prints an error" % (p1[0].line)
102 coccilib.report.print_report(p1[0],msg)
Dd_find_alias.cocci19 position p1, p2;
22 if (!(dent@p1 = d_find_alias(...))) S1
24 dent@p1 = d_find_alias(...)
46 position r.p1,r.p2;
48 * dent@p1 = ...
58 p1 << r.p1;
61 cocci.print_main("Missing call to dput()",p1)
77 p1 << r.p1;
81 coccilib.report.print_report(p1[0], msg % (p2[0].line))
Dkstrdup.cocci51 position p1,p2;
54 * to = kmalloc@p1(strlen(from) + 1,flag);
64 position p1,p2;
69 * to = \(kmalloc@p1\|kzalloc@p2\)(x,flag);
76 p1 << r1.p1;
80 cocci.print_main("WARNING opportunity for kstrdup",p1)
84 p1 << r2.p1;
88 cocci.print_main("WARNING opportunity for kstrdup",p1)
92 p1 << r1.p1;
97 coccilib.report.print_report(p1[0], msg)
[all …]
Dcheck_bq27xxx_data.cocci61 position p1;
64 u8 i1regs@p1[...] = { i1regs_vals, };
79 p1 << getregs1.p1;
90 print_report p1 msg
97 position p1;
100 struct bq27xxx_dm_reg i1dmregs@p1[] = { i1dmregs_vals, };
115 p1 << getdmregs1.p1;
126 print_report p1 msg
133 position p1;
136 enum power_supply_property i1props@p1[] = { i1props_vals, };
[all …]
Dpm_runtime.cocci86 position p1, p2;
92 ret@p = pm_runtime_api@p1(...);
99 p1 << r.p1;
104 cocci.print_main(pm_runtime_api,p1)
108 p1 << r.p1;
114 coccilib.report.print_report(p1[0],msg)
/scripts/coccinelle/locks/
Ddouble_lock.cocci18 position p1;
24 mutex_lock@p1
26 mutex_trylock@p1
28 spin_lock@p1
30 spin_trylock@p1
32 read_lock@p1
34 read_trylock@p1
36 write_lock@p1
38 write_trylock@p1
42 position p1 != locked.p1;
[all …]
Dmini_lock.cocci22 position p1,p;
27 mutex_lock@p1
29 mutex_trylock@p1
31 spin_lock@p1
33 spin_trylock@p1
35 read_lock@p1
37 read_trylock@p1
39 write_lock@p1
41 write_trylock@p1
43 read_lock_irq@p1
[all …]
Dflags.cocci18 position p1,p2;
22 spin_lock_irqsave@p1(lock1,flags)
24 read_lock_irqsave@p1(lock1,flags)
26 write_lock_irqsave@p1(lock1,flags)
46 position r.p1, r.p2;
50 *spin_lock_irqsave@p1(lock1,flags)
52 *read_lock_irqsave@p1(lock1,flags)
54 *write_lock_irqsave@p1(lock1,flags)
68 p1 << r.p1;
72 cocci.print_main("original lock",p1)
[all …]
Dcall_kern.cocci41 position p1,p2;
45 read_lock_irq@p1
47 write_lock_irq@p1
49 read_lock_irqsave@p1
51 write_lock_irqsave@p1
53 spin_lock@p1
55 spin_trylock@p1
57 spin_lock_irq@p1
59 spin_lock_irqsave@p1
61 local_irq_disable@p1
[all …]
/scripts/coccinelle/null/
Deno.cocci28 position p1,p2;
31 …= \(kmalloc@p1\|kzalloc@p1\|kcalloc@p1\|kmem_cache_alloc@p1\|kmem_cache_zalloc@p1\|kmem_cache_allo…
36 p1 << r.p1;
40 cocci.print_main("alloc call",p1)
44 p1 << r.p1;
48 msg = "ERROR: allocation function on line %s returns NULL not ERR_PTR on failure" % (p1[0].line)
Dderef_null.cocci23 position p1;
26 (E != NULL && ...) ? <+...E->f@p1...+> : ...
45 position p1;
48 if@p1 ((E == NULL && ...) || ...) S1 else S2
59 position p!={pr1.p1,pr2.p2};
60 position ifm.p1;
63 if@p1 ((E == NULL && ...) || ...)
94 p1 << ifm.p1;
104 p1 << ifm.p1;
120 position p!={pr1.p1,pr2.p2};
[all …]
Dkmerr.cocci32 position p1 != withtest.p;
38 *x@p1 = \(kmalloc\|kzalloc\|kcalloc\)(...);
47 position p1 != withtest.p;
54 x@p1 = \(kmalloc\|kzalloc\|kcalloc\)(...);
60 p1 << rfixed.p1;
64 cocci.print_main("alloc call",p1)
68 p1 << rfixed.p1;
73 coccilib.report.print_report(p1[0],msg)
/scripts/coccinelle/misc/
Dof_table.cocci53 position p1;
63 @p1
69 @p1
74 p1 << r.p1;
78 cocci.print_main(arr,p1)
81 p1 << r.p1;
85 msg = "%s is not NULL terminated at line %s" % (arr, p1[0].line)
86 coccilib.report.print_report(p1[0],msg)
Dcstptr.cocci19 position p1,p2;
22 *e@p1 = c
29 p1 << r.p1;
34 cocci.print_secs("assignment",p1)
37 p1 << r.p1;
41 msg = "ERROR: PTR_ERR applied after initialization to constant on line %s" % (p1[0].line)
Difcol.cocci23 position p1,p2;
30 if (...) S1@p1 S2@p2
34 p1 << r.p1;
38 if (p1[0].column == p2[0].column):
39 cocci.print_main("branch",p1)
43 p1 << r.p1;
47 if (p1[0].column == p2[0].column):
49 coccilib.report.print_report(p1[0],msg)
Dreturnvar.cocci45 position p1, p2;
47 T ret@p1 = C;
53 p1 << r1.p1;
58 coccilib.report.print_report(p1[0], "Unneeded variable: \"" + ret + "\". Return \"" + C + "\" on li…
61 p1 << r1.p1;
66 cocci.print_main("unneeded \"" + ret + "\" variable", p1)
/scripts/coccinelle/iterators/
Dlist_entry_update.cocci22 position p1,p2;
25 list_for_each_entry@p1(x,...) { <... x =@p2 E ...> }
29 position r.p1,r.p2;
35 list_for_each_entry@p1(x,...) S
41 position r.p1,r.p2;
47 list_for_each_entry@p1(x,...) S
50 p1 << r.p1;
54 cocci.print_main("iterator",p1)
58 p1 << r.p1;
63 coccilib.report.print_report(p1[0],msg)
Duse_after_iter.cocci38 position p1,p2;
43 list_for_each_entry@p1(c,...,member) { ... when != break;
48 list_for_each_entry_reverse@p1(c,...,member) { ... when != break;
53 list_for_each_entry_continue@p1(c,...,member) { ... when != break;
58 list_for_each_entry_continue_reverse@p1(c,...,member) { ... when != break;
63 list_for_each_entry_from@p1(c,...,member) { ... when != break;
68 list_for_each_entry_safe@p1(c,...,member) { ... when != break;
73 list_for_each_entry_safe_continue@p1(c,...,member) { ... when != break;
78 list_for_each_entry_safe_from@p1(c,...,member) { ... when != break;
83 list_for_each_entry_safe_reverse@p1(c,...,member) { ... when != break;
[all …]
Dfen.cocci79 position p1,p2;
83 *for_each_node_by_name@p1(np,...)
89 *for_each_node_by_type@p1(np,...)
95 *for_each_compatible_node@p1(np,...)
101 *for_each_matching_node@p1(np,...)
111 p1 << r.p1;
116 cocci.print_secs("iterator",p1)
119 p1 << r.p1;
123 msg = "ERROR: of_node_put not needed after iterator on line %s" % (p1[0].line)
/scripts/coccinelle/free/
Dpci_free_consistent.cocci16 position p1,p2;
20 id = pci_alloc_consistent@p1(x,y,&z)
39 p1 << search.p1;
43 …t; pci_alloc_consistent on line %s and return without freeing on line %s" % (p1[0].line,p2[0].line)
47 p1 << search.p1;
51 …t; pci_alloc_consistent on line %s and return without freeing on line %s" % (p1[0].line,p2[0].line)
52 cocci.print_main(msg,p1)
Dkfree.cocci21 position p1;
25 * kfree@p1(E)
27 * kzfree@p1(E)
83 position free.p1!=loop.ok,p2!={print.p,sz.p};
87 * kfree@p1(E,...)
89 * kzfree@p1(E,...)
121 p1 << free.p1;
125 cocci.print_main("kfree",p1)
129 p1 << free.p1;
133 msg = "ERROR: reference preceded by free on line %s" % (p1[0].line)
Diounmap.cocci23 position p1,p2,p3;
26 e = \(ioremap@p1\|ioremap_nocache@p1\)(...)
52 p1 << iom.p1;
57 cocci.print_main("ioremap",p1)
62 p1 << iom.p1;
67 msg = "ERROR: missing iounmap; ioremap on line %s and execution via conditional on line %s" % (p1[0…
Dput_device.cocci15 position p1,p2;
19 id = of_find_device_by_node@p1(x)
41 p1 << search.p1;
47 + p1[0].line
51 p1 << search.p1;
55 cocci.print_main("of_find_device_by_node", p1)
Dclk_put.cocci23 position p1,p2,p3;
26 e = clk_get@p1(...)
52 p1 << clk.p1;
57 cocci.print_main("clk_get",p1)
62 p1 << clk.p1;
67 msg = "ERROR: missing clk_put; clk_get on line %s and execution via conditional on line %s" % (p1[0…

12