From patchwork Thu Aug 23 11:34:53 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Gustavo Pimentel X-Patchwork-Id: 961296 X-Patchwork-Delegate: lorenzo.pieralisi@arm.com Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=none (mailfrom) smtp.mailfrom=vger.kernel.org (client-ip=209.132.180.67; helo=vger.kernel.org; envelope-from=linux-pci-owner@vger.kernel.org; receiver=) Authentication-Results: ozlabs.org; dmarc=pass (p=none dis=none) header.from=synopsys.com Authentication-Results: ozlabs.org; dkim=pass (2048-bit key; unprotected) header.d=synopsys.com header.i=@synopsys.com header.b="mE6en4Ut"; dkim-atps=neutral Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by ozlabs.org (Postfix) with ESMTP id 41x2QJ2W1cz9s7X for ; Thu, 23 Aug 2018 21:35:04 +1000 (AEST) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1730327AbeHWPEU (ORCPT ); Thu, 23 Aug 2018 11:04:20 -0400 Received: from smtprelay2.synopsys.com ([198.182.60.111]:54348 "EHLO smtprelay.synopsys.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726246AbeHWPEU (ORCPT ); Thu, 23 Aug 2018 11:04:20 -0400 Received: from mailhost.synopsys.com (mailhost2.synopsys.com [10.13.184.66]) by smtprelay.synopsys.com (Postfix) with ESMTP id 544B110C1AD9; Thu, 23 Aug 2018 04:35:02 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=synopsys.com; s=mail; t=1535024102; bh=oIdRNGn1hT2cnPBIwPLGiQZnpbxmJgeTyEzzbs8o0aU=; h=From:To:Cc:Subject:Date:From; b=mE6en4UtRPGnSotFJkoKoGRQ3dq8Oj97X1yeJkpyxzHioGWU3r3GyiD+bcACFqpiQ 2OW6R2OKttG4iFGuS3k6D1Obe9FitkdN23VTdgxqS2z3uhydXvZz2fbNL2vAVpkk46 woSAIQwreJvnZarIXlnggQt7aw+VJWtcsbC1OR5YKOTNLYqEWBkJQ87XOw2ratNg+b ga6Mcmg3rtVo2nMl9L8Buo1RwGddAQSGA8BTRQqM+3a0YMSuRC/N46U9zKe2HtZnMk vL53sffYSCHMo8TnF57Uw7xTgg2ONwK+HlX7pR4CEnKVPuoBNChe+sU0ijnxSayiAi 0jY5Hyb3bGv9g== Received: from de02.synopsys.com (de02.internal.synopsys.com [10.225.17.21]) by mailhost.synopsys.com (Postfix) with ESMTP id 127C438AE; Thu, 23 Aug 2018 04:35:02 -0700 (PDT) Received: from de02dwia024.internal.synopsys.com (de02dwia024.internal.synopsys.com [10.225.19.81]) by de02.synopsys.com (Postfix) with ESMTP id 3A1063E6E8; Thu, 23 Aug 2018 13:35:01 +0200 (CEST) From: Gustavo Pimentel To: bhelgaas@google.com, lorenzo.pieralisi@arm.com, kishon@ti.com Cc: linux-pci@vger.kernel.org, linux-kernel@vger.kernel.org, Gustavo Pimentel Subject: [PATCH] tools/pci: Fix compilation warnings Date: Thu, 23 Aug 2018 13:34:53 +0200 Message-Id: X-Mailer: git-send-email 2.7.4 Sender: linux-pci-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-pci@vger.kernel.org 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) {