diff mbox

[7/7] Don't mark the list of chipsets const when we just cast the const away.

Message ID 1353186674-7234-7-git-send-email-eric@anholt.net (mailing list archive)
State New, archived
Headers show

Commit Message

Eric Anholt Nov. 17, 2012, 9:11 p.m. UTC
Fixes another gcc warning.
---
 src/intel_module.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

Comments

Chris Wilson Nov. 18, 2012, 11:54 a.m. UTC | #1
On Sat, 17 Nov 2012 13:11:14 -0800, Eric Anholt <eric@anholt.net> wrote:
> Fixes another gcc warning.

So you would prefer to move it out of the ro ELF section to merely
silence the compiler? And similarly remove the memory protection for the
function pointers?
-Chris
diff mbox

Patch

diff --git a/src/intel_module.c b/src/intel_module.c
index ef62667..06d2ee7 100644
--- a/src/intel_module.c
+++ b/src/intel_module.c
@@ -111,7 +111,7 @@  static const struct intel_device_info intel_haswell_info = {
 	.gen = 75,
 };
 
-static const SymTabRec _intel_chipsets[] = {
+static SymTabRec _intel_chipsets[] = {
 	{PCI_CHIP_I810,				"i810"},
 	{PCI_CHIP_I810_DC100,			"i810-dc100"},
 	{PCI_CHIP_I810_E,			"i810e"},