Re: [PATCH 1/2] [media] tvp5150: Fix type mismatch warning in clamp macro

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi Philipp,

Thanks for the patch.

On Thu, Feb 27, 2014 at 10:14 PM, Philipp Zabel <p.zabel@xxxxxxxxxxxxxx> wrote:
> This patch fixes the following warning:
>
> drivers/media/i2c/tvp5150.c: In function '__tvp5150_try_crop':
> include/linux/kernel.h:762:17: warning: comparison of distinct pointer types lacks a cast [enabled by default]
>   (void) (&__val == &__min);  \
>                  ^
> drivers/media/i2c/tvp5150.c:886:16: note: in expansion of macro 'clamp'
>   rect->width = clamp(rect->width,
>                 ^
> include/linux/kernel.h:763:17: warning: comparison of distinct pointer types lacks a cast [enabled by default]
>   (void) (&__val == &__max);  \
>                  ^
> drivers/media/i2c/tvp5150.c:886:16: note: in expansion of macro 'clamp'
>   rect->width = clamp(rect->width,
>                 ^
> include/linux/kernel.h:762:17: warning: comparison of distinct pointer types lacks a cast [enabled by default]
>   (void) (&__val == &__min);  \
>                  ^
> drivers/media/i2c/tvp5150.c:904:17: note: in expansion of macro 'clamp'
>   rect->height = clamp(rect->height,
>                  ^
> include/linux/kernel.h:763:17: warning: comparison of distinct pointer types lacks a cast [enabled by default]
>   (void) (&__val == &__max);  \
>                  ^
> drivers/media/i2c/tvp5150.c:904:17: note: in expansion of macro 'clamp'
>   rect->height = clamp(rect->height,
>                  ^
>
> Signed-off-by: Philipp Zabel <p.zabel@xxxxxxxxxxxxxx>

Acked-by: Lad, Prabhakar <prabhakar.csengg@xxxxxxxxx>

Thanks,
--Prabhakar Lad
--
To unsubscribe from this list: send the line "unsubscribe linux-media" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html




[Index of Archives]     [Linux Input]     [Video for Linux]     [Gstreamer Embedded]     [Mplayer Users]     [Linux USB Devel]     [Linux Audio Users]     [Linux Kernel]     [Linux SCSI]     [Yosemite Backpacking]
  Powered by Linux