From patchwork Wed Sep 7 10:38:55 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Marius Vlad X-Patchwork-Id: 9318883 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 19E4B6077F for ; Wed, 7 Sep 2016 10:39:17 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 1623829224 for ; Wed, 7 Sep 2016 10:39:17 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 0AFB129229; Wed, 7 Sep 2016 10:39:17 +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.2 required=2.0 tests=BAYES_00, RCVD_IN_DNSWL_MED 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 A062A29224 for ; Wed, 7 Sep 2016 10:39:16 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id 8BB516E9AA; Wed, 7 Sep 2016 10:39:15 +0000 (UTC) X-Original-To: intel-gfx@lists.freedesktop.org Delivered-To: intel-gfx@lists.freedesktop.org Received: from mga07.intel.com (mga07.intel.com [134.134.136.100]) by gabe.freedesktop.org (Postfix) with ESMTPS id B2D936E9AA for ; Wed, 7 Sep 2016 10:39:13 +0000 (UTC) Received: from orsmga003.jf.intel.com ([10.7.209.27]) by orsmga105.jf.intel.com with ESMTP; 07 Sep 2016 03:39:13 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.30,296,1470726000"; d="scan'208";a="875950886" Received: from mcvlad-wk.rb.intel.com ([10.237.105.57]) by orsmga003.jf.intel.com with ESMTP; 07 Sep 2016 03:39:12 -0700 From: Marius Vlad To: intel-gfx@lists.freedesktop.org Date: Wed, 7 Sep 2016 13:38:55 +0300 Message-Id: <1473244735-12338-1-git-send-email-marius.c.vlad@intel.com> X-Mailer: git-send-email 2.8.1 Subject: [Intel-gfx] [PATCH i-g-t] assembler, lib, overlay, tools, tests/: Fix warnings about unused variables. 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: Marius Vlad --- assembler/gen8_disasm.c | 5 ----- lib/intel_device_info.c | 6 ------ overlay/igfx.c | 7 ------- tests/testdisplay.c | 1 - tools/intel_bios_reader.c | 22 ---------------------- 5 files changed, 41 deletions(-) diff --git a/assembler/gen8_disasm.c b/assembler/gen8_disasm.c index 7fc7a65..68bc033 100644 --- a/assembler/gen8_disasm.c +++ b/assembler/gen8_disasm.c @@ -138,11 +138,6 @@ static const char *const m_dep_ctrl[4] = { "NoDDClr,NoDDChk", }; -static const char *const m_mask_ctrl[4] = { - "", - "nomask", -}; - static const char *const m_access_mode[2] = { "align1", "align16" }; static const char *const m_reg_type[8] = { diff --git a/lib/intel_device_info.c b/lib/intel_device_info.c index 5aab684..6a03b09 100644 --- a/lib/intel_device_info.c +++ b/lib/intel_device_info.c @@ -9,12 +9,6 @@ static const struct intel_device_info intel_generic_info = { .gen = 0, }; -static const struct intel_device_info intel_i81x_info = { - .gen = BIT(0), - .is_whitney = true, - .codename = "solano" /* 815 == "whitney" ? or vice versa? */ -}; - static const struct intel_device_info intel_i830_info = { .gen = BIT(1), .is_almador = true, diff --git a/overlay/igfx.c b/overlay/igfx.c index fa046e7..55f0edf 100644 --- a/overlay/igfx.c +++ b/overlay/igfx.c @@ -35,16 +35,9 @@ static const struct igfx_info generic_info = { .gen = -1, }; -static const struct igfx_info i81x_info = { - .gen = 010, -}; - static const struct igfx_info i830_info = { .gen = 020, }; -static const struct igfx_info i845_info = { - .gen = 020, -}; static const struct igfx_info i855_info = { .gen = 021, }; diff --git a/tests/testdisplay.c b/tests/testdisplay.c index a974f42..f2a41fa 100644 --- a/tests/testdisplay.c +++ b/tests/testdisplay.c @@ -96,7 +96,6 @@ unsigned int plane_fb_id; unsigned int plane_crtc_id; unsigned int plane_id; int plane_width, plane_height; -static const uint32_t SPRITE_COLOR_KEY = 0x00aaaaaa; /* * Mode setting with the kernel interfaces is a bit of a chore. diff --git a/tools/intel_bios_reader.c b/tools/intel_bios_reader.c index e3daa74..9e8e5ba 100644 --- a/tools/intel_bios_reader.c +++ b/tools/intel_bios_reader.c @@ -372,28 +372,6 @@ static const char *efp_port(uint8_t type) return "unknown"; } -static const struct { - unsigned short type; - const char *name; -} efp_conn_info[] = { - { DEVICE_INFO_NONE, "N/A" }, - { DEVICE_INFO_HDMI_CERT, "HDMI certified" }, - { DEVICE_INFO_DP, "DisplayPort" }, - { DEVICE_INFO_DVI, "DVI" }, -}; -static const int num_efp_conn_info = sizeof(efp_conn_info) / sizeof(efp_conn_info[0]); - -static const char *efp_conn(uint8_t type) -{ - int i; - - for (i = 0; i < num_efp_conn_info; i++) - if (efp_conn_info[i].type == type) - return efp_conn_info[i].name; - - return "unknown"; -} - static void dump_child_device(struct context *context, struct child_device_config *child) {