Skip to contentSkip to conversation

assembler, lib, overlay, tools, tests/: Fix warnings about unused variables.

PATCH In review Marius Vlad 2 participants 2 messages Sep 7, 2016 – Sep 9, 2016 Library code

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 assembler, lib, overlay, tools, tests/: Fix warnings about unused variables.

---
 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(-)
assembler/gen8_disasm.c +0 -5
index 7fc7a65..68bc033 100644
@@ -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] = {
lib/intel_device_info.c +0 -6
index 5aab684..6a03b09 100644
@@ -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,
overlay/igfx.c +0 -7
index fa046e7..55f0edf 100644
@@ -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,
 };
tests/testdisplay.c +0 -1
index a974f42..f2a41fa 100644
@@ -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.
tools/intel_bios_reader.c +0 -22
index e3daa74..9e8e5ba 100644
@@ -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)
 {
Signature · 6 lines
2.8.1

_______________________________________________
Intel-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/intel-gfx
#1 lore raw

lib/intel_device_info.c static const struct intel_device_info intel_generic_info = { · line 11

Quoted 8 lines · Marius Vlad
lib/intel_device_info.c +0 -0
index 5aab684..6a03b09 100644
@@ -9,12 +9,6 @@ static const struct intel_device_info intel_generic_info = {
 	.gen = 0,
 };
 

#if 0

lib/intel_device_info.c static const struct intel_device_info intel_generic_info = { · line 16

Quoted 5 lines
lib/intel_device_info.c +0 -5
-static const struct intel_device_info intel_i81x_info = {
-	.gen = BIT(0),
-	.is_whitney = true,
-	.codename = "solano" /* 815 == "whitney" ? or vice versa? */
-};

#endif

Or add the PCI and wire it up.

overlay/igfx.c static const struct igfx_info generic_info = { · line 37

Quoted 12 lines
lib/intel_device_info.c +0 -1
-
 static const struct intel_device_info intel_i830_info = {
 	.gen = BIT(1),
 	.is_almador = true,
overlay/igfx.c +0 -0
index fa046e7..55f0edf 100644
@@ -35,16 +35,9 @@ static const struct igfx_info generic_info = {
 	.gen = -1,
 };
 

#if 0

overlay/igfx.c static const struct igfx_info generic_info = { · line 40

Quoted 3 lines
overlay/igfx.c +0 -3
-static const struct igfx_info i81x_info = {
-	.gen = 010,
-};

#endif

overlay/igfx.c static const struct igfx_info generic_info = { · line 47

Quoted 7 lines
overlay/igfx.c +0 -3
 static const struct igfx_info i830_info = {
 	.gen = 020,
 };
 
-static const struct igfx_info i845_info = {
-	.gen = 020,
-};

That's a typo later on.
-Chris

Signature · 5 lines
Chris Wilson, Intel Open Source Technology Centre
_______________________________________________
Intel-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/intel-gfx