From: Seung-Woo Kim Date: Mon, 20 Aug 2018 04:07:05 +0000 (+0900) Subject: staging: bcm2835-camera: fix overflow warnings X-Git-Tag: accepted/tizen/unified/20190614.051536~60 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=16717a140188050418af1ff3ddc54cd9243b4a4e;p=platform%2Fkernel%2Flinux-rpi3.git staging: bcm2835-camera: fix overflow warnings Fix overflow in implicit constant conversion warnings. Change-Id: I3e419cb927241c9400147b36a2e36f2173c96025 Signed-off-by: Seung-Woo Kim --- diff --git a/drivers/staging/vc04_services/bcm2835-camera/controls.c b/drivers/staging/vc04_services/bcm2835-camera/controls.c index 465e6d2..4b2547e 100644 --- a/drivers/staging/vc04_services/bcm2835-camera/controls.c +++ b/drivers/staging/vc04_services/bcm2835-camera/controls.c @@ -1105,7 +1105,7 @@ static const struct bm2835_mmal_v4l2_ctrl v4l2_ctrls[V4L2_CTRL_COUNT] = { { V4L2_CID_MPEG_VIDEO_H264_PROFILE, MMAL_CONTROL_TYPE_STD_MENU, - ~(BIT(V4L2_MPEG_VIDEO_H264_PROFILE_BASELINE) | + (u32)~(BIT(V4L2_MPEG_VIDEO_H264_PROFILE_BASELINE) | BIT(V4L2_MPEG_VIDEO_H264_PROFILE_CONSTRAINED_BASELINE) | BIT(V4L2_MPEG_VIDEO_H264_PROFILE_MAIN) | BIT(V4L2_MPEG_VIDEO_H264_PROFILE_HIGH)), @@ -1117,7 +1117,7 @@ static const struct bm2835_mmal_v4l2_ctrl v4l2_ctrls[V4L2_CTRL_COUNT] = { }, { V4L2_CID_MPEG_VIDEO_H264_LEVEL, MMAL_CONTROL_TYPE_STD_MENU, - ~(BIT(V4L2_MPEG_VIDEO_H264_LEVEL_1_0) | + (u32)~(BIT(V4L2_MPEG_VIDEO_H264_LEVEL_1_0) | BIT(V4L2_MPEG_VIDEO_H264_LEVEL_1B) | BIT(V4L2_MPEG_VIDEO_H264_LEVEL_1_1) | BIT(V4L2_MPEG_VIDEO_H264_LEVEL_1_2) |