Home
last modified time | relevance | path

Searched refs:msg (Results 1 – 25 of 68) sorted by relevance

123

/scripts/coccinelle/misc/
Darray_size_dup.cocci43 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 …]
Dboolconv.cocci79 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)
Dflexible_array.cocci80 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)
Dnewline_in_nl_msg.cocci59 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)
Dwarn.cocci41 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)
Dirqf_oneshot.cocci106 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/
Dplatform_no_drv_owner.cocci127 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 …]
Dresource_size.cocci67 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)
Dkfree_mismatch.cocci169 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 …]
Datomic_as_refcounter.cocci58 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)
Dcheck_bq27xxx_data.cocci18 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
Derr_cast.cocci47 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)
Dvma_pages.cocci51 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("]",")")
Dkfree_sensitive.cocci91 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/
Dzalloc-simple.cocci161 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 …]
Dpool_zalloc-simple.cocci75 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/
Dpci_free_consistent.cocci43 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)
Dkfreeaddr.cocci36 msg = "ERROR: invalid free of structure field"
37 coccilib.report.print_report(p[0],msg)
/scripts/coccinelle/iterators/
Dfor_each_child.cocci307 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 …]
Ddevice_node_continue.cocci93 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/
Ddebugfs_simple_attr.cocci60 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/
Dderef_null.cocci98 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/
Dodd_ptr_err.cocci105 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)
Dunsigned_lesser_than_zero.cocci67 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/
Dheaderdep.pl127 my $msg = "In file included";
128 printf "%s from %s,\n", $msg, $last->[1] if defined $last;
132 " " x length $msg,

123