From patchwork Thu Apr 16 00:26:16 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Ralph Campbell X-Patchwork-Id: 11492129 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 F3782186E for ; Thu, 16 Apr 2020 00:26:40 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id D11F12078B for ; Thu, 16 Apr 2020 00:26:40 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=nvidia.com header.i=@nvidia.com header.b="gt7M8eyE" Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2391657AbgDPA0k (ORCPT ); Wed, 15 Apr 2020 20:26:40 -0400 Received: from hqnvemgate24.nvidia.com ([216.228.121.143]:8924 "EHLO hqnvemgate24.nvidia.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729382AbgDPA0i (ORCPT ); Wed, 15 Apr 2020 20:26:38 -0400 Received: from hqpgpgate102.nvidia.com (Not Verified[216.228.121.13]) by hqnvemgate24.nvidia.com (using TLS: TLSv1.2, DES-CBC3-SHA) id ; Wed, 15 Apr 2020 17:24:47 -0700 Received: from hqmail.nvidia.com ([172.20.161.6]) by hqpgpgate102.nvidia.com (PGP Universal service); Wed, 15 Apr 2020 17:26:37 -0700 X-PGP-Universal: processed; by hqpgpgate102.nvidia.com on Wed, 15 Apr 2020 17:26:37 -0700 Received: from HQMAIL109.nvidia.com (172.20.187.15) by HQMAIL107.nvidia.com (172.20.187.13) with Microsoft SMTP Server (TLS) id 15.0.1473.3; Thu, 16 Apr 2020 00:26:37 +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; Thu, 16 Apr 2020 00:26:36 +0000 Received: from rcampbell-dev.nvidia.com (Not Verified[10.110.48.66]) by hqnvemgw03.nvidia.com with Trustwave SEG (v7,5,8,10121) id ; Wed, 15 Apr 2020 17:26:36 -0700 From: Ralph Campbell To: , , CC: Andrew Morton , Shuah Khan , Mina Almasry , Mike Kravetz , Ralph Campbell Subject: [PATCH] hugetlb_cgroup: remove unused variable 'i' Date: Wed, 15 Apr 2020 17:26:16 -0700 Message-ID: <20200416002616.1456-1-rcampbell@nvidia.com> X-Mailer: git-send-email 2.20.1 MIME-Version: 1.0 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nvidia.com; s=n1; t=1586996687; bh=9UZSapsojgfRmmTfw+tENe0Xr/PLjL9zE3AQIRo5sNA=; h=X-PGP-Universal:From:To:CC:Subject:Date:Message-ID:X-Mailer: MIME-Version:Content-Type:Content-Transfer-Encoding; b=gt7M8eyEcd1zQnqT6ReYNOKqm4WamYPdBKlW+lIccYRu/R1nfADBrdupYeXgYSkP+ cjRu7CZafcYFS6HQ0lh5GPzXT+getlgb3i42UOSp20AX6eAgEvWg0AwJfHYZNhx72d g2RkoIPRI3T2bTMP4uPMBHuEkb52oYyxpgbdpRN5De1shm3279q0LXObn3vd3qqpQD bkxxRquLKGSOjRwCDqHQCi5KxO2hOO6wOuYznnJ1+i08xoOrNxK0nCtYt0hVyhLdMd heFlF+CjjlQysaPEzZorTyndf3O0uC7PGSplrPSCgQO2Wt4j4qPxFtFcPAuUYU4b88 uN9qmKSsp0pjg== Sender: linux-kselftest-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kselftest@vger.kernel.org Compiling tests in tools/testing/selftests/vm/ results in a C compiler warning: write_to_hugetlbfs.c: In function ‘main’: write_to_hugetlbfs.c:77:16: warning: unused variable ‘i’ 77 | unsigned long i; Delete the unused variable. Fixes: 29750f71a9b4 ("hugetlb_cgroup: add hugetlb_cgroup reservation tests") Signed-off-by: Ralph Campbell 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");