From patchwork Sun May 17 00:12:44 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: John Hubbard X-Patchwork-Id: 11553797 Return-Path: Received: from mail.kernel.org (pdx-korg-mail-1.web.codeaurora.org [172.30.200.123]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id C986814B7 for ; Sun, 17 May 2020 00:12:53 +0000 (UTC) Received: from kanga.kvack.org (kanga.kvack.org [205.233.56.17]) by mail.kernel.org (Postfix) with ESMTP id 952BE2075F for ; Sun, 17 May 2020 00:12:53 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=nvidia.com header.i=@nvidia.com header.b="XQMXj0qV" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 952BE2075F Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=nvidia.com Authentication-Results: mail.kernel.org; spf=pass smtp.mailfrom=owner-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix) id 75B8F900002; Sat, 16 May 2020 20:12:52 -0400 (EDT) Delivered-To: linux-mm-outgoing@kvack.org Received: by kanga.kvack.org (Postfix, from userid 40) id 6BC378E0001; Sat, 16 May 2020 20:12:52 -0400 (EDT) X-Original-To: int-list-linux-mm@kvack.org X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id 55E14900002; Sat, 16 May 2020 20:12:52 -0400 (EDT) X-Original-To: linux-mm@kvack.org X-Delivered-To: linux-mm@kvack.org Received: from forelay.hostedemail.com (smtprelay0077.hostedemail.com [216.40.44.77]) by kanga.kvack.org (Postfix) with ESMTP id 3D5E78E0001 for ; Sat, 16 May 2020 20:12:52 -0400 (EDT) Received: from smtpin21.hostedemail.com (10.5.19.251.rfc1918.com [10.5.19.251]) by forelay02.hostedemail.com (Postfix) with ESMTP id F286E40C0 for ; Sun, 17 May 2020 00:12:51 +0000 (UTC) X-FDA: 76824285342.21.sun99_360cea9a9a11c X-Spam-Summary: 1,0,0,,d41d8cd98f00b204,jhubbard@nvidia.com,,RULES_HIT:30054:30056:30064,0,RBL:216.228.121.65:@nvidia.com:.lbl8.mailshell.net-64.10.201.10 62.18.0.100,CacheIP:none,Bayesian:0.5,0.5,0.5,Netcheck:none,DomainCache:0,MSF:not bulk,SPF:ft,MSBL:0,DNSBL:neutral,Custom_rules:0:0:0,LFtime:25,LUA_SUMMARY:none X-HE-Tag: sun99_360cea9a9a11c X-Filterd-Recvd-Size: 3577 Received: from hqnvemgate26.nvidia.com (hqnvemgate26.nvidia.com [216.228.121.65]) by imf16.hostedemail.com (Postfix) with ESMTP for ; Sun, 17 May 2020 00:12:51 +0000 (UTC) Received: from hqpgpgate102.nvidia.com (Not Verified[216.228.121.13]) by hqnvemgate26.nvidia.com (using TLS: TLSv1.2, DES-CBC3-SHA) id ; Sat, 16 May 2020 17:12:37 -0700 Received: from hqmail.nvidia.com ([172.20.161.6]) by hqpgpgate102.nvidia.com (PGP Universal service); Sat, 16 May 2020 17:12:49 -0700 X-PGP-Universal: processed; by hqpgpgate102.nvidia.com on Sat, 16 May 2020 17:12:49 -0700 Received: from HQMAIL109.nvidia.com (172.20.187.15) by HQMAIL101.nvidia.com (172.20.187.10) with Microsoft SMTP Server (TLS) id 15.0.1473.3; Sun, 17 May 2020 00:12:49 +0000 Received: from hqnvemgw03.nvidia.com (10.124.88.68) by HQMAIL109.nvidia.com (172.20.187.15) with Microsoft SMTP Server (TLS) id 15.0.1473.3 via Frontend Transport; Sun, 17 May 2020 00:12:49 +0000 Received: from sandstorm.nvidia.com (Not Verified[10.2.48.175]) by hqnvemgw03.nvidia.com with Trustwave SEG (v7,5,8,10121) id ; Sat, 16 May 2020 17:12:49 -0700 From: John Hubbard To: Andrew Morton CC: Brian Geffon , "Kirill A . Shutemov" , Mina Almasry , Shuah Khan , LKML , , , John Hubbard Subject: [PATCH 1/2] selftests/vm/write_to_hugetlbfs.c: fix unused variable warning Date: Sat, 16 May 2020 17:12:44 -0700 Message-ID: <20200517001245.361762-2-jhubbard@nvidia.com> X-Mailer: git-send-email 2.26.2 In-Reply-To: <20200517001245.361762-1-jhubbard@nvidia.com> References: <20200517001245.361762-1-jhubbard@nvidia.com> MIME-Version: 1.0 X-NVConfidentiality: public DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nvidia.com; s=n1; t=1589674357; bh=uXlixiau1j95RmP9NA0wbCzX6HbvCN4ClDBoBcdanXk=; h=X-PGP-Universal:From:To:CC:Subject:Date:Message-ID:X-Mailer: In-Reply-To:References:MIME-Version:X-NVConfidentiality: Content-Transfer-Encoding:Content-Type; b=XQMXj0qV/AX9NTtDgbIPGM40WnkSIrkE2RybnGe2neRMyAulj5Z4pu365jtx1rvkQ rNL8RTKovH405wwCgP7joRSwu+dX5VG4LWoE2V8QU0h1ueNMSCluL8VU9MbLcHvBWp +/0NMhjX8XBTgWgslN7enIlTy5/RVuO62sznjEew3sIif6hlTwzLPta7JuMQkQKi31 meVJAzwMzBRKkt29s2F/w0zqcq6cn7cDZBn6XI3oMxKWLNE5RdShk0YvFD58nK5kwS 95BR6IlaM3S4hMsA5t+ebSLDRLR8l//Di2ZWeeWU1xUfvriSrQQTAiIijSGSMRkg55 hdODhy2/5arjQ== X-Bogosity: Ham, tests=bogofilter, spamicity=0.000000, version=1.2.4 Sender: owner-linux-mm@kvack.org Precedence: bulk X-Loop: owner-majordomo@kvack.org List-ID: 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 Reviewed-By: Mina Almasry Reviewed-By: Mina Almasry --- 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");