Searched refs:p2 (Results 1 – 25 of 30) sorted by relevance
12
/scripts/coccinelle/misc/ |
D | array_size_dup.cocci | 30 position p1, p2; 36 * array_size(E1, E2)@p2 40 p2 << as_next.p2; 43 msg = "WARNING: array_size is used later (line %s) to compute the same size" % (p2[0].line) 48 p2 << as_next.p2; 51 msg = "WARNING: array_size is used later (line %s) to compute the same size" % (p2[0].line) 59 position p1, p2; 65 * E1 * E2@p2 69 p2 << as_prev.p2; 73 coccilib.report.print_report(p2[0], msg) [all …]
|
D | cstptr.cocci | 19 position p1,p2; 26 *PTR_ERR@p2(e) 30 p2 << r.p2; 33 cocci.print_main("PTR_ERR",p2) 38 p2 << r.p2; 42 coccilib.report.print_report(p2[0],msg)
|
D | ifcol.cocci | 23 position p1,p2; 30 if (...) S1@p1 S2@p2 35 p2 << r.p2; 38 if (p1[0].column == p2[0].column): 40 cocci.print_secs("after",p2) 44 p2 << r.p2; 47 if (p1[0].column == p2[0].column): 48 msg = "code aligned with following code on line %s" % (p2[0].line)
|
D | returnvar.cocci | 45 position p1, p2; 50 return ret@p2; 54 p2 << r1.p2; 58 …int_report(p1[0], "Unneeded variable: \"" + ret + "\". Return \"" + C + "\" on line " + p2[0].line) 62 p2 << r1.p2; 67 cocci.print_sec("return " + C + " here", p2)
|
/scripts/coccinelle/api/ |
D | d_find_alias.cocci | 19 position p1, p2; 37 return @p2 ...; 39 dent@p2 = E1; 46 position r.p1,r.p2; 51 * return@p2 ...; 53 * dent@p2 59 p2 << r.p2; 62 cocci.print_secs("",p2) 66 position r.p2; 70 return @p2 ...; [all …]
|
D | atomic_as_refcounter.cocci | 15 position p1, p2; 40 fname@p2(a, ...); 42 fname2@p2(...); 44 fname3@p2(...); 46 fname4@p2(...); 48 fname5@p2(...); 50 fname6@p2(...); 56 p2 << r1.p2; 59 coccilib.report.print_report(p1[0], msg % (p2[0].line)) 63 position p1, p2; [all …]
|
D | kstrdup.cocci | 51 position p1,p2; 58 * strcpy@p2(to, from); 64 position p1,p2; 73 * memcpy@p2(to, from, x); 77 p2 << r1.p2; 81 cocci.print_secs("strcpy",p2) 85 p2 << r2.p2; 89 cocci.print_secs("memcpy",p2) 93 p2 << r1.p2; 96 msg = "WARNING opportunity for kstrdup (strcpy on line %s)" % (p2[0].line) [all …]
|
D | check_bq27xxx_data.cocci | 69 position p2; 72 u8 i2regs@p2[...] = { i2regs_vals, }; 80 p2 << getregs2.p2; 89 i1regs i2regs (List.hd p2).line in 105 position p2; 108 struct bq27xxx_dm_reg i2dmregs@p2[] = { i2dmregs_vals, }; 116 p2 << getdmregs2.p2; 125 i1dmregs i2dmregs (List.hd p2).line in 141 position p2; 144 enum power_supply_property i2props@p2[] = { i2props_vals, }; [all …]
|
D | pm_runtime.cocci | 86 position p1, p2; 94 IS_ERR_VALUE@p2(ret) 100 p2 << r.p2; 105 cocci.print_secs("IS_ERR_VALUE",p2) 109 p2 << r.p2; 113 msg = "%s returns < 0 as error. Unecessary IS_ERR_VALUE at line %s" % (pm_runtime_api, p2[0].line)
|
/scripts/coccinelle/locks/ |
D | flags.cocci | 18 position p1,p2; 36 spin_lock_irqsave@p2(lock2,flags) 38 read_lock_irqsave@p2(lock2,flags) 40 write_lock_irqsave@p2(lock2,flags) 46 position r.p1, r.p2; 58 *spin_lock_irqsave@p2(lock2,flags) 60 *read_lock_irqsave@p2(lock2,flags) 62 *write_lock_irqsave@p2(lock2,flags) 69 p2 << r.p2; 73 cocci.print_secs("nested lock+irqsave that reuses flags",p2) [all …]
|
D | double_lock.cocci | 69 position locked.p,p1,p2; 75 lock@p2 (E1,...); 79 p2 << r.p2; 84 cocci.print_secs("second lock",p2) 88 p2 << r.p2; 92 msg = "second lock on line %s" % (p2[0].line)
|
D | call_kern.cocci | 41 position p1,p2; 72 fn@p2(...) 91 p2 << locked.p2; 95 cocci.print_secs("call",p2) 102 p2 << locked.p2; 105 msg = "ERROR: function %s called on line %s inside lock on line %s but uses GFP_KERNEL" % (fn,p2[0]…
|
/scripts/coccinelle/iterators/ |
D | list_entry_update.cocci | 22 position p1,p2; 25 list_for_each_entry@p1(x,...) { <... x =@p2 E ...> } 29 position r.p1,r.p2; 33 *x =@p2 E 41 position r.p1,r.p2; 45 x =@p2 E 51 p2 << r.p2; 55 cocci.print_secs("update",p2) 59 p2 << r.p2; 62 msg = "iterator with update on line %s" % (p2[0].line)
|
D | itnull.cocci | 68 position p1,p2; 74 * x@p2 == NULL 76 * x@p2 != NULL 83 p2 << r.p2; 87 cocci.print_secs("useless NULL test",p2) 91 p2 << r.p2; 95 coccilib.report.print_report(p2[0], msg)
|
D | device_node_continue.cocci | 27 position p1,p2; 53 of_node_put@p2(n); 61 position r.p1,r.p2; 65 of_node_put@p2(n); 72 position r.p2; 75 - of_node_put@p2(n); 81 position r.p2; 85 * of_node_put@j0@p2(n);
|
D | fen.cocci | 79 position p1,p2; 108 * of_node_put@p2(np); 112 p2 << r.p2; 115 cocci.print_main("unneeded of_node_put",p2) 120 p2 << r.p2; 124 coccilib.report.print_report(p2[0], msg)
|
D | use_after_iter.cocci | 38 position p1,p2; 136 *c@p2 141 p2 << r.p2; 144 cocci.print_main("invalid iterator index reference",p2) 149 p2 << r.p2; 153 coccilib.report.print_report(p2[0], msg)
|
/scripts/coccinelle/free/ |
D | pci_free_consistent.cocci | 16 position p1,p2; 35 return@p2 ...; 40 p2 << search.p2; 43 …t; pci_alloc_consistent on line %s and return without freeing on line %s" % (p1[0].line,p2[0].line) 44 coccilib.report.print_report(p2[0],msg) 48 p2 << search.p2; 51 …t; pci_alloc_consistent on line %s and return without freeing on line %s" % (p1[0].line,p2[0].line) 53 cocci.print_secs("",p2)
|
D | put_device.cocci | 15 position p1,p2; 36 | return@p2 ...; 41 p2 << search.p2; 44 coccilib.report.print_report(p2[0], 51 p2 << search.p2; 55 cocci.print_secs("needed put_device", p2)
|
D | iounmap.cocci | 23 position p1,p2,p3; 43 *if@p2 (...) 53 p2 << iom.p2; 58 cocci.print_secs("if",p2) 63 p2 << iom.p2; 67 …ing iounmap; ioremap on line %s and execution via conditional on line %s" % (p1[0].line,p2[0].line)
|
D | clk_put.cocci | 23 position p1,p2,p3; 43 *if@p2 (...) 53 p2 << clk.p2; 58 cocci.print_secs("if",p2) 63 p2 << clk.p2; 67 …ing clk_put; clk_get on line %s and execution via conditional on line %s" % (p1[0].line,p2[0].line)
|
D | kfree.cocci | 83 position free.p1!=loop.ok,p2!={print.p,sz.p}; 117 E@p2 // bad use 122 p2 << r.p2; 126 cocci.print_secs("ref",p2) 130 p2 << r.p2; 134 coccilib.report.print_report(p2[0],msg)
|
/scripts/coccinelle/null/ |
D | eno.cocci | 28 position p1,p2; 33 * IS_ERR@p2(x) 37 p2 << r.p2; 41 cocci.print_secs("IS_ERR that should be NULL tests",p2) 45 p2 << r.p2; 49 coccilib.report.print_report(p2[0], msg)
|
D | kmerr.cocci | 48 position p2; 56 x1@p = f@p2(...); 61 p2 << rfixed.p2; 65 cocci.print_secs("possible model",p2) 69 p2 << rfixed.p2; 72 msg = "alloc with no test, possible model on line %s" % (p2[0].line)
|
D | deref_null.cocci | 31 position p2; 35 (E != NULL) && ... && <+...E->f@p2...+> 37 (E == NULL) || ... || <+...E->f@p2...+> 39 sizeof(<+...E->f@p2...+>) 59 position p!={pr1.p1,pr2.p2}; 120 position p!={pr1.p1,pr2.p2}; 180 position p!={pr1.p1,pr2.p2}; 227 position p2; 231 (E != NULL) && ... && <+...E->f@p2...+> 233 (E == NULL) || ... || <+...E->f@p2...+> [all …]
|
12