assembler, lib, overlay, tools, tests/: Fix warnings about unused variables.
PATCH 1/1 assembler, lib, overlay, tools, tests/: Fix warnings about unused variables.
Signed-off-by Marius Vlad <[email protected]>
--- 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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
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@@ -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@@ -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
-3static 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