]> err.no Git - linux-2.6/commitdiff
V4L/DVB (4342): Fix ext_controls align on 64 bit architectures
authorMauro Carvalho Chehab <mchehab@infradead.org>
Sat, 22 Jul 2006 11:20:07 +0000 (08:20 -0300)
committerMauro Carvalho Chehab <mchehab@infradead.org>
Sat, 29 Jul 2006 20:22:29 +0000 (17:22 -0300)
u64 is aligned as 128bits on x86_64 architetures, requiring an special
handling to ioctls that depends on v4l2_ext_control.
Let's fix this before ext controls go to kernel mainstream to avoid one
more compat32 stuff.

Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
include/linux/videodev2.h

index a62673dad76e41809ff88df2c4e34773347268ed..b7146956a9293be2091787ec445d7da2f8cead1a 100644 (file)
@@ -716,7 +716,7 @@ struct v4l2_ext_control
                __s64 value64;
                void *reserved;
        };
-};
+} __attribute__ ((packed));
 
 struct v4l2_ext_controls
 {