1
0
mirror of https://git.openwrt.org/openwrt/openwrt.git synced 2024-06-16 20:23:53 +02:00
openwrt/target/linux/bcm27xx/patches-5.10/950-0501-staging-bcm2835-codec-Correct-logging-of-size_t-to-z.patch
Álvaro Fernández Rojas 8299d1f057 bcm27xx: add kernel 5.10 support
Rebased RPi foundation patches on linux 5.10.59, removed applied and reverted
patches, wireless patches and defconfig patches.

bcm2708: boot tested on RPi B+ v1.2
bcm2709: boot tested on RPi 4B v1.1 4G
bcm2711: boot tested on RPi 4B v1.1 4G

Signed-off-by: Álvaro Fernández Rojas <noltari@gmail.com>
2021-08-21 19:07:07 +02:00

35 lines
1.6 KiB
Diff

From c3da01fd97044bb1a48bd9146d15b374d4c1ce55 Mon Sep 17 00:00:00 2001
From: Dave Stevenson <dave.stevenson@raspberrypi.com>
Date: Mon, 1 Feb 2021 18:55:37 +0000
Subject: [PATCH] staging/bcm2835-codec: Correct logging of size_t to
%zu
Fixes: "staging/bcm2835-codec: Log the number of excess supported formats"
Which used %u for printing a size_t, and 64bit builds then log a warning.
Signed-off-by: Dave Stevenson <dave.stevenson@raspberrypi.com>
---
.../staging/vc04_services/bcm2835-codec/bcm2835-v4l2-codec.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
--- a/drivers/staging/vc04_services/bcm2835-codec/bcm2835-v4l2-codec.c
+++ b/drivers/staging/vc04_services/bcm2835-codec/bcm2835-v4l2-codec.c
@@ -2837,7 +2837,7 @@ static int bcm2835_codec_get_supported_f
if (ret) {
if (ret == MMAL_MSG_STATUS_ENOSPC) {
v4l2_err(&dev->v4l2_dev,
- "%s: port has more encodings than we provided space for. Some are dropped (%u vs %u).\n",
+ "%s: port has more encodings than we provided space for. Some are dropped (%zu vs %u).\n",
__func__, param_size / sizeof(u32),
MAX_SUPPORTED_ENCODINGS);
num_encodings = MAX_SUPPORTED_ENCODINGS;
@@ -2883,7 +2883,7 @@ static int bcm2835_codec_get_supported_f
if (ret) {
if (ret == MMAL_MSG_STATUS_ENOSPC) {
v4l2_err(&dev->v4l2_dev,
- "%s: port has more encodings than we provided space for. Some are dropped (%u vs %u).\n",
+ "%s: port has more encodings than we provided space for. Some are dropped (%zu vs %u).\n",
__func__, param_size / sizeof(u32),
MAX_SUPPORTED_ENCODINGS);
num_encodings = MAX_SUPPORTED_ENCODINGS;