Received: by 2002:ac0:a5a6:0:0:0:0:0 with SMTP id m35-v6csp180648imm; Tue, 18 Sep 2018 19:29:15 -0700 (PDT) X-Google-Smtp-Source: ANB0VdYt1kaGiIQdag5K2vASGSxymyQCyLegVKWdgCdpfEBau1qXYEtkWg2r4sucSnBPNJC11rNO X-Received: by 2002:a63:4425:: with SMTP id r37-v6mr30053690pga.391.1537324155834; Tue, 18 Sep 2018 19:29:15 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1537324155; cv=none; d=google.com; s=arc-20160816; b=RndEslDGUkjfiabo24dymPxucZi/jt+A0V/L29P/MXS6VBP/sWO+113ri84faykCwk igGqGN+Bgi34mlz7sQLEH9v3DFNXN3UMPneTLVYHhzcufixdM5JVymEYZdk+slI9W5KB GTnPEsbn6K1J5Qlr+PnznKGCFx+zjV5cxraj3GdkS5YRRg0hga54hs5oBaExpoLznsMx z+SX3Fe2Yspi3dY6ps7My27x8Xs5YiaHBWQYd25a4O0G6qsZ3L2TxPkyeXsf3mJrVuv6 rnYI6LXsQXHwMgx1DKjE/+kr0R8yohikXSKX4ocTUsvNaqVxA3J04uf1Hc9Ha6LsHePU 1wtw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:message-id:date:subject:cc :to:from; bh=+EwoVd9W3TX2pexjJJ25t+bCfhkXukaweBu/ALkxtNs=; b=FNwNvVsRptOEptIuY3SfdvtLzUgLKSHG67ZUV0EpU2uZGqBuShNJgfwMORJAWKzNKC XYhMzjFSKCfntwnwhRSTkX6mpTwbkXWNjnyQVr6nREyvIRv040iS+iG7Kb0jcA2Sq4Uu NxhxATvi+YtAlxGBV3nHelJ7Ql8T4i4+gql7TDW2Wd/osS/CMqF3a2ntL8Rlushz84q1 VLtTNUc9Ki6CICLTVcVEpk5Py7OyNAGZWzXmgjkjLEJgQMmrW4J+8zqwqKyZwwjoWtpQ Tl6J2Y+n1WkqAV6+dYuTgZl2vOJO9dwr1NSwqWEs2nSPDPzEfbleYiVKFHNS6x7HX+0H UIBA== 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 u7-v6si20134533plr.46.2018.09.18.19.28.57; Tue, 18 Sep 2018 19:29:15 -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 S1730854AbeISIEX (ORCPT + 99 others); Wed, 19 Sep 2018 04:04:23 -0400 Received: from szxga07-in.huawei.com ([45.249.212.35]:51514 "EHLO huawei.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1730667AbeISIEX (ORCPT ); Wed, 19 Sep 2018 04:04:23 -0400 Received: from DGGEMS401-HUB.china.huawei.com (unknown [172.30.72.59]) by Forcepoint Email with ESMTP id EB8A9A95DB804; Wed, 19 Sep 2018 10:28:48 +0800 (CST) Received: from linux-ibm.site (10.175.102.37) by DGGEMS401-HUB.china.huawei.com (10.3.19.201) with Microsoft SMTP Server id 14.3.399.0; Wed, 19 Sep 2018 10:28:42 +0800 From: zhong jiang To: CC: , , , Subject: [PATCH] staging: erofs: Fix a unused variable 'arg' warning Date: Wed, 19 Sep 2018 10:16:21 +0800 Message-ID: <1537323381-23839-1-git-send-email-zhongjiang@huawei.com> X-Mailer: git-send-email 1.7.12.4 MIME-Version: 1.0 Content-Type: text/plain 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 I find the following warning when compiling the kernel. drivers/staging/erofs/super.c:195:6: warning: unused variable 'arg' [-Wunused-variable] int arg = 0; Signed-off-by: zhong jiang --- drivers/staging/erofs/super.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/drivers/staging/erofs/super.c b/drivers/staging/erofs/super.c index 6423592..c04313f 100644 --- a/drivers/staging/erofs/super.c +++ b/drivers/staging/erofs/super.c @@ -192,7 +192,9 @@ static int parse_options(struct super_block *sb, char *options) { substring_t args[MAX_OPT_ARGS]; char *p; +#ifdef CONFIG_EROFS_FAULT_INJECTION int arg = 0; +#endif if (!options) return 0; -- 1.7.12.4