[Xorg-driver-geode] [PATCH] Correct two outstanding compiler warnings
Huang, FrankR
FrankR.Huang at amd.com
Sun Aug 8 19:43:27 PDT 2010
From: Frank Huang <frankr.huang at amd.com>
*Correct the type from "Q_WORD" to "QQ_WORD" in panel.c
*Correct the tyep from "char" to "const char" in z4l.c
Signed-off-by: Frank Huang <frankr.huang at amd.com>
---
src/panel/gx2_9211.c | 2 +-
src/z4l.c | 4 ++--
2 files changed, 3 insertions(+), 3 deletions(-)
diff --git a/src/panel/gx2_9211.c b/src/panel/gx2_9211.c
index a60264d..7d46b9c 100644
--- a/src/panel/gx2_9211.c
+++ b/src/panel/gx2_9211.c
@@ -193,7 +193,7 @@ set_Redcloud_92xx_mode_params(int mode)
CS92xx_MODE *pMode = &FPModeParams[mode];
unsigned long temp_data = 0;
unsigned long base_data;
- Q_WORD msrValue;
+ QQ_WORD msrValue;
/* on a Redcloud, we need to set up the DF pad select MSR */
if (gfx_msr_read(RC_ID_DF, GX2_VP_MSR_PAD_SELECT, &msrValue) == FOUND) {
diff --git a/src/z4l.c b/src/z4l.c
index 3935962..1bad0d8 100644
--- a/src/z4l.c
+++ b/src/z4l.c
@@ -1184,7 +1184,7 @@ Z4lSetPortAttribute(ScrnInfoPtr pScrni, Atom attribute, INT32 value,
XF86AttributePtr attr;
struct v4l2_control ctrl;
int i, nattrs, attrId, val;
- char *name = NameForAtom(attribute);
+ const char *name = NameForAtom(attribute);
int old_fd = pPriv->fd;
DBLOG(1, "Z4lSetPortAttribute(%#lx,%d) '%s'\n", (unsigned long)attribute,
@@ -1245,7 +1245,7 @@ Z4lGetPortAttribute(ScrnInfoPtr pScrni, Atom attribute, INT32 * value,
XF86AttributePtr attr;
struct v4l2_control ctrl;
int i, nattrs, attrId, val;
- char *name = NameForAtom(attribute);
+ const char *name = NameForAtom(attribute);
int old_fd = pPriv->fd;
DBLOG(1, "Z4lGetPortAttribute(%#lx) '%s'\n",
--
1.7.1
More information about the Xorg-driver-geode
mailing list