aboutsummaryrefslogtreecommitdiffstats
path: root/target/linux/brcm2708/patches-4.14/950-0178-drm-vc4-Fix-wrong-printk-format-in-vc4_bo_stats_debu.patch
diff options
context:
space:
mode:
Diffstat (limited to 'target/linux/brcm2708/patches-4.14/950-0178-drm-vc4-Fix-wrong-printk-format-in-vc4_bo_stats_debu.patch')
-rw-r--r--target/linux/brcm2708/patches-4.14/950-0178-drm-vc4-Fix-wrong-printk-format-in-vc4_bo_stats_debu.patch35
1 files changed, 35 insertions, 0 deletions
diff --git a/target/linux/brcm2708/patches-4.14/950-0178-drm-vc4-Fix-wrong-printk-format-in-vc4_bo_stats_debu.patch b/target/linux/brcm2708/patches-4.14/950-0178-drm-vc4-Fix-wrong-printk-format-in-vc4_bo_stats_debu.patch
new file mode 100644
index 0000000000..57b4d1cc5a
--- /dev/null
+++ b/target/linux/brcm2708/patches-4.14/950-0178-drm-vc4-Fix-wrong-printk-format-in-vc4_bo_stats_debu.patch
@@ -0,0 +1,35 @@
+From aff2333a8ffe1dffd7b843872682278d335ee60c Mon Sep 17 00:00:00 2001
+From: Boris BREZILLON <boris.brezillon@free-electrons.com>
+Date: Wed, 1 Nov 2017 10:57:31 +0100
+Subject: [PATCH 178/454] drm/vc4: Fix wrong printk format in
+ vc4_bo_stats_debugfs()
+
+vc4->purgeable.size and vc4->purgeable.purged_size are size_t fields
+and should be printed with a %zd specifier.
+
+Fixes: b9f19259b84d ("drm/vc4: Add the DRM_IOCTL_VC4_GEM_MADVISE ioctl")
+Signed-off-by: Boris Brezillon <boris.brezillon@free-electrons.com>
+Reviewed-by: Gustavo Padovan <gustavo.padovan@collabora.com>
+Reviewed-by: Eric Anholt <eric@anholt.net>
+Link: https://patchwork.freedesktop.org/patch/msgid/20171101095731.14878-1-boris.brezillon@free-electrons.com
+(cherry picked from commit 50f365cde4ffb5ae70c3f02384bbb46698aba65c)
+---
+ drivers/gpu/drm/vc4/vc4_bo.c | 4 ++--
+ 1 file changed, 2 insertions(+), 2 deletions(-)
+
+--- a/drivers/gpu/drm/vc4/vc4_bo.c
++++ b/drivers/gpu/drm/vc4/vc4_bo.c
+@@ -88,11 +88,11 @@ int vc4_bo_stats_debugfs(struct seq_file
+
+ mutex_lock(&vc4->purgeable.lock);
+ if (vc4->purgeable.num)
+- seq_printf(m, "%30s: %6dkb BOs (%d)\n", "userspace BO cache",
++ seq_printf(m, "%30s: %6zdkb BOs (%d)\n", "userspace BO cache",
+ vc4->purgeable.size / 1024, vc4->purgeable.num);
+
+ if (vc4->purgeable.purged_num)
+- seq_printf(m, "%30s: %6dkb BOs (%d)\n", "total purged BO",
++ seq_printf(m, "%30s: %6zdkb BOs (%d)\n", "total purged BO",
+ vc4->purgeable.purged_size / 1024,
+ vc4->purgeable.purged_num);
+ mutex_unlock(&vc4->purgeable.lock);