Patch "remoteproc: stm32: fix phys_addr_t format string" has been added to the 5.10-stable tree

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

 



This is a note to let you know that I've just added the patch titled

    remoteproc: stm32: fix phys_addr_t format string

to the 5.10-stable tree which can be found at:
    http://www.kernel.org/git/?p=linux/kernel/git/stable/stable-queue.git;a=summary

The filename of the patch is:
     remoteproc-stm32-fix-phys_addr_t-format-string.patch
and it can be found in the queue-5.10 subdirectory.

If you, or anyone else, feels it should not be added to the stable tree,
please let <stable@xxxxxxxxxxxxxxx> know about it.


>From 3e25e407a1c93b53a87a7743ea0cd4703d3985b7 Mon Sep 17 00:00:00 2001
From: Arnd Bergmann <arnd@xxxxxxxx>
Date: Wed, 21 Apr 2021 16:00:40 +0200
Subject: remoteproc: stm32: fix phys_addr_t format string

From: Arnd Bergmann <arnd@xxxxxxxx>

commit 3e25e407a1c93b53a87a7743ea0cd4703d3985b7 upstream.

A phys_addr_t may be wider than an int or pointer:

drivers/remoteproc/stm32_rproc.c: In function 'stm32_rproc_da_to_pa':
drivers/remoteproc/stm32_rproc.c:583:30: error: format '%x' expects argument of type 'unsigned int', but argument 5 has type 'phys_addr_t' {aka 'long long unsigned int'} [-Werror=format=]
  583 |                 dev_dbg(dev, "da %llx to pa %#x\n", da, *pa);

Print it by reference using the special %pap format string.

Reviewed-by: Arnaud Pouliquen <arnaud.pouliquen@xxxxxxxxxxx>
Fixes: 8a471396d21c ("remoteproc: stm32: Move resource table setup to rproc_ops")
Signed-off-by: Arnd Bergmann <arnd@xxxxxxxx>
Link: https://lore.kernel.org/r/20210421140053.3727528-1-arnd@xxxxxxxxxx
Signed-off-by: Bjorn Andersson <bjorn.andersson@xxxxxxxxxx>
Signed-off-by: Greg Kroah-Hartman <gregkh@xxxxxxxxxxxxxxxxxxx>
---
 drivers/remoteproc/stm32_rproc.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

--- a/drivers/remoteproc/stm32_rproc.c
+++ b/drivers/remoteproc/stm32_rproc.c
@@ -569,7 +569,7 @@ static int stm32_rproc_da_to_pa(struct r
 			continue;
 
 		*pa = da - p_mem->dev_addr + p_mem->bus_addr;
-		dev_dbg(dev, "da %llx to pa %#x\n", da, *pa);
+		dev_dbg(dev, "da %llx to pa %pap\n", da, pa);
 
 		return 0;
 	}


Patches currently in stable-queue which might be from arnd@xxxxxxxx are

queue-5.10/soc-fsl-dpio-fix-kcalloc-argument-order.patch
queue-5.10/asoc-meson-aiu-fix-function-pointer-type-mismatch.patch
queue-5.10/mtd-rawnand-lpc32xx_mlc-fix-irq-handler-prototype.patch
queue-5.10/media-pvrusb2-fix-pvr2_stream_callback-casts.patch
queue-5.10/media-mediatek-vcodec-avoid-wcast-function-type-stri.patch
queue-5.10/scsi-csiostor-avoid-function-pointer-casts.patch
queue-5.10/alsa-seq-fix-function-cast-warnings.patch
queue-5.10/remoteproc-stm32-fix-phys_addr_t-format-string.patch
queue-5.10/fs-select-rework-stack-allocation-hack-for-clang.patch
queue-5.10/wifi-brcmsmac-avoid-function-pointer-casts.patch
queue-5.10/scsi-bfa-fix-function-pointer-type-mismatch-for-hcb_.patch
queue-5.10/asoc-meson-t9015-fix-function-pointer-type-mismatch.patch
queue-5.10/rtc-mt6397-select-irq_domain-instead-of-depending-on.patch
queue-5.10/remoteproc-stm32-use-correct-format-strings-on-64-bi.patch
queue-5.10/media-dvb-frontends-avoid-stack-overflow-warnings-wi.patch
queue-5.10/crypto-arm-sha-fix-function-cast-warnings.patch
queue-5.10/remoteproc-stm32-fix-incorrect-optional-pointers.patch




[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Index of Archives]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux