As previously mentioned in: https://bugs.gentoo.org/show_bug.cgi?id=212449#c3 ati-drivers fails to compile if CONFIG_LOCKDEP is set. Attached patch checks for LOCKDEP and suggests kernel options to unset if present. Untested. I've omitted telling the users how to manually unset these options in their .config, since doing that will not unset the many sub-options that they select, including LOCKDEP. If required, the options to unset are: CONFIG_{DEBUG_LOCK_ALLOC,PROVE_LOCKING,LOCK_STAT}
Created attachment 202770 [details, diff] Check for LOCKDEP, bail with sensible error if present
Confirmed. @loki_val: Wanna commit yourself or should I do it?
Thanks. Please commit this, since I'm debugging my kernel configuration ATM.
In that case, commited :] Thanks again for the patch&report