59ced84af72728aa6f99fd629a057193f0d7e577
[openwrt/openwrt.git] / target / linux / bcm27xx / patches-5.15 / 950-0388-staging-bcm2835-isp-Fix-compiler-warning.patch
1 From 7eba207e9bd8381e7dfaab3d7a4f828864741c06 Mon Sep 17 00:00:00 2001
2 From: Phil Elwell <phil@raspberrypi.com>
3 Date: Fri, 23 Apr 2021 16:16:49 +0100
4 Subject: [PATCH] staging/bcm2835-isp: Fix compiler warning
5
6 The result of dividing a u32 by a size_t is an unsigned int on arm32
7 and a long unsigned int on arm64. Use "%zu" (the size_t format) to
8 remove the build warning for 64-bit builds.
9
10 Signed-off-by: Phil Elwell <phil@raspberrypi.com>
11 ---
12 drivers/staging/vc04_services/bcm2835-isp/bcm2835-v4l2-isp.c | 2 +-
13 1 file changed, 1 insertion(+), 1 deletion(-)
14
15 --- a/drivers/staging/vc04_services/bcm2835-isp/bcm2835-v4l2-isp.c
16 +++ b/drivers/staging/vc04_services/bcm2835-isp/bcm2835-v4l2-isp.c
17 @@ -1235,7 +1235,7 @@ static int bcm2835_isp_get_supported_fmt
18 if (ret) {
19 if (ret == MMAL_MSG_STATUS_ENOSPC) {
20 v4l2_err(&dev->v4l2_dev,
21 - "%s: port has more encodings than we provided space for. Some are dropped (%u vs %u).\n",
22 + "%s: port has more encodings than we provided space for. Some are dropped (%zu vs %u).\n",
23 __func__, param_size / sizeof(u32),
24 MAX_SUPPORTED_ENCODINGS);
25 num_encodings = MAX_SUPPORTED_ENCODINGS;