From patchwork Mon Nov 14 20:51:14 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Robert Bragg X-Patchwork-Id: 9428355 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id 7008D6047D for ; Mon, 14 Nov 2016 20:51:50 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 6136328ADC for ; Mon, 14 Nov 2016 20:51:50 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 5624A28AE3; Mon, 14 Nov 2016 20:51:50 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-4.1 required=2.0 tests=BAYES_00,DKIM_SIGNED, RCVD_IN_DNSWL_MED,T_DKIM_INVALID autolearn=ham version=3.3.1 Received: from gabe.freedesktop.org (gabe.freedesktop.org [131.252.210.177]) (using TLSv1.2 with cipher DHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id 1F40128ADC for ; Mon, 14 Nov 2016 20:51:50 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id AC4F36E50E; Mon, 14 Nov 2016 20:51:49 +0000 (UTC) X-Original-To: intel-gfx@lists.freedesktop.org Delivered-To: intel-gfx@lists.freedesktop.org Received: from mail-pf0-x241.google.com (mail-pf0-x241.google.com [IPv6:2607:f8b0:400e:c00::241]) by gabe.freedesktop.org (Postfix) with ESMTPS id CD9CE6E50E for ; Mon, 14 Nov 2016 20:51:47 +0000 (UTC) Received: by mail-pf0-x241.google.com with SMTP id c4so4098484pfb.3 for ; Mon, 14 Nov 2016 12:51:47 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=sender:from:to:cc:subject:date:message-id:in-reply-to:references; bh=tNYAtP5u4A6nbhoG66rNsLVjsrJkk4jBOlHY5gE+RD4=; b=Bl86z0Yol16PB00AHlPy2m/+QnR9YTOXi+Ub0RHH3wAonRfedv/wvdXqBvbniV0ekG /Hqf9PVbmQnPDmNW6poNyweKL49mj4M46YSww0Q1DECUQZ6eLtLIwIvY6yypT0Gs9tn+ ld0ZKhFIIPCg4HrzPZT8kruPNCuuAKnmpNsJck1VgS0UCfUfAamVUyQfguYEx1ZA9ooU x2XThyx13yKRRJSHPwo6t49tQ4JUcBlGDp3R6SLJntgWJMSEimoIZQo+57d5flTMM9C0 w7/2Hj++sqyfCrdtsb+961aP1Ya3oaMvjtVUx5nuhM9S9RqenSRKlqqxZEi2YKFxbdRj zY3g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:sender:from:to:cc:subject:date:message-id :in-reply-to:references; bh=tNYAtP5u4A6nbhoG66rNsLVjsrJkk4jBOlHY5gE+RD4=; b=MI8kBmT76ROwvypkrLHptC3hdWy6GuIH+mBDrKSctOV6xCUwOOFrlwzMqn9YfQ7jdb wHdWjXWrxiJSsyd5UBKjtxYtBQLE9nZo88AjCEU7PPy9CaSZ+ZxhwJHanP7KomwVrmqT v8+7twRbPTeC/71m0rjV9oZRfgosjRNOhGq3NeaI6dS5SAociBdAmxSA0k4sSzZIt4TK ibqmT+TIZyzgqmhpCJ+2Os22LKZu27/c/aY9C2Pt315yHQi/phlBSLSVM/NH3hxhy609 to1VgEQsp9pIRcI1LGUAhCYNg1mUMgw3cFrjye+u0s+f8VYVOSX/FNrehRFNxkDKLH6w 54MA== X-Gm-Message-State: ABUngvefnVGjKFtDbpyMLpnFTaoicrhxS+H/cLsnM8eimZarolhAQverCp872XshsPr9iA== X-Received: by 10.99.181.86 with SMTP id u22mr31728312pgo.24.1479156707379; Mon, 14 Nov 2016 12:51:47 -0800 (PST) Received: from sixbynine.org (cpc26-heme10-2-0-cust305.9-1.cable.virginm.net. [86.3.57.50]) by smtp.gmail.com with ESMTPSA id yp3sm37352122pac.22.2016.11.14.12.51.46 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Mon, 14 Nov 2016 12:51:46 -0800 (PST) From: Robert Bragg To: intel-gfx@lists.freedesktop.org Date: Mon, 14 Nov 2016 20:51:14 +0000 Message-Id: <20161114205122.10742-6-robert@sixbynine.org> X-Mailer: git-send-email 2.10.1 In-Reply-To: <20161114205122.10742-1-robert@sixbynine.org> References: <20161114205122.10742-1-robert@sixbynine.org> Subject: [Intel-gfx] [PATCH igt v4 05/13] igt/gem_exec_parse: make global vars local to main() X-BeenThere: intel-gfx@lists.freedesktop.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: Intel graphics driver community testing & development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Errors-To: intel-gfx-bounces@lists.freedesktop.org Sender: "Intel-gfx" X-Virus-Scanned: ClamAV using ClamSMTP Signed-off-by: Robert Bragg Reviewed-by: Matthew Auld --- tests/gem_exec_parse.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/tests/gem_exec_parse.c b/tests/gem_exec_parse.c index dcf39a2..ebcd092 100644 --- a/tests/gem_exec_parse.c +++ b/tests/gem_exec_parse.c @@ -375,11 +375,11 @@ static void hsw_load_register_reg(void) close(fd); } -static uint32_t handle; -static int fd; - igt_main { + uint32_t handle; + int fd; + igt_fixture { int parser_version = 0; drm_i915_getparam_t gp;