coccinelle: api: add kvfree script
A message that is not in the archive (sent off-list or not yet received): [email protected]
Quoted 4 lines
Review
Quoted 2 lines
(quoted diff) +2
-0+msg = "WARNING: kmalloc is used to allocate this memory at line %s" % (k[0].line) +coccilib.org.print_todo(p[0], msg)* I find the diagnostic text insufficient.
I also find the message not very informative.
All of the other comments are not useful, and some are simply incorrect.
julia
A message that is not in the archive (sent off-list or not yet received): [email protected]
Quoted 8 lines · Markus Elfring
Quoted 6 lines
Quoted 4 lines
Review
Quoted 2 lines
(quoted diff) +2
-0+msg = "WARNING: kmalloc is used to allocate this memory at line %s" % (k[0].line) +coccilib.org.print_todo(p[0], msg)* I find the diagnostic text insufficient.
I also find the message not very informative.
Is it interesting how quick such views can change?
Yes. If one looks at something in context, one and understand it better than the extract that you provided.
julia
Quoted 14 lines
https://lore.kernel.org/cocci/alpine.DEB.2.22.394.2007302214160.2548@hadrien/
https://systeme.lip6.fr/pipermail/cocci/2020-July/008041.html
https://lkml.org/lkml/2020/7/30/1015“…
Actually, the message looks fine. Sorry for the noise about that. …”Can such notifications become more helpful?
Regards,
Markus
A message that is not in the archive (sent off-list or not yet received): [email protected]
Quoted 7 lines · Markus Elfring
Quoted 7 lines
Quoted 7 lines
Quoted 6 lines
Quoted 4 lines
Review
Quoted 2 lines
(quoted diff) +2
-0+msg = "WARNING: kmalloc is used to allocate this memory at line %s" % (k[0].line) +coccilib.org.print_todo(p[0], msg)* I find the diagnostic text insufficient.
I also find the message not very informative.
Quoted 7 lines
Quoted 4 lines
Quoted 1 line
Is it interesting how quick such views can change?
Yes. If one looks at something in context, one and understand it better than the extract that you provided.
Should the provided information (and its intention) be understandable from the diagnostic message alone already?
It is understandable from the message and from the positions that are indicated. That's good enough.
julia