public inbox for cocci@systeme.lip6.fr
 help / color / mirror / Atom feed
* [Cocci] Weird whitespace behavior?
@ 2018-06-11 23:17 Kees Cook
  2018-06-12  2:38 ` Kees Cook
  2018-06-30 11:30 ` [Cocci] Increasing usage of array allocation functions with SmPL SF Markus Elfring
  0 siblings, 2 replies; 4+ messages in thread
From: Kees Cook @ 2018-06-11 23:17 UTC (permalink / raw)
  To: cocci

Hi,

I've been doing some large treewide changes to the allocators, and I
notice that Coccinelle does something odd for a specific case. I have
two scripts, one operating on kmalloc() and one operating on
devm_kmalloc(). They are identical script except for the function
names, however, while kmalloc produces patches like this:

- foo = kmalloc(a * b, gfp);
+ foo = kmalloc_array(a, b, gfp);

the devm_kmalloc one produces:

- foo = devm_kmalloc(handle, a * b, gfp);
+ foo =devm_kmalloc_array(a, b, gfp);

I can't figure out why the space after "=" is missing and have been
manually fixing it up...

-Kees

-- 
Kees Cook
Pixel Security

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2018-06-30 11:30 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2018-06-11 23:17 [Cocci] Weird whitespace behavior? Kees Cook
2018-06-12  2:38 ` Kees Cook
2018-06-12  4:54   ` Julia Lawall
2018-06-30 11:30 ` [Cocci] Increasing usage of array allocation functions with SmPL SF Markus Elfring

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox