> > +@r3@ > > +identifier s, fld; > > +position p != {r2.p}; > > +@@ > > + > > +struct s { > > + ... > > + struct mutex fld@p; > > + ... > > +}; > > > How many mutexes (or spin locks) should be initialised before further data > processing can be safely performed with corresponding structures? I tried the semantic patch on this file: struct s { struct mutex fld; }; int main () { struct s *mm; mm = kmalloc(); mutex_lock(&mm->fld); } and it reported the expected error message. So what exactly is the concern, Markus? julia