Received: by 2002:ac0:a582:0:0:0:0:0 with SMTP id m2-v6csp2421644imm; Wed, 3 Oct 2018 03:42:27 -0700 (PDT) X-Google-Smtp-Source: ACcGV620vUJtprkG8j8YBjSKVUQbMikiTyUcAQ5dRJqdzONWhfb3FEinnoAX5go1lN60IpqIjapr X-Received: by 2002:a17:902:e111:: with SMTP id cc17-v6mr962033plb.175.1538563347301; Wed, 03 Oct 2018 03:42:27 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1538563347; cv=none; d=google.com; s=arc-20160816; b=aagIjX1MWppeRwClL6XGSuz3esY2zxwQrUl9ojpOar1Pn/oxQeGRPR4KhFp0T2fVda QK0GBoWx1jfpNAS2FBuvri7dC4uFuIsiupQuXPEmwrErjD4PXLFzOwhqftz804pk/rub 2a635zrb9KkK6i0ORK9TY98IFMH/3ObWo0QgHCKsUHjig0yIrgEV8nig8wr2mCQsVuvO s5EjGg3fhOuOucF1+kEs+voPvo3DQdbxyVnkq4eibortcuye+HrH+xO96VMF0altgRlN etcsmoIKWC1552i5TsIHlRosUdHMFjMeXAihUPo5S3bQ9vD7jvCVnLuqZYdhxZbx4P57 Em5Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date; bh=3utlZOJ/Z0GuqKLIcSuRgAK5+zFG5kuk6Fw1oWBTB5U=; b=kpK3L4VOS1Xn7Cq+ITu+aV3028k21Oem0LFtI9DAgXl7GFcDjLiI1S/GOUzRUTxW1f xZsJGOWL/WK+pWRT28P7ZhZllqb8I1/IuDtM1icMoQI3PkzFhAuXqxY0eSnenUS/1QW8 3xmwIJ54O8DnZ+RQXNnwQ/gJbRWMI8L5r1Uhpms9bfagLYBihkAsE2iqxl+o7zSJD3+6 sZiPycyEb5aoVftWXjdglXgM/f87z0hMwPoODMqfP3xsqJ0/Ecn8g/urMIdvK3z8apNV kPQSrJeV5MZWeVDtgXZMMibzRNppFKAGt4ABpjfE5QhS4WcbaCI98c79kKRikuU0LHen 9Udw== 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 b1-v6si1154607pfc.156.2018.10.03.03.42.11; Wed, 03 Oct 2018 03:42:27 -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 S1726829AbeJCR3Q (ORCPT + 99 others); Wed, 3 Oct 2018 13:29:16 -0400 Received: from usa-sjc-mx-foss1.foss.arm.com ([217.140.101.70]:49286 "EHLO foss.arm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726693AbeJCR3Q (ORCPT ); Wed, 3 Oct 2018 13:29:16 -0400 Received: from usa-sjc-imap-foss1.foss.arm.com (unknown [10.72.51.249]) by usa-sjc-mx-foss1.foss.arm.com (Postfix) with ESMTP id 057C118A; Wed, 3 Oct 2018 03:41:28 -0700 (PDT) Received: from e107981-ln.cambridge.arm.com (e107981-ln.emea.arm.com [10.4.13.117]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id DA8F13F5A0; Wed, 3 Oct 2018 03:41:26 -0700 (PDT) Date: Wed, 3 Oct 2018 11:41:21 +0100 From: Lorenzo Pieralisi To: Gustavo Pimentel Cc: bhelgaas@google.com, kishon@ti.com, linux-pci@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH] tools/pci: Fix compilation warnings Message-ID: <20181003104121.GA13827@e107981-ln.cambridge.arm.com> References: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.24 (2015-08-30) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, Aug 23, 2018 at 01:34:53PM +0200, Gustavo Pimentel wrote: > Fix compilation warnings: > - remove unused variables > - change function return from int to void, since it's not used > > Signed-off-by: Gustavo Pimentel > --- > tools/pci/pcitest.c | 7 ++----- > 1 file changed, 2 insertions(+), 5 deletions(-) Applied to pci/tools for v4.20, however, I reformatted the subject to make it in line with previous commits and added the warnings that you are fixing in the commit log. Lorenzo > diff --git a/tools/pci/pcitest.c b/tools/pci/pcitest.c > index 9074b47..8ca1c62 100644 > --- a/tools/pci/pcitest.c > +++ b/tools/pci/pcitest.c > @@ -23,7 +23,6 @@ > #include > #include > #include > -#include > #include > > #include > @@ -43,17 +42,15 @@ struct pci_test { > unsigned long size; > }; > > -static int run_test(struct pci_test *test) > +static void run_test(struct pci_test *test) > { > long ret; > int fd; > - struct timespec start, end; > - double time; > > fd = open(test->device, O_RDWR); > if (fd < 0) { > perror("can't open PCI Endpoint Test device"); > - return fd; > + return; > } > > if (test->barnum >= 0 && test->barnum <= 5) { > -- > 2.7.4 >