This Coccinelle script will warn when new code has the potential to use the macro ARRAYSIZE instead of something like this sizeof(some_array) / sizeof(some_array[0])