Received: by 2002:ac0:a582:0:0:0:0:0 with SMTP id m2-v6csp2324609imm; Wed, 3 Oct 2018 01:57:00 -0700 (PDT) X-Google-Smtp-Source: ACcGV61sm/eCk4k5CgjdIrCJngA7P6xFzTOJa3TrUWY9IAFffGFl/0ulQOeOE4u9lFpa56SaNCcu X-Received: by 2002:a17:902:758f:: with SMTP id j15-v6mr573830pll.160.1538557020409; Wed, 03 Oct 2018 01:57:00 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1538557020; cv=none; d=google.com; s=arc-20160816; b=DfFoDXoK88+GpcPGEHUn6EFsfF4BnH3KphPodYI6Rddlb7+GDtFYNT12fC4mOLhY0N yDHKTMnNz11MbMwraTqwUwo5iJ+BgY/D1coGQpCAAq8qDoujTGp4sD1Tu0k2mtOik2v0 RYNN2oRKLL26E7wOeTL/nyVlzF6PtvbbclcRW/4CZG7hYk9iQqsaUT/jlbl3YYE/G/Rb T7e95e7U0KZMgJ/oUbMF05nIO5VQnaIWivq9Thn2wICQiNaM88/BriuRmIbEXQkllruv DMtGJw7Z8FhHURHrnuXkeIboZBWfLQ5ipadsZldfPVcUKJKbTqiqKLeOizQgI+GNTG0a li5A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding :content-language:in-reply-to:mime-version:user-agent:date :message-id:from:references:cc:to:subject:dkim-signature; bh=4qIR5l4rFUEx/ITrj+nU/Dp4Upw78PHcV2INrcf3RfM=; b=ra11aCJskiKfkPHq3ZfM9wyyMtkheMLZR9paVnPnDzSr7uJy3bTTT1mCAEKWxb3zAB l85qxZ0eLVqVDR6KeFMe/sX/MePK0dIcwZHHCYyq0sZvgLLhaiPlCegP7TjMdkJzfy71 D4DiTSpTWReq0sUuYcSqk5oVc5X0ipYdiD8NNMCNsk5UKgr2iWhP1xhxIYVgaez9xq2+ HpBIVL0FodY0D+oLsjCXwnYZP0ibfmzHmakcKDpgN3xvXw91HvrokL1owhUOlczfuN8B pBFC1kU8XrOySlxvxntk4vpTvvzzTZmiiUayXZD7CRmUkpilEqt2FLxpmYMT5LqIQQiN M7Hg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@ti.com header.s=ti-com-17Q1 header.b=MqeaouCe; 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; dmarc=pass (p=QUARANTINE sp=NONE dis=NONE) header.from=ti.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id g19-v6si902988pfg.225.2018.10.03.01.56.45; Wed, 03 Oct 2018 01:57:00 -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; dkim=pass header.i=@ti.com header.s=ti-com-17Q1 header.b=MqeaouCe; 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; dmarc=pass (p=QUARANTINE sp=NONE dis=NONE) header.from=ti.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727529AbeJCPoG (ORCPT + 99 others); Wed, 3 Oct 2018 11:44:06 -0400 Received: from lelv0142.ext.ti.com ([198.47.23.249]:43184 "EHLO lelv0142.ext.ti.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727356AbeJCPoF (ORCPT ); Wed, 3 Oct 2018 11:44:05 -0400 Received: from dflxv15.itg.ti.com ([128.247.5.124]) by lelv0142.ext.ti.com (8.15.2/8.15.2) with ESMTP id w938uYHQ065009; Wed, 3 Oct 2018 03:56:34 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ti.com; s=ti-com-17Q1; t=1538556994; bh=4qIR5l4rFUEx/ITrj+nU/Dp4Upw78PHcV2INrcf3RfM=; h=Subject:To:CC:References:From:Date:In-Reply-To; b=MqeaouCe9y5gjt5EP4Apx30LayQdhQZcAFSAJLgwF3n9LsfsQ/+4MMe5bK2cD6b8Y rYcEL5Wj7oE1VG3VQPaxUt5vUA/Z4xIG58UMk0ING8NVzyxf1Jn1ZuL07qSVm2fdkT CDWpT4gYwAFGY9pTEJ34XfH4KudTMBtKlSXKClag= Received: from DFLE101.ent.ti.com (dfle101.ent.ti.com [10.64.6.22]) by dflxv15.itg.ti.com (8.14.3/8.13.8) with ESMTP id w938uYi8025869; Wed, 3 Oct 2018 03:56:34 -0500 Received: from DFLE100.ent.ti.com (10.64.6.21) by DFLE101.ent.ti.com (10.64.6.22) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.1466.3; Wed, 3 Oct 2018 03:56:34 -0500 Received: from dlep33.itg.ti.com (157.170.170.75) by DFLE100.ent.ti.com (10.64.6.21) with Microsoft SMTP Server (version=TLS1_0, cipher=TLS_RSA_WITH_AES_256_CBC_SHA) id 15.1.1466.3 via Frontend Transport; Wed, 3 Oct 2018 03:56:34 -0500 Received: from [172.24.190.233] (ileax41-snat.itg.ti.com [10.172.224.153]) by dlep33.itg.ti.com (8.14.3/8.13.8) with ESMTP id w938uV7s010164; Wed, 3 Oct 2018 03:56:32 -0500 Subject: Re: [PATCH] tools/pci: Fix compilation warnings To: Gustavo Pimentel , , CC: , References: From: Kishon Vijay Abraham I Message-ID: <05c2974e-6788-2664-2fc3-b5153bc9f834@ti.com> Date: Wed, 3 Oct 2018 14:26:18 +0530 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.9.1 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset="utf-8" Content-Language: en-US Content-Transfer-Encoding: 7bit X-EXCLAIMER-MD-CONFIG: e1e8a2fd-e40a-4ac6-ac9b-f7e9cc9ee180 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thursday 23 August 2018 05:04 PM, 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 Reviewed-by: Kishon Vijay Abraham I > --- > tools/pci/pcitest.c | 7 ++----- > 1 file changed, 2 insertions(+), 5 deletions(-) > > 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) { >