]> git.ipfire.org Git - thirdparty/linux.git/commitdiff
dmaengine: st_fdma: change dreg_line to long
authorRosen Penev <rosenp@gmail.com>
Thu, 6 Nov 2025 02:20:14 +0000 (18:20 -0800)
committerVinod Koul <vkoul@kernel.org>
Tue, 23 Dec 2025 11:05:27 +0000 (16:35 +0530)
The code is encoding a pointer into an int which works fine with a
32-bit build. Not with a 64-bit one.

Signed-off-by: Rosen Penev <rosenp@gmail.com>
Link: https://patch.msgid.link/20251106022015.84970-2-rosenp@gmail.com
Signed-off-by: Vinod Koul <vkoul@kernel.org>
drivers/dma/st_fdma.c
drivers/dma/st_fdma.h

index dc2ab7d16cf2ae45fc7c7c70f859654a1ab580d5..0f42a3c30bdb0ced5032b49342fabe96dbd3b107 100644 (file)
@@ -68,7 +68,7 @@ static void st_fdma_dreq_put(struct st_fdma_chan *fchan)
 {
        struct st_fdma_dev *fdev = fchan->fdev;
 
-       dev_dbg(fdev->dev, "put dreq_line:%#x\n", fchan->dreq_line);
+       dev_dbg(fdev->dev, "put dreq_line:%#lx\n", fchan->dreq_line);
        clear_bit(fchan->dreq_line, &fdev->dreq_mask);
 }
 
index f296412e96b6a5c5e2749077bb5e8f3725afe369..f1e746f7bc7dcfc567cfa12c3bab4efd918653d6 100644 (file)
@@ -120,7 +120,7 @@ struct st_fdma_chan {
        struct dma_slave_config scfg;
        struct st_fdma_cfg cfg;
 
-       int dreq_line;
+       long dreq_line;
 
        struct virt_dma_chan vchan;
        struct st_fdma_desc *fdesc;