Skip to content
Snippets Groups Projects
Commit 33468b48 authored by Nikita Danilov's avatar Nikita Danilov
Browse files

lockdep_set_class(): use arguments to avoid "declared but unused warnings" (fatal with -Werror).

parent f6cd5969
No related branches found
No related tags found
No related merge requests found
......@@ -157,9 +157,8 @@ struct lock_class_key {
;
};
#ifndef lockdep_set_class
# define lockdep_set_class(lock, key) do {;} while (0)
#endif
# define lockdep_set_class(lock, key) \
do { (void)sizeof (lock);(void)sizeof (key); } while (0)
/* This has to be a macro, so that `subclass' can be undefined in kernels that
* do not support lockdep. */
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment