Received: by 2002:a25:868d:0:0:0:0:0 with SMTP id z13csp2857719ybk; Mon, 18 May 2020 09:34:51 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxNYx7IphP5bymobtJiFCwKRG+Qg2RdXqB8kJ0YLrlaAZopRhMXAyqPUqbmYUNIt3dComxQ X-Received: by 2002:a17:906:6d90:: with SMTP id h16mr15424404ejt.117.1589819691425; Mon, 18 May 2020 09:34:51 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1589819691; cv=none; d=google.com; s=arc-20160816; b=aNAAYYhpdAkMHjUXBGXc2vbbNH/b8Pm7j2J6pWZQW3N8iJw8k7VSUvTWHZCBn1XZdQ mIpqMk1C0/M64cmmJssgl+PV7+1w3x1gMvMcrgoi9ZiY745INkLG7ArtVYUni1VR/H+G jc8udKf+nC6+NjJebuQe4RVzpa5CcPz11+PlmjGm0k+QmsaxZlbzyaQtQOTfRKh0ID6v avdFIVZQFhdtW/akAv8okQxI2ofMBwuWACYpoKLhFDLd2MOMQ+tKKG4b6xW3ik0uffzW 85aTz+Gej8z+jB+T4eJADCJfFsD07I4q/6zgP4DaM7gGmn1sNAW4N04vmPIGoIIfcWTx CLpA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:dkim-signature; bh=FEH7JHR8Qb3duOaucOU5YLOgOXF0CphuFUPP+1XhkR8=; b=kZQAWOF9qEqmbbUsr42+5wPatYbxbfbQ0E/91VS6Td3EZgqGzZNmeKmIg9unlRLSX0 u2Qt31qRU0KDC22uMMPXQtkl8ltisTJv4tusBFPmNm3kw5z9hsRYU2+yJ9g4GDx+Z7bd /ow2zGIpfMzfCy/Pjuq3E0KY0VVcakC7PrVlaau6pj2GZg5F7DTJPyD+btn5dianixQh C7JeDkRR1Ww89PDnAVHWceleoSf4rfuyuNZtQxxUozzfcGI0RnwJia/vxz4MkMSGHhxU Mg617fbGEYbHoqQsNSzGsJjL9t/oG9qFgsKZEC6LhZwVK7iJ6EsTY3UGdhCh03sD8s8j 1LgA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@google.com header.s=20161025 header.b=mTMYUfv5; 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=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id u6si5250597edp.229.2020.05.18.09.34.27; Mon, 18 May 2020 09:34:51 -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; dkim=pass header.i=@google.com header.s=20161025 header.b=mTMYUfv5; 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=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728142AbgERQcm (ORCPT + 99 others); Mon, 18 May 2020 12:32:42 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:48920 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728097AbgERQcm (ORCPT ); Mon, 18 May 2020 12:32:42 -0400 Received: from mail-ot1-x342.google.com (mail-ot1-x342.google.com [IPv6:2607:f8b0:4864:20::342]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 4BB78C061A0C for ; Mon, 18 May 2020 09:32:42 -0700 (PDT) Received: by mail-ot1-x342.google.com with SMTP id 69so4008222otv.2 for ; Mon, 18 May 2020 09:32:42 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=FEH7JHR8Qb3duOaucOU5YLOgOXF0CphuFUPP+1XhkR8=; b=mTMYUfv5am96J+UIsuYVITSQWEihRgzgjffFupaTD3mAfSqragjccLZ1w6KSEaE0ao AVn1L7BxBBkdplfXGtCk37yXl2uFaTGKCN2UHxT8PqrK3GqUbIgqOBV4gguQvq0vug1F eniZuOCwagIDcTg2ZvhUDzV4UAkt46yEdq6RaEYJs1EVaYHcIGNoWAZn5ChfQyZOMF5B Q5Lr6gjB6JnTTsZg3bjuwQFklmc0uqpPBsXgwQCMeECP/IfjrKgzU8VGMPafUsnfWE9P c/LJ4yqOdhDfBpn3XIEAqkVQU3+tElsFNd2B/ivchf70+zzZtvCYFXmJLi1SdtZm9b/q 9IMA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=FEH7JHR8Qb3duOaucOU5YLOgOXF0CphuFUPP+1XhkR8=; b=h+gHuMgtOzop0V8LnqXiRJB9/7bbO6nfaukAcx0It2PmEulUyMYCFruiZJbFqcc54o f8L/Ik88LqHPKy7JX9EjzBaDkhGO9sx6rDVT+KFEE0HXSE6mqhragT8wR4pfs3MG14Xn 4Gh1HQPrUPlfclhTfu7jr5W06U5uueKwZfdoKDIVqicRIQ80NUlwIJPYO0gATRzUKuja HQ3TDvBz0ayScabtj6zGKPFrPcA/eAeQ6jUBu1LikXnDBwOOxIXXQHVIWDs33Nc1NejL qySK8Z44kTVx4bWq3b4j7PPCKKYpZsgKvuscdYCnJlwHNtzG+vOn15ENF7lxP+cucx7a vrRA== X-Gm-Message-State: AOAM531kdPLQ9aD01SjIIrYcOK1dhmgFH7+F4pAeAfCadjd58vf4F07u QZT+mjT5ozbZMgLNDZ71xgYnkFnHWRxrosm2onb0PxyV X-Received: by 2002:a05:6830:1d69:: with SMTP id l9mr8587784oti.127.1589819561468; Mon, 18 May 2020 09:32:41 -0700 (PDT) MIME-Version: 1.0 References: <20200517001245.361762-1-jhubbard@nvidia.com> <20200517001245.361762-2-jhubbard@nvidia.com> In-Reply-To: <20200517001245.361762-2-jhubbard@nvidia.com> From: Mina Almasry Date: Mon, 18 May 2020 09:32:30 -0700 Message-ID: Subject: Re: [PATCH 1/2] selftests/vm/write_to_hugetlbfs.c: fix unused variable warning To: John Hubbard Cc: Andrew Morton , Brian Geffon , "Kirill A . Shutemov" , Shuah Khan , LKML , Linux-MM , linux-kselftest@vger.kernel.org Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Sat, May 16, 2020 at 5:12 PM John Hubbard wrote: > > Remove unused variable "i", which was triggering a compiler warning. > > Fixes: 29750f71a9b4 ("hugetlb_cgroup: add hugetlb_cgroup reservation tests") > Cc: Mina Almasry > Signed-off-by: John Hubbard > --- > tools/testing/selftests/vm/write_to_hugetlbfs.c | 2 -- > 1 file changed, 2 deletions(-) > > diff --git a/tools/testing/selftests/vm/write_to_hugetlbfs.c b/tools/testing/selftests/vm/write_to_hugetlbfs.c > index 110bc4e4015d..6a2caba19ee1 100644 > --- a/tools/testing/selftests/vm/write_to_hugetlbfs.c > +++ b/tools/testing/selftests/vm/write_to_hugetlbfs.c > @@ -74,8 +74,6 @@ int main(int argc, char **argv) > int write = 0; > int reserve = 1; > > - unsigned long i; > - > if (signal(SIGINT, sig_handler) == SIG_ERR) > err(1, "\ncan't catch SIGINT\n"); > > -- > 2.26.2 > Thanks John! Reviewed-By: Mina Almasry