lock validator: fix qeth compile warning
Subsystems (3)
PATCH 4/4 lock validator: fix qeth compile warning
From: Heiko Carstens <[email protected]>
Add #ifdef CONFIG_LOCKDEP to avoid compile warning.
Cc Frank Pavlic <[email protected]>
Signed-off-by Heiko Carstens <[email protected]>
---
drivers/s390/net/qeth_main.c | 2 ++ 1 file changed, 2 insertions(+)
drivers/s390/net/qeth_main.c +2 -0
@@ -85,7 +85,9 @@ static debug_info_t *qeth_dbf_qerr = NULDEFINE_PER_CPU (char[256 ], qeth_dbf_txt_buf); +#ifdef CONFIG_LOCKDEP static struct lockdep_type_key qdio_out_skb_queue_key; +#endif /** * some more definitions and declarations
drivers/s390/net/qeth_main.c static debug_info_t *qeth_dbf_qerr = NUL · line 90
Quoted 3 lines · Heiko Carstens
drivers/s390/net/qeth_main.c +2
-0+#ifdef CONFIG_LOCKDEP static struct lockdep_type_key qdio_out_skb_queue_key; +#endif
ok, that's fine for now. I'm cleaning this up via introducing per-lock-variant keys. But maybe the best would be to offer the lock validator in a binary way only - either for all lock variants at once, or for none at all?
Ingo