Received: by 2002:a05:6a10:17d3:0:0:0:0 with SMTP id hz19csp169418pxb; Wed, 14 Apr 2021 12:07:46 -0700 (PDT) X-Google-Smtp-Source: ABdhPJw2PrZWDe2rPblbAsYjbNHeO2Todg6wA9Bdm9qaHvbLsTdMeF0Y2cv1mddnxGnxr+u5UNwJ X-Received: by 2002:a17:90a:e296:: with SMTP id d22mr4980963pjz.31.1618427266587; Wed, 14 Apr 2021 12:07:46 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1618427266; cv=none; d=google.com; s=arc-20160816; b=VmIHENCAD2LD/5XdWPrjB6nqkW9E1dCuyBymWvkGNfmb5CzQrTDsS1qgkvdvB3szRf R/m4BuXB6IhwpkEjc4kFWiiWbcNWg/xgXBQyezcyjeXkBccGsKmZSEQQlQWD9c+hu+mU Ivk/AafwAfI63tTOV86+z9x7QJIQibgHK4WgmtEn/kwS4VCivhnFbQZW6kMKfQ0LvEBO OnxVKbBbGxB2s0Lndrn24lmH4o32iAK5/ol2OTLSlehU72NWBZrlEiwW55WmFu+FVdt2 5k0ABpx0FETWA+4nvVDDMu7bF7UCWM74JmhUvTJ/ui3jcTFx1W5vJlaoqnOa0lzVhIeV v8LA== 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=HdGdOtNe6o/+ry+ImbKsgjcRkwwuRFaFpgeXJUH1wZA=; b=DmvT/TjqBxSXg80G8y+CUz3YQuZG4X42z5P+dbVJq44g8oqx3DvzVpqVzT3kHPwnB/ o3d81pMT+5Ok0PPLDNhWVNZJ+xvfyEymbv+gS7PkRVpHOalq8jMemBejEk/rTlZDwanw 0+w806SsgxQJEuMAf7UluR3IhqPmqQO/pikgnpdakYBDIKgAilQs/NJtZF7jPX4dOQKV uekw/7xx5ut1+kQU68imO+XywUnP1ewp9dfhL/vOf1MF5H6wT4CYWgfve9wOQj5vaixc NYIdipzKBLtUtY3Y96bmi3RwppBpNPL77wYV5JSYnxrg/+ibVe44RhSXWWe2pdEw5vg2 9PkQ== 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 h12si378209pgq.171.2021.04.14.12.07.24; Wed, 14 Apr 2021 12:07:46 -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 S1349304AbhDNGqe (ORCPT + 99 others); Wed, 14 Apr 2021 02:46:34 -0400 Received: from out30-54.freemail.mail.aliyun.com ([115.124.30.54]:33172 "EHLO out30-54.freemail.mail.aliyun.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1349297AbhDNGqa (ORCPT ); Wed, 14 Apr 2021 02:46:30 -0400 X-Alimail-AntiSpam: AC=PASS;BC=-1|-1;BR=01201311R511e4;CH=green;DM=||false|;DS=||;FP=0|-1|-1|-1|0|-1|-1|-1;HT=e01e04426;MF=jiapeng.chong@linux.alibaba.com;NM=1;PH=DS;RN=6;SR=0;TI=SMTPD_---0UVWI-Bn_1618382763; Received: from j63c13417.sqa.eu95.tbsite.net(mailfrom:jiapeng.chong@linux.alibaba.com fp:SMTPD_---0UVWI-Bn_1618382763) by smtp.aliyun-inc.com(127.0.0.1); Wed, 14 Apr 2021 14:46:08 +0800 From: Jiapeng Chong To: mark@fasheh.com Cc: jlbec@evilplan.org, joseph.qi@linux.alibaba.com, ocfs2-devel@oss.oracle.com, linux-kernel@vger.kernel.org, Jiapeng Chong Subject: [PATCH] ocfs2/dlm: remove unused function Date: Wed, 14 Apr 2021 14:46:01 +0800 Message-Id: <1618382761-5784-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: fs/ocfs2/dlm/dlmrecovery.c:129:20: warning: unused function 'dlm_reset_recovery' [-Wunused-function]. Reported-by: Abaci Robot Signed-off-by: Jiapeng Chong --- fs/ocfs2/dlm/dlmrecovery.c | 7 ------- 1 file changed, 7 deletions(-) diff --git a/fs/ocfs2/dlm/dlmrecovery.c b/fs/ocfs2/dlm/dlmrecovery.c index 4b566e8..afc5173 100644 --- a/fs/ocfs2/dlm/dlmrecovery.c +++ b/fs/ocfs2/dlm/dlmrecovery.c @@ -126,13 +126,6 @@ static inline void __dlm_reset_recovery(struct dlm_ctxt *dlm) dlm_set_reco_master(dlm, O2NM_INVALID_NODE_NUM); } -static inline void dlm_reset_recovery(struct dlm_ctxt *dlm) -{ - spin_lock(&dlm->spinlock); - __dlm_reset_recovery(dlm); - spin_unlock(&dlm->spinlock); -} - /* Worker function used during recovery. */ void dlm_dispatch_work(struct work_struct *work) { -- 1.8.3.1