lkml.org 
[lkml]   [2008]   [May]   [1]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
Date
From
Subject[PATCH] fix irq flags in saa7134

Some files in the drivers/media/video/saa7134 directory uses "int" for flags.
This can cause hard to find bugs on some architectures. This patch converts the
flags to use "long" instead.

This bug was discovered by doing an allyesconfig make on the -rt kernel
where checks are done to ensure all flags are of size sizeof(long).

Signed-off-by: Steven Rostedt <srostedt@redhat.com>
---
drivers/media/video/saa7134/saa7134-video.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)

Index: linux-compile.git/drivers/media/video/saa7134/saa7134-video.c
===================================================================
--- linux-compile.git.orig/drivers/media/video/saa7134/saa7134-video.c 2008-05-01 16:58:39.000000000 -0400
+++ linux-compile.git/drivers/media/video/saa7134/saa7134-video.c 2008-05-01 18:37:57.000000000 -0400
@@ -1634,7 +1634,7 @@ static int saa7134_s_fmt_overlay(struct
struct saa7134_fh *fh = priv;
struct saa7134_dev *dev = fh->dev;
int err;
- unsigned int flags;
+ unsigned long flags;

if (saa7134_no_overlay > 0) {
printk(KERN_ERR "V4L2_BUF_TYPE_VIDEO_OVERLAY: no_overlay\n");


\
 
 \ /
  Last update: 2008-05-02 00:53    [W:0.028 / U:0.272 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site