Received: by 2002:a05:6a10:22f:0:0:0:0 with SMTP id 15csp195902pxk; Wed, 16 Sep 2020 23:57:16 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxahpXKigslG9YgZBfeFt5Eb2+kZ0IO8g2Bf5jIU8AzWdnmAcc7ql8abPRsop1Rzu2E+ipm X-Received: by 2002:a05:6402:292:: with SMTP id l18mr32396615edv.6.1600325836465; Wed, 16 Sep 2020 23:57:16 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1600325836; cv=none; d=google.com; s=arc-20160816; b=fnbVNuDHNcNL5hjOz/wPX6C99liyOoHTW5WOmIYuaooOuDy63V8X8dNzxG99ostdkt x4BvhFcjFn+InPklETAfw7SluWV+FiDJNKmL14rIWRNewvTdcWwBMAfoSOpr5r4T0zcF fbD2PTY0b9EP0rMq+W1hK8Fbeb/uQDNUC3ctBpnlUB/JuxP5HI5P7a/GwqiDfPGdqwGv 5ibdMRJTkG+B25YNqAilcmZbEwYV3j5It1OOU9KoxGaSZtIP1kWwhdj5kvk47OsNAYQG BhRo+HAQzpGKRVYu0ZMy/1RDuhCcK7M+rhgs4qpP/BFnlhWKHz5qL/RY7OW+Wg4dxpBF 648Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from; bh=/dFGpIbp7bsNEhuB42jti4/Om14q45SLpJ6YhUbunFU=; b=R5lp8zzDUMwHYBqQYpkx9D2zrEScjvyboRM/76jutCskcVgrIITEiCXagtaOZmye/t +UGzdnVjQZR+CBnczkSJjWTLZEq7oSUAdhn4nEjfqj1mAnwgK9AiNillnGuQWtGRAVqi RbWsiZMIw9fBnDD/CvfXV9lqS7mLrDKxcIYWcg1Qm58JqWfO13qvcxfdjNiu2oOvpM1d ABf4sSKwDnwDtn4s7OoeVyQyfvB2ZOaATqhoYddGTS289C5NKwlsbHhLwHvgPdPRDCP0 jyR7TwK5sn0Jcfu7b/2s79I49kYnj2+EETLoPs3b2n+2xG5xh6Ubh1dQb1u6CaMTd9HY P7fA== 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id cf25si13790397ejb.67.2020.09.16.23.56.52; Wed, 16 Sep 2020 23:57:16 -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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726217AbgIQGzo (ORCPT + 99 others); Thu, 17 Sep 2020 02:55:44 -0400 Received: from szxga06-in.huawei.com ([45.249.212.32]:39332 "EHLO huawei.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1726186AbgIQGzh (ORCPT ); Thu, 17 Sep 2020 02:55:37 -0400 Received: from DGGEMS404-HUB.china.huawei.com (unknown [172.30.72.58]) by Forcepoint Email with ESMTP id 4540C8AC5D0F2C10B575; Thu, 17 Sep 2020 14:55:34 +0800 (CST) Received: from huawei.com (10.175.113.32) by DGGEMS404-HUB.china.huawei.com (10.3.19.204) with Microsoft SMTP Server id 14.3.487.0; Thu, 17 Sep 2020 14:55:24 +0800 From: Liu Shixin To: Andrew Morton CC: , , Liu Shixin Subject: [PATCH -next] mm/madvise: Remove set but not used variable 'zone' Date: Thu, 17 Sep 2020 15:17:57 +0800 Message-ID: <20200917071757.1915501-1-liushixin2@huawei.com> X-Mailer: git-send-email 2.25.1 MIME-Version: 1.0 Content-Transfer-Encoding: 7BIT Content-Type: text/plain; charset=US-ASCII X-Originating-IP: [10.175.113.32] X-CFilter-Loop: Reflected Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Fixes gcc '-Wunused-but-set-variable' warning: mm/madvise.c: In function 'madvise_inject_error': mm/madvise.c:882:15: warning: unused variable 'zone' [-Wunused-variable] After 4b63fdbe2b25 ("mm: remove the now-unnecessary mmget_still_valid() hack"), variable 'zone' is never used. Remove it to avoid build warning. Signed-off-by: Liu Shixin --- mm/madvise.c | 1 - 1 file changed, 1 deletion(-) diff --git a/mm/madvise.c b/mm/madvise.c index 460e19d60ba3..94b9d17331b9 100644 --- a/mm/madvise.c +++ b/mm/madvise.c @@ -879,7 +879,6 @@ static long madvise_remove(struct vm_area_struct *vma, static int madvise_inject_error(int behavior, unsigned long start, unsigned long end) { - struct zone *zone; unsigned long size; if (!capable(CAP_SYS_ADMIN)) -- 2.25.1