I think this basically works. Check_locking is sort of unusual in how it works so using a hook is ok. I had a patch that silence all warnings on impossible paths unless you enable --spammy but I need to test it. regards, dan carpenter -- To unsubscribe from this list: send the line "unsubscribe smatch" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html