Received: by 2002:ab2:7b86:0:b0:1f7:5705:b850 with SMTP id q6csp649174lqh; Sat, 4 May 2024 17:15:57 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCXHZJYwirHz+Frv9sUUI5+rIIpNabIOECWZqE49Z5/FoiotXiJrjXVJWBNX7Wy+U2LRSvO/8Zizzihwn4iYvel7w9nmL9DvZ/UBhAsqag== X-Google-Smtp-Source: AGHT+IE11/dkSo4tZSIGPHcIWOBGlJSjbC8tszrz9vSGN5w+SKrZx8hZCT2jetTIbMpt1jJrvn0/ X-Received: by 2002:a05:6a21:3942:b0:1af:5389:f384 with SMTP id ac2-20020a056a21394200b001af5389f384mr10384849pzc.21.1714868157548; Sat, 04 May 2024 17:15:57 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1714868157; cv=pass; d=google.com; s=arc-20160816; b=lWFGqVzdI8ycpTusNcJMqDcB7+GkPyBaLytwYqRyhHDRiMmb4zxVm2AR9jEnLJ+Izm pZqxYDETRu/EbxpYQApKfv1KbWl0lWJQ2bLs/4yT2fk0U+xyvCe1o6kvX4RlZybyCOC/ ymML+brkZ+raCFulZQWrrGKnQehEUVsqrcWLhDXppLcdVquDV/K/QIyQ+mrnvet4uW1N tn0tvRrxynG9Vg4GKqczwLh91x1il9x1DJILFViGjpxfSxawByF9JnJKC4r9qFHGwU0O bM91E0G3MELafjFlk6NNsstoN9NTa3SCgWdAld+m3JqNe0lO4WyZwqHwDnzz9wKwVHhN F7og== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:message-id:date:subject:cc:to :from:dkim-signature; bh=9tJdhokC07t5AKnNYTYSjj5ZbBWyfN8CQQLC/CMUQK8=; fh=9T3pk2Wdf0l/9jV9AaxTx8ThsaD7UwsdxYwCfZxfYIo=; b=I9DjCzqAV9HXaLyRhPrDOpkW7bdQt62UPaLg8VYlQCCvMDCHcwXc4zKwxiRd+yzhc4 hM0FQY+4CFuh3NiuOl/PR59ftpW7dJ/CDAQJV/nBPwOVYhGIXtQkkVJsVeRI+DM+Ihpu C9NDaeWm9TTTrrW8lHWtVyG07LvInC3Q2TDJrMn6Ii4a7PS2BbP+RUf50RgAQSezOkdG /qpKwX4KHVJ2Zwu8hk0DqPxZ7FWbAipGlPo+Xrg/wEqS1WG/55OkLcHH96Lfp2enb2md AQ4M1F2ELs5FlQPJYASFwphoMHbdsjZVHcF+cVWx8uR0YKEUTXTVJg9zPppXYhSLZ4NY K76A==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@treblig.org header.s=bytemarkmx header.b=Fo8bw0j2; arc=pass (i=1 spf=pass spfdomain=treblig.org dkim=pass dkdomain=treblig.org dmarc=pass fromdomain=treblig.org); spf=pass (google.com: domain of linux-kernel+bounces-168855-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-168855-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=treblig.org Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [139.178.88.99]) by mx.google.com with ESMTPS id m67-20020a632646000000b006233da2d5ebsi864459pgm.745.2024.05.04.17.15.57 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 04 May 2024 17:15:57 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-168855-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) client-ip=139.178.88.99; Authentication-Results: mx.google.com; dkim=pass header.i=@treblig.org header.s=bytemarkmx header.b=Fo8bw0j2; arc=pass (i=1 spf=pass spfdomain=treblig.org dkim=pass dkdomain=treblig.org dmarc=pass fromdomain=treblig.org); spf=pass (google.com: domain of linux-kernel+bounces-168855-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-168855-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=treblig.org Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sv.mirrors.kernel.org (Postfix) with ESMTPS id 20BDE2820E1 for ; Sun, 5 May 2024 00:15:57 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id B7A9F2F2C; Sun, 5 May 2024 00:15:32 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=treblig.org header.i=@treblig.org header.b="Fo8bw0j2" Received: from mx.treblig.org (mx.treblig.org [46.235.229.95]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 644F017F7 for ; Sun, 5 May 2024 00:15:29 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=46.235.229.95 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1714868131; cv=none; b=fdcb60ZTxGNSLcUvTCrHK9KPzCSRNphYGmCfBrY2tGseDlpM1uzFOAWQvF9HLYfSVo2d1QyDLDe++CzgVHMUpLGQZThVCTooaUJaMTpF0hwWfCg5xz4OugtyWV28DmKDuhN4domw2x+PZz9d6gHRXb8BuiVvxhl4RE7g/A7+9OA= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1714868131; c=relaxed/simple; bh=nk/KiriDObB8jrAY4t1yYUr8J9vkeu4uwfBI3E/tlac=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=QBkjZB+z5wDoFyp6HF1cdExxMug+Q/tOK8jrz4XyFQ0/jQlodO1+VvGVI4SjGnfUIIVfMdr8PUqQvE1RG/mcyse1vcKawyRIF87410xj/jrlLeixJilKybpL0GfME6cWWOeDViZCIhAZzwKYUyWXazoaRnD4cZca0tM1neYYMew= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=treblig.org; spf=pass smtp.mailfrom=treblig.org; dkim=pass (2048-bit key) header.d=treblig.org header.i=@treblig.org header.b=Fo8bw0j2; arc=none smtp.client-ip=46.235.229.95 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=treblig.org Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=treblig.org DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=treblig.org ; s=bytemarkmx; h=MIME-Version:Message-ID:Date:Subject:From:Content-Type:From :Subject; bh=9tJdhokC07t5AKnNYTYSjj5ZbBWyfN8CQQLC/CMUQK8=; b=Fo8bw0j2JsDDYWQh FPvHs1HYh4xomYTT6G9Rdn6Voo6ryiCiFtJOeVl8wEYYiSurf8ve/gWX2/JuxUU4oAT36WGaNSD8g 0ZCxmJce00vFdgc/TtmTPbSS8N++zmksHYFK894nF5gLZHGNEAqaGziObeKZtsvlwLtqPGV6vSnpu /Kcf/dOuprw/ClTAcgh3FrMdav2hNk7E8a2bTC/AFZVW1CLPRSQ/0T9sEHJahgrp9LQsAF22a/gnF wo+vMlnctMQxarWjMR6hy6MVhPoXB5EVEzML3XdHOMEddtvw7YlauXoymFvRHGNo+7YfottsHLpCX 129XPP1c+hen0brlUg==; Received: from localhost ([127.0.0.1] helo=dalek.home.treblig.org) by mx.treblig.org with esmtp (Exim 4.96) (envelope-from ) id 1s3PX5-004kAq-0i; Sun, 05 May 2024 00:15:11 +0000 From: linux@treblig.org To: richard@nod.at, hch@lst.de Cc: linux-um@lists.infradead.org, linux-kernel@vger.kernel.org, "Dr. David Alan Gilbert" Subject: [PATCH] ubd: Remove unused mutex 'ubd_mutex' Date: Sun, 5 May 2024 01:15:08 +0100 Message-ID: <20240505001508.255096-1-linux@treblig.org> X-Mailer: git-send-email 2.45.0 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit From: "Dr. David Alan Gilbert" 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 --- arch/um/drivers/ubd_kern.c | 1 - 1 file changed, 1 deletion(-) diff --git a/arch/um/drivers/ubd_kern.c b/arch/um/drivers/ubd_kern.c index 63fc062add708..2b855240fbabf 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); -- 2.45.0