Add_taint -
void add_taint(unsigned flag, enum lockdep_ok lockdep_ok);
flag
one of the TAINT_* constants.
lockdep_ok
whether lock debugging is still OK.
If something bad has gone wrong, you'll want lockdebug_ok = false, but for some notewortht-but-not-corrupting cases, it can be set to true.