Patchwork [upstream,for,stable,4/8] staging: vt6656: 64 bit fixes: use u32 for QWORD definition.

login
register
mail settings
Submitter Malcolm Priestley
Date Dec. 27, 2012, 1:07 p.m.
Message ID <1356613661.3447.41.camel@canaries64>
Download mbox | patch
Permalink /patch/209014/
State New
Headers show

Comments

Malcolm Priestley - Dec. 27, 2012, 1:07 p.m.
upstream commit
a552397d5e4ef0cc0bd3e9595d6acc9a3b381171

Tested on kernels 2.6.35, 3.0, 3.2, 3.5 & 3.7

staging: vt6656: 64 bit fixes: use u32 for QWORD definition.
    
Size of long issues replace with u32.

Cc: stable@kernel.org  # 2.6.35+    
Signed-off-by: Malcolm Priestley <tvboxspy@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>

Patch

diff --git a/drivers/staging/vt6656/ttype.h b/drivers/staging/vt6656/ttype.h
index 8e9450e..0f70562c 100644
--- a/drivers/staging/vt6656/ttype.h
+++ b/drivers/staging/vt6656/ttype.h
@@ -29,6 +29,8 @@ 
 #ifndef __TTYPE_H__
 #define __TTYPE_H__
 
+#include <linux/types.h>
+
 /******* Common definitions and typedefs ***********************************/
 
 typedef int             BOOL;
@@ -51,8 +53,8 @@  typedef unsigned long   DWORD;          // 32-bit
 // which is NOT really a floating point number.
 typedef union tagUQuadWord {
     struct {
-        DWORD   dwLowDword;
-        DWORD   dwHighDword;
+	u32 dwLowDword;
+	u32 dwHighDword;
     } u;
     double      DoNotUseThisField;
 } UQuadWord;