From patchwork Mon May 9 13:23:11 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Marius Vlad X-Patchwork-Id: 9046691 Return-Path: X-Original-To: patchwork-intel-gfx@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork2.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.29.136]) by patchwork2.web.kernel.org (Postfix) with ESMTP id 82459BF29F for ; Mon, 9 May 2016 13:20:14 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id AF15C200FF for ; Mon, 9 May 2016 13:20:13 +0000 (UTC) Received: from gabe.freedesktop.org (gabe.freedesktop.org [131.252.210.177]) by mail.kernel.org (Postfix) with ESMTP id CC247200DF for ; Mon, 9 May 2016 13:20:12 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id 3618D89958; Mon, 9 May 2016 13:20:11 +0000 (UTC) X-Original-To: intel-gfx@lists.freedesktop.org Delivered-To: intel-gfx@lists.freedesktop.org Received: from mga14.intel.com (mga14.intel.com [192.55.52.115]) by gabe.freedesktop.org (Postfix) with ESMTP id 5E6D289958 for ; Mon, 9 May 2016 13:20:09 +0000 (UTC) Received: from orsmga003.jf.intel.com ([10.7.209.27]) by fmsmga103.fm.intel.com with ESMTP; 09 May 2016 06:20:10 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.24,600,1455004800"; d="scan'208";a="802231252" Received: from mcvlad-wk.rb.intel.com ([10.237.105.57]) by orsmga003.jf.intel.com with ESMTP; 09 May 2016 06:20:08 -0700 From: Marius Vlad To: intel-gfx@lists.freedesktop.org Date: Mon, 9 May 2016 16:23:11 +0300 Message-Id: <1462800191-29284-1-git-send-email-marius.c.vlad@intel.com> X-Mailer: git-send-email 2.8.0.rc3 Subject: [Intel-gfx] [PATCH i-g-t] tests/{gem_ctx_switch, gem_exec_create}: Fix shadow declaration of child variable. 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-Spam-Status: No, score=-6.3 required=5.0 tests=BAYES_00, RCVD_IN_DNSWL_MED, RP_MATCHES_RCVD, UNPARSEABLE_RELAY autolearn=unavailable version=3.3.1 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mail.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP Signed-off-by: Marius Vlad Reviewed-by: Chris Wilson --- tests/gem_ctx_switch.c | 1 - tests/gem_exec_create.c | 1 - 2 files changed, 2 deletions(-) diff --git a/tests/gem_ctx_switch.c b/tests/gem_ctx_switch.c index 691a4f1..004ba22 100644 --- a/tests/gem_ctx_switch.c +++ b/tests/gem_ctx_switch.c @@ -73,7 +73,6 @@ static void single(int fd, uint32_t handle, struct drm_i915_gem_exec_object2 obj; struct drm_i915_gem_relocation_entry reloc; uint32_t contexts[64]; - int child; int n; gem_require_ring(fd, e->exec_id | e->flags); diff --git a/tests/gem_exec_create.c b/tests/gem_exec_create.c index 5cd9302..33fc85c 100644 --- a/tests/gem_exec_create.c +++ b/tests/gem_exec_create.c @@ -75,7 +75,6 @@ static void all(int fd, unsigned flags, int timeout, int ncpus) unsigned engines[16]; unsigned nengine; unsigned engine; - int child; nengine = 0; for_each_engine(fd, engine) {