diff --git a/contrib/coccinelle/const.cocci b/contrib/coccinelle/const.cocci index 5d1e6515ef15..53a6e66fdfc4 100644 --- a/contrib/coccinelle/const.cocci +++ b/contrib/coccinelle/const.cocci @@ -43,6 +43,7 @@ position p; when != &x->z when != e = x when != WRITE_ONCE(x->z, ...) + when != WRITE_ONCE(x->z[...], ...) when != f(..., x, ...) // Special case for the addr field since it's an array in several // structures.