mirror of
https://github.com/torvalds/linux.git
synced 2026-11-26 00:12:52 +00:00
The semantic patch that fixes this problem is as follows: (http://coccinelle.lip6.fr/) // <smpl> @r@ type T; identifier f; @@ static T f (...) { ... } @@ identifier r.f; declarer name EXPORT_SYMBOL; @@ -EXPORT_SYMBOL(f); // </smpl> Furthermore, the function is never used, so its definition is dropped as well. Signed-off-by: Julia Lawall <[email protected]> Signed-off-by: Scott Wood <[email protected]>