Received: by 2002:a05:6a10:17d3:0:0:0:0 with SMTP id hz19csp3495774pxb; Wed, 14 Apr 2021 06:52:39 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwuDj+2aexTwSd3SIZ1up8phZefFaWX6jvi1JEaLAatL+Ne1TIegQ6lnHhRWzSw2KoI4tBI X-Received: by 2002:a17:906:c143:: with SMTP id dp3mr36142911ejc.499.1618408359144; Wed, 14 Apr 2021 06:52:39 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1618408359; cv=none; d=google.com; s=arc-20160816; b=BN/4mgKV1ax/yJlAKQuJXRZANvmRU4ybqFrQ3OAyocTMieteXHkDLy3jCKSQXm1kb8 1AU+0WUeCn7cBtUXnWl0PbQHd8L+XC71yfdALQYoFcLpqjRJ7qWrpsAkZhOmSDSVrTD2 8qNSlVdnPkViK1txy8Qvyv5PLvXubNsFd0Y5csWH9LAwmpMK+uxsWEIovkXcteA67pP5 r9ODNBv5Z8AAvTTru8chmQWzI1Fl+PpxsHj59wEDNRMmCyCSziEqcJDkC9ThCHCLEFg8 +IAeLHyIuesTugj6/3/VWoOBwwwG1Vw36k/V2+TM7wGRdJrpgcHXcuTvazYRtK9MnWk5 hCXQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:message-id:date:subject:cc:to:from; bh=NUw9Vbqzk8vq+Ct9DJbTyEf7Z3/hZaSAR5GA53B9OEk=; b=tmDY162bQiAeKrlr0MA/jYDm3Py+I0/Q/jpYPcxrcq5lPY2wunWnsHAp2ieeY8hfF+ xW0XmoX+nrsZkbumSL0pBGauiighwTtYLK/q3+TEDZyXGc/nEmBVcGXMyEWdpFo1vheA /zZcY6QnTPSoUNKGDYLOeb5o4ihEW2+vbLKvo+MKR1X7E2s9SriJ2q1YoP6CScOmh4vd oUvMzgdRPySxmDCWdXWjrBg/qF8XhNQxQc8MEG2F/kqoY0cHiq/cfkewjJ7t8sXtZ6bo kQ5bsjk/09sVAyEQICXvIe+QL/6PeJaR5Kykazz22RIHEMEg+rpnjAVO9pN3Z305XWK0 UIvw== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=alibaba.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id f27si4540831ejf.327.2021.04.14.06.52.12; Wed, 14 Apr 2021 06:52:39 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=alibaba.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1347935AbhDNGdc (ORCPT + 99 others); Wed, 14 Apr 2021 02:33:32 -0400 Received: from out30-57.freemail.mail.aliyun.com ([115.124.30.57]:57540 "EHLO out30-57.freemail.mail.aliyun.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231831AbhDNGd2 (ORCPT ); Wed, 14 Apr 2021 02:33:28 -0400 X-Alimail-AntiSpam: AC=PASS;BC=-1|-1;BR=01201311R101e4;CH=green;DM=||false|;DS=||;FP=0|-1|-1|-1|0|-1|-1|-1;HT=e01e04394;MF=jiapeng.chong@linux.alibaba.com;NM=1;PH=DS;RN=5;SR=0;TI=SMTPD_---0UVWtpYf_1618381977; Received: from j63c13417.sqa.eu95.tbsite.net(mailfrom:jiapeng.chong@linux.alibaba.com fp:SMTPD_---0UVWtpYf_1618381977) by smtp.aliyun-inc.com(127.0.0.1); Wed, 14 Apr 2021 14:33:06 +0800 From: Jiapeng Chong To: agk@redhat.com Cc: snitzer@redhat.com, dm-devel@redhat.com, linux-kernel@vger.kernel.org, Jiapeng Chong Subject: [PATCH] dm clone metadata: remove unused function Date: Wed, 14 Apr 2021 14:32:56 +0800 Message-Id: <1618381976-127456-1-git-send-email-jiapeng.chong@linux.alibaba.com> X-Mailer: git-send-email 1.8.3.1 Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Fix the following clang warning: drivers/md/dm-clone-metadata.c:279:19: warning: unused function 'superblock_write_lock' [-Wunused-function]. Reported-by: Abaci Robot Signed-off-by: Jiapeng Chong --- drivers/md/dm-clone-metadata.c | 6 ------ 1 file changed, 6 deletions(-) diff --git a/drivers/md/dm-clone-metadata.c b/drivers/md/dm-clone-metadata.c index 1771245..c43d556 100644 --- a/drivers/md/dm-clone-metadata.c +++ b/drivers/md/dm-clone-metadata.c @@ -276,12 +276,6 @@ static inline int superblock_read_lock(struct dm_clone_metadata *cmd, return dm_bm_read_lock(cmd->bm, SUPERBLOCK_LOCATION, &sb_validator, sblock); } -static inline int superblock_write_lock(struct dm_clone_metadata *cmd, - struct dm_block **sblock) -{ - return dm_bm_write_lock(cmd->bm, SUPERBLOCK_LOCATION, &sb_validator, sblock); -} - static inline int superblock_write_lock_zero(struct dm_clone_metadata *cmd, struct dm_block **sblock) { -- 1.8.3.1