diff options
author | Ievgen Musiichuk <ievgen.musiichuk@ti.com> | 2012-11-08 19:13:08 +0200 |
---|---|---|
committer | Ziyan <jaraidaniel@gmail.com> | 2015-01-13 03:22:43 +0100 |
commit | f598257855eabf44915bd919602ed3dd6cd846ea (patch) | |
tree | d13bae41b75ac1932211075f5c713f2c171c8f1c /drivers/video/omap2 | |
parent | ddfc44c6c3580b9f028b950f084ace256eefc31a (diff) | |
download | kernel_samsung_tuna-f598257855eabf44915bd919602ed3dd6cd846ea.zip kernel_samsung_tuna-f598257855eabf44915bd919602ed3dd6cd846ea.tar.gz kernel_samsung_tuna-f598257855eabf44915bd919602ed3dd6cd846ea.tar.bz2 |
DSS: Fixed compilation warnings at device.c:504
Warning: comparison of distinct pointer types lacks a cast
Changed clamp macro to clamp_t with __u32 type
Change-Id: I1ab6169a79e8dfdfb2e3b87147e225382a64248d
Signed-off-by: Ievgen Musiichuk <ievgen.musiichuk@ti.com>
Conflicts:
drivers/video/omap2/dsscomp/device.c
Diffstat (limited to 'drivers/video/omap2')
-rw-r--r-- | drivers/video/omap2/dsscomp/device.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/video/omap2/dsscomp/device.c b/drivers/video/omap2/dsscomp/device.c index 7204eb6..7289857 100644 --- a/drivers/video/omap2/dsscomp/device.c +++ b/drivers/video/omap2/dsscomp/device.c @@ -501,7 +501,8 @@ static long comp_ioctl(struct file *filp, unsigned int cmd, unsigned long arg) * struct dsscomp_display_info and cause heap * corruption. */ - u.dis.modedb_len = clamp_val(u.dis.modedb_len, 0, 256); + u.dis.modedb_len = clamp_t(__u32, + u.dis.modedb_len, 0, 256); dis = kzalloc(sizeof(*dis->modedb) * u.dis.modedb_len + sizeof(*dis), GFP_KERNEL); |