mirror of
git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2026-03-22 07:27:12 +08:00
dmaengine: st_fdma: change dreg_line to long
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>
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
|
||||
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user