summaryrefslogtreecommitdiffstats
path: root/arch/um
diff options
context:
space:
mode:
authorDr. David Alan Gilbert <linux@treblig.org>2024-05-05 02:15:08 +0200
committerJohannes Berg <johannes.berg@intel.com>2024-07-03 12:21:29 +0200
commit1cf855ded6962825da8623b467c4650a80776cad (patch)
treef4388e2e90754c5039c9755829c8260561ba3e58 /arch/um
parentum: time-travel: fix time-travel-start option (diff)
downloadlinux-1cf855ded6962825da8623b467c4650a80776cad.tar.xz
linux-1cf855ded6962825da8623b467c4650a80776cad.zip
ubd: Remove unused mutex 'ubd_mutex'
Commit fb5d1d389c9e ("ubd: open the backing files in ubd_add") removed the last use of ubd_mutex. Remove it. Build and kernel startup test only. Signed-off-by: Dr. David Alan Gilbert <linux@treblig.org> Reviewed-by: Christoph Hellwig <hch@lst.de> Link: https://patch.msgid.link/20240505001508.255096-1-linux@treblig.org Signed-off-by: Johannes Berg <johannes.berg@intel.com>
Diffstat (limited to 'arch/um')
-rw-r--r--arch/um/drivers/ubd_kern.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/arch/um/drivers/ubd_kern.c b/arch/um/drivers/ubd_kern.c
index ef805eaa9e01..1542a6d6a7a1 100644
--- a/arch/um/drivers/ubd_kern.c
+++ b/arch/um/drivers/ubd_kern.c
@@ -106,7 +106,6 @@ static inline void ubd_set_bit(__u64 bit, unsigned char *data)
#define DRIVER_NAME "uml-blkdev"
static DEFINE_MUTEX(ubd_lock);
-static DEFINE_MUTEX(ubd_mutex); /* replaces BKL, might not be needed */
static int ubd_ioctl(struct block_device *bdev, blk_mode_t mode,
unsigned int cmd, unsigned long arg);