On Thu, Dec 9, 2010 at 4:36 AM, Nicholas Mc Guire <der.herr@xxxxxxx> wrote: > On Thu, 09 Dec 2010, Namhyung Kim wrote: > >> Convert (sizeof arr / sizeof arr[0]) to ARRAY_SIZE(arr). >> > would that not be a cadidate for coccinelle/spatch rather than a potentially > error prone and repetitive manual patch? > array.cocci from the current 0.4.2 coccinelle distribution below should du > the job. > Might make sense to add a coccinelle directory in sparse to handle such cases ? > Interesting. How do I use the provided script? I assume I need to invoke coccinelle some how. Chris -- To unsubscribe from this list: send the line "unsubscribe linux-sparse" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html