IN_SET only works for constant values, hence clarify that. Moreover, we declared a statement "s" we never made use of. Drop it. Also, for both scripts, let's support 10 items. More causes spatch to die with "Stack overflow" for me.
!IN_SET(..)
a != b && a != c && …
The included cocci was used to generate the changes. Thanks to @flo-wer for pointing this case out.