Received: by 2002:ac0:a5a6:0:0:0:0:0 with SMTP id m35-v6csp933804imm; Fri, 14 Sep 2018 08:30:14 -0700 (PDT) X-Google-Smtp-Source: ANB0VdbeuMb07nm20mglEsignv/jbrJ0sghDZJ9xQHEaeK5dndOpfAAwyfX8WjZSxngYoRyhgtM4 X-Received: by 2002:a63:4c54:: with SMTP id m20-v6mr9871614pgl.292.1536939014890; Fri, 14 Sep 2018 08:30:14 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1536939014; cv=none; d=google.com; s=arc-20160816; b=vXcSonae6KzGOxA5GLWaRYLN4kznxvaavWdFD2VtHNsWLlmnoYdAAo5QJhITIS1FiB 6YXg+cOHPQly+fpJON/j8/yDrxtXV/GNmfPrl4NBNZHzL6tQ3TB2Fu2+et+s2o36GquN v7YYE2nt7ScqhVxd9gVkqeWuij8k58IdF3HQ0sQHzRE32rKZ0nAO1FKOz7dCkvoX7rtz PAcu/mmMolqnqBdI5iUvfDgS+5tybCqQ7po+DVbNmIOd2a3QmPZHfzR03KQYkS8HY2ph 2e+mjq8G17c/3B/ovdKiNfSx3R1MuBuF2vetBmWXhbIUyXyjBaTbpxg6O2MlUFnGfwOI 7lBQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from; bh=AGv3hJltPqXew7sZX1YsN04Zw+AiwhtDH+iDwkyTcfE=; b=0MvQtKuHL/0548lqRh2FrzfcyQhD3EhDapcmBlhvuHRiWmERns9nWE4sd1Cwwj2vTh Qv7D9FVbQ6tYl7ZH8VOYLqeC/9T2ZLXoNe9mtHVXpt0ftCY4tkmni1nxcGaI1YXZQKQl SOvOp8SFnmmPEySnOhpjeNq2w3DhC/hiva7GAWzQdZDlZiJTsDO/Log9o2StVOiUbnIo HEuuqcNznKhZO+38GVmtgYbI7JnXrK4jTuhVkQalw5kEqn91huGhZPz8+InaS+J/MbFT YgPFM4IkqgCcacBMiE4/rlwWs9G2+MRknt0Fj7ftrPW/CdNxPFOr7uylqKmfgo/zJV3w 6Kfg== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id c13-v6si6706867pfi.256.2018.09.14.08.29.59; Fri, 14 Sep 2018 08:30:14 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728292AbeINUnP (ORCPT + 99 others); Fri, 14 Sep 2018 16:43:15 -0400 Received: from szxga06-in.huawei.com ([45.249.212.32]:49694 "EHLO huawei.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1726902AbeINUnP (ORCPT ); Fri, 14 Sep 2018 16:43:15 -0400 Received: from DGGEMS413-HUB.china.huawei.com (unknown [172.30.72.58]) by Forcepoint Email with ESMTP id 10199B2CE875B; Fri, 14 Sep 2018 23:28:09 +0800 (CST) Received: from linux-ibm.site (10.175.102.37) by DGGEMS413-HUB.china.huawei.com (10.3.19.213) with Microsoft SMTP Server id 14.3.399.0; Fri, 14 Sep 2018 23:28:05 +0800 From: zhong jiang To: , , CC: , Subject: [PATCH] ocfs2: Fix a GCC compiled warning. Date: Fri, 14 Sep 2018 23:15:48 +0800 Message-ID: <1536938148-32110-1-git-send-email-zhongjiang@huawei.com> X-Mailer: git-send-email 1.7.12.4 MIME-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 8bit X-Originating-IP: [10.175.102.37] X-CFilter-Loop: Reflected Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Fix the following compile warning: fs/ocfs2/dlmglue.c:99:30: warning: ‘lockdep_keys’ defined but not used [-Wunused-variable] static struct lock_class_key lockdep_keys[OCFS2_NUM_LOCK_TYPES]; Signed-off-by: zhong jiang --- fs/ocfs2/dlmglue.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/fs/ocfs2/dlmglue.c b/fs/ocfs2/dlmglue.c index 040ddb6..7c83582 100644 --- a/fs/ocfs2/dlmglue.c +++ b/fs/ocfs2/dlmglue.c @@ -96,7 +96,9 @@ struct ocfs2_unblock_ctl { }; /* Lockdep class keys */ +#ifdef CONFIG_DEBUG_LOCK_ALLOC static struct lock_class_key lockdep_keys[OCFS2_NUM_LOCK_TYPES]; +#endif static int ocfs2_check_meta_downconvert(struct ocfs2_lock_res *lockres, int new_level); -- 1.7.12.4