From: Dr. David Alan Gilbert Date: Sun, 5 May 2024 00:15:08 +0000 (+0100) Subject: ubd: Remove unused mutex 'ubd_mutex' X-Git-Tag: v6.11-rc1~48^2~33 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=1cf855ded6962825da8623b467c4650a80776cad;p=thirdparty%2Flinux.git 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 Reviewed-by: Christoph Hellwig Link: https://patch.msgid.link/20240505001508.255096-1-linux@treblig.org Signed-off-by: Johannes Berg --- diff --git a/arch/um/drivers/ubd_kern.c b/arch/um/drivers/ubd_kern.c index ef805eaa9e013..1542a6d6a7a17 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);