/scripts/coccinelle/misc/ |
D | array_size_dup.cocci | 43 msg = "WARNING: array_size is used later (line %s) to compute the same size" % (p2[0].line) 44 coccilib.report.print_report(p1[0], msg) 51 msg = "WARNING: array_size is used later (line %s) to compute the same size" % (p2[0].line) 52 coccilib.org.print_todo(p1[0], msg) 72 msg = "WARNING: array_size is already used (line %s) to compute the same size" % (p1[0].line) 73 coccilib.report.print_report(p2[0], msg) 80 msg = "WARNING: array_size is already used (line %s) to compute the same size" % (p1[0].line) 81 coccilib.org.print_todo(p2[0], msg) 108 msg = "WARNING: array3_size is used later (line %s) to compute the same size" % (p2[0].line) 109 coccilib.report.print_report(p1[0], msg) [all …]
|
D | boolconv.cocci | 79 msg = "WARNING: conversion to bool not needed here" 80 coccilib.org.print_todo(p[0], msg) 90 msg = "WARNING: conversion to bool not needed here" 91 coccilib.report.print_report(p[0], msg)
|
D | flexible_array.cocci | 80 msg = "WARNING use flexible-array member instead (https://www.kernel.org/doc/html/latest/process/de… 81 coccilib.report.print_report(p[0], msg) 87 msg = "WARNING use flexible-array member instead (https://www.kernel.org/doc/html/latest/process/de… 88 coccilib.org.print_todo(p[0], msg)
|
D | newline_in_nl_msg.cocci | 59 msg="WARNING avoid newline at end of message in %s" % (fname) 60 msg_safe=msg.replace("[","@(").replace("]",")") 74 msg="WARNING avoid newline at end of message in %s" % (fname) 75 coccilib.report.print_report(p[0], msg)
|
D | warn.cocci | 41 msg = "SUGGESTION: printk + WARN_ON can be just WARN" 42 coccilib.report.print_report(p[0],msg) 90 msg = "SUGGESTION: printk + WARN_ON_ONCE can be just WARN_ONCE" 91 coccilib.report.print_report(p[0],msg)
|
D | irqf_oneshot.cocci | 106 msg = "ERROR: Threaded IRQ with no primary handler requested without IRQF_ONESHOT" 107 coccilib.org.print_todo(p[0],msg) 112 msg = "ERROR: Threaded IRQ with no primary handler requested without IRQF_ONESHOT" 113 coccilib.report.print_report(p[0],msg)
|
/scripts/coccinelle/api/ |
D | platform_no_drv_owner.cocci | 127 msg = "No need to set .owner here. The core will do it." 128 coccilib.org.print_todo(j0[0], msg) 134 msg = "No need to set .owner here. The core will do it." 135 coccilib.org.print_todo(j0[0], msg) 141 msg = "No need to set .owner here. The core will do it." 142 coccilib.org.print_todo(j0[0], msg) 148 msg = "No need to set .owner here. The core will do it." 149 coccilib.org.print_todo(j0[0], msg) 157 msg = "No need to set .owner here. The core will do it." 158 coccilib.report.print_report(j0[0], msg) [all …]
|
D | resource_size.cocci | 67 msg="ERROR with %s" % (x) 68 msg_safe=msg.replace("[","@(").replace("]",")") 76 msg="ERROR: Missing resource_size with %s" % (x) 77 coccilib.report.print_report(p[0], msg) 84 msg="WARNING with %s" % (x) 85 msg_safe=msg.replace("[","@(").replace("]",")") 93 msg="WARNING: Suspicious code. resource_size is maybe missing with %s" % (x) 94 coccilib.report.print_report(p[0], msg)
|
D | kfree_mismatch.cocci | 169 msg = "WARNING kmalloc is used to allocate this memory at line %s" % (a[0].line) 170 coccilib.report.print_report(f[0], msg) 177 msg = "WARNING kmalloc is used to allocate this memory at line %s" % (a[0].line) 178 coccilib.org.print_todo(f[0], msg) 185 msg = "WARNING vmalloc is used to allocate this memory at line %s" % (a[0].line) 186 coccilib.report.print_report(f[0], msg) 193 msg = "WARNING vmalloc is used to allocate this memory at line %s" % (a[0].line) 194 coccilib.org.print_todo(f[0], msg) 201 msg = "WARNING kvmalloc is used to allocate this memory at line %s" % (a[0].line) 202 coccilib.report.print_report(f[0], msg) [all …]
|
D | atomic_as_refcounter.cocci | 58 msg = "atomic_dec_and_test variation before object free at line %s." 59 coccilib.report.print_report(p1[0], msg % (p2[0].line)) 91 msg = "atomic_dec_and_test variation before object free at line %s." 92 coccilib.report.print_report(p1[0], msg % (p2[0].line)) 110 msg = "atomic_add_unless" 111 coccilib.report.print_report(p1[0], msg) 129 msg = "x = atomic_add_return(-1, ...)" 130 coccilib.report.print_report(p1[0], msg)
|
D | check_bq27xxx_data.cocci | 18 let print_report p msg = 20 Printf.printf "%s:%d:%d-%d: %s" p.file p.line p.col p.col_end msg 86 let msg = 90 print_report p1 msg 122 let msg = 126 print_report p1 msg 158 let msg = 162 print_report p1 msg
|
D | err_cast.cocci | 47 msg="WARNING ERR_CAST can be used with %s" % (x) 48 msg_safe=msg.replace("[","@(").replace("]",")") 56 msg="WARNING: ERR_CAST can be used with %s" % (x) 57 coccilib.report.print_report(p[0], msg)
|
D | vma_pages.cocci | 51 msg="WARNING: Consider using vma_pages helper on %s" % (x) 52 coccilib.report.print_report(p[0], msg) 59 msg="WARNING: Consider using vma_pages helper on %s" % (x) 60 msg_safe=msg.replace("[","@(").replace("]",")")
|
D | kfree_sensitive.cocci | 91 msg = "WARNING opportunity for kfree_sensitive/kvfree_sensitive (memset at line %s)" 92 coccilib.report.print_report(p[0], msg % (m[0].line)) 99 msg = "WARNING opportunity for kfree_sensitive/kvfree_sensitive (memset at line %s)" 100 coccilib.org.print_todo(p[0], msg % (m[0].line))
|
/scripts/coccinelle/api/alloc/ |
D | zalloc-simple.cocci | 161 msg="%s" % (x) 162 msg_safe=msg.replace("[","@(").replace("]",")") 170 msg="WARNING: kzalloc should be used for %s, instead of kmalloc/memset" % (x) 171 coccilib.report.print_report(p[0], msg) 191 msg="%s" % (x) 192 msg_safe=msg.replace("[","@(").replace("]",")") 200 msg="WARNING: vzalloc should be used for %s, instead of vmalloc/memset" % (x) 201 coccilib.report.print_report(p[0], msg) 221 msg="%s" % (x) 222 msg_safe=msg.replace("[","@(").replace("]",")") [all …]
|
D | pool_zalloc-simple.cocci | 75 msg="%s" % (x) 76 msg_safe=msg.replace("[","@(").replace("]",")") 84 msg="WARNING: *_pool_zalloc should be used for %s, instead of *_pool_alloc/memset" % (x) 85 coccilib.report.print_report(p[0], msg)
|
/scripts/coccinelle/free/ |
D | pci_free_consistent.cocci | 43 msg = "ERROR: missing pci_free_consistent; pci_alloc_consistent on line %s and return without freei… 44 coccilib.report.print_report(p2[0],msg) 51 msg = "ERROR: missing pci_free_consistent; pci_alloc_consistent on line %s and return without freei… 52 cocci.print_main(msg,p1)
|
D | kfreeaddr.cocci | 36 msg = "ERROR: invalid free of structure field" 37 coccilib.report.print_report(p[0],msg)
|
/scripts/coccinelle/iterators/ |
D | for_each_child.cocci | 307 msg = "WARNING: Function \"%s\" should have of_node_put() before return " % (i) 308 coccilib.org.print_safe_todo(j0[0], msg) 317 msg = "WARNING: Function \"%s\" should have of_node_put() before break " % (i) 318 coccilib.org.print_safe_todo(j0[0], msg) 327 msg = "WARNING: Function \"%s\" should have of_node_put() before goto " % (i) 328 coccilib.org.print_safe_todo(j0[0], msg) 339 msg = "WARNING: Function \"%s\" should have of_node_put() before return around line %s." % (i, j1[0… 340 coccilib.report.print_report(j0[0], msg) 348 msg = "WARNING: Function \"%s\" should have of_node_put() before break around line %s." % (i,j2[0].… 349 coccilib.report.print_report(j0[0], msg) [all …]
|
D | device_node_continue.cocci | 93 msg = "ERROR: probable double put." 94 coccilib.org.print_todo(j0[0], msg) 102 msg = "ERROR: probable double put." 103 coccilib.report.print_report(j0[0], msg)
|
/scripts/coccinelle/api/debugfs/ |
D | debugfs_simple_attr.cocci | 60 msg="%s should be defined with DEFINE_DEBUGFS_ATTRIBUTE" % (fops) 61 coccilib.org.print_todo(p[0], msg) 67 msg="WARNING: %s should be defined with DEFINE_DEBUGFS_ATTRIBUTE" % (fops) 68 coccilib.report.print_report(p[0], msg)
|
/scripts/coccinelle/null/ |
D | deref_null.cocci | 98 msg="ERROR: %s is NULL but dereferenced." % (x) 99 coccilib.report.print_report(p[0], msg) 108 msg="ERROR: %s is NULL but dereferenced." % (x) 109 msg_safe=msg.replace("[","@(").replace("]",")") 158 msg="ERROR: %s is NULL but dereferenced." % (x) 159 coccilib.report.print_report(p[0], msg) 167 msg="ERROR: %s is NULL but dereferenced." % (x) 168 msg_safe=msg.replace("[","@(").replace("]",")")
|
/scripts/coccinelle/tests/ |
D | odd_ptr_err.cocci | 105 msg = "inconsistent IS_ERR and PTR_ERR" 106 coccilib.org.print_todo(j0[0], msg) 116 msg = "inconsistent IS_ERR and PTR_ERR on line %s." % (j1[0].line) 117 coccilib.report.print_report(j0[0], msg)
|
D | unsigned_lesser_than_zero.cocci | 67 msg = "WARNING: Unsigned expression compared with zero: %s" % (e) 68 coccilib.org.print_todo(p[0], msg) 75 msg = "WARNING: Unsigned expression compared with zero: %s" % (e) 76 coccilib.report.print_report(p[0], msg)
|
/scripts/ |
D | headerdep.pl | 127 my $msg = "In file included"; 128 printf "%s from %s,\n", $msg, $last->[1] if defined $last; 132 " " x length $msg,
|