From: "Eugenio Pérez" <eperezma@redhat.com>
To: mst@redhat.com, linux-kernel@vger.kernel.org
Cc: Matthew Wilcox <willy@infradead.org>,
Jason Wang <jasowang@redhat.com>,
Stefano Garzarella <sgarzare@redhat.com>,
Yunsheng Lin <linyunsheng@huawei.com>
Subject: [PATCH 1/2] tools: Remove lockdep.h and its include from spinlock.h
Date: Tue, 6 Jul 2021 16:26:31 +0200 [thread overview]
Message-ID: <20210706142632.670483-2-eperezma@redhat.com> (raw)
In-Reply-To: <20210706142632.670483-1-eperezma@redhat.com>
Commit 58d6ea3085f2 ("xarray: Add XArray unconditional store
operations") adds this file at the same time that xarray and xarray
tests. However, xarray tests and other tools/ works with no problem
without this file.
The motivation for the deletion is that vhost tests/tools need to use
spinlock.h mock file, but at the moment it includes lockdep.h that is
only available under tools/testing/radix-tree.
Signed-off-by: Eugenio Pérez <eperezma@redhat.com>
---
tools/include/linux/spinlock.h | 2 --
tools/testing/radix-tree/linux/lockdep.h | 11 -----------
2 files changed, 13 deletions(-)
delete mode 100644 tools/testing/radix-tree/linux/lockdep.h
diff --git a/tools/include/linux/spinlock.h b/tools/include/linux/spinlock.h
index c934572d935c..622266b197d0 100644
--- a/tools/include/linux/spinlock.h
+++ b/tools/include/linux/spinlock.h
@@ -37,6 +37,4 @@ static inline bool arch_spin_is_locked(arch_spinlock_t *mutex)
return true;
}
-#include <linux/lockdep.h>
-
#endif
diff --git a/tools/testing/radix-tree/linux/lockdep.h b/tools/testing/radix-tree/linux/lockdep.h
deleted file mode 100644
index 565fccdfe6e9..000000000000
--- a/tools/testing/radix-tree/linux/lockdep.h
+++ /dev/null
@@ -1,11 +0,0 @@
-#ifndef _LINUX_LOCKDEP_H
-#define _LINUX_LOCKDEP_H
-struct lock_class_key {
- unsigned int a;
-};
-
-static inline void lockdep_set_class(spinlock_t *lock,
- struct lock_class_key *key)
-{
-}
-#endif /* _LINUX_LOCKDEP_H */
--
2.27.0
next prev parent reply other threads:[~2021-07-06 14:39 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2021-07-06 14:26 [PATCH 0/2] tools/virtio: fix compilation Eugenio Pérez
2021-07-06 14:26 ` Eugenio Pérez [this message]
2021-07-06 14:32 ` [PATCH 1/2] tools: Remove lockdep.h and its include from spinlock.h Matthew Wilcox
2021-07-06 14:26 ` [PATCH 2/2] vringh: Include spinlock.h Eugenio Pérez
2021-07-06 14:44 ` Stefano Garzarella
2021-07-07 3:18 ` [PATCH 0/2] tools/virtio: fix compilation Yunsheng Lin
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20210706142632.670483-2-eperezma@redhat.com \
--to=eperezma@redhat.com \
--cc=jasowang@redhat.com \
--cc=linux-kernel@vger.kernel.org \
--cc=linyunsheng@huawei.com \
--cc=mst@redhat.com \
--cc=sgarzare@redhat.com \
--cc=willy@infradead.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox