Put (void)val; here and there to tell gcc we used the variable.
The spin_lock wrappers do not use the return value of the functions they wrap, resulting in dozens of compiler warnings because they are inline functions. There is no elegant solution to this, I hope using (void)val; is the least shocking alternative.
Showing
Please register or sign in to comment