dmaengine: loongson: Use %p for pointer formatting
Subsystems (2)
PATCH 1/1 dmaengine: loongson: Use %p for pointer formatting
The %pK format modifier was meant for /proc kind of output, not general printk output. Since commit ad67b74d2469d ("printk: hash addresses printed with %p") pointers are hashed by default and the behaviour can be controller by `hash_pointers' boot argument.
The policy on %p is to not introduce new ones. This is the only pointer output in the driver.
Remove the pointer formating from debug output.
--- drivers/dma/loongson/loongson2-apb-cmc-dma.c | 1 - 1 file changed, 1 deletion(-)
drivers/dma/loongson/loongson2-apb-cmc-dma.c +0 -1
@@ -337,7 +337,6 @@ static void loongson2_cmc_dma_issue_pending(struct dma_chan *chan)guard (spinlock_irqsave)(&lchan->vchan.lock);if (vchan_issue_pending (&lchan->vchan) && !lchan->desc) { -dev_dbg (chan2dev (lchan),"vchan %pK: issued\n" , &lchan->vchan);loongson2_cmc_dma_start_transfer (lchan); } }
Signature · 1 line
2.55.0
Quoted 19 lines · Sebastian Andrzej Siewior
The %pK format modifier was meant for /proc kind of output, not general printk output. Since commit
ad67b74d2469d("printk: hash addresses printed with %p") pointers are hashed by default and the behaviour can be controller by `hash_pointers' boot argument.
The policy on %p is to not introduce new ones. This is the only pointer output in the driver.Remove the pointer formating from debug output.
Signed-off-by Sebastian Andrzej Siewior <[email protected]>--- drivers/dma/loongson/loongson2-apb-cmc-dma.c | 1 - 1 file changed, 1 deletion(-)drivers/dma/loongson/loongson2-apb-cmc-dma.c +0
-0
drivers/dma/loongson/loongson2-apb-cmc-dma.c static void loongson2_cmc_dma_issue_pending(struct dma_chan *chan) · line 340
Quoted 4 lines
drivers/dma/loongson/loongson2-apb-cmc-dma.c +0
-1@@ -337,7 +337,6 @@ static void loongson2_cmc_dma_issue_pending(struct dma_chan *chan)guard (spinlock_irqsave)(&lchan->vchan.lock);if (vchan_issue_pending (&lchan->vchan) && !lchan->desc) { -dev_dbg (chan2dev (lchan),"vchan %pK: issued\n" , &lchan->vchan);
You remove whole dev_dbg(), but commit message said Use %p
Frank
Quoted 6 lines
drivers/dma/loongson/loongson2-apb-cmc-dma.c +0
-1loongson2_cmc_dma_start_transfer (lchan); } } --2.55.0
Quoted 22 lines · Frank Li
Quoted 21 lines · Sebastian Andrzej Siewior
The %pK format modifier was meant for /proc kind of output, not general printk output. Since commit
ad67b74d2469d("printk: hash addresses printed with %p") pointers are hashed by default and the behaviour can be controller by `hash_pointers' boot argument.
The policy on %p is to not introduce new ones. This is the only pointer output in the driver.Remove the pointer formating from debug output.
Signed-off-by Sebastian Andrzej Siewior <[email protected]>--- drivers/dma/loongson/loongson2-apb-cmc-dma.c | 1 - 1 file changed, 1 deletion(-)drivers/dma/loongson/loongson2-apb-cmc-dma.c +0
-0@@ -337,7 +337,6 @@ static void loongson2_cmc_dma_issue_pending(struct dma_chan *chan)guard (spinlock_irqsave)(&lchan->vchan.lock);
Quoted 4 lines
drivers/dma/loongson/loongson2-apb-cmc-dma.c static void loongson2_cmc_dma_issue_pending(struct dma_chan *chan) · line 340
Quoted 2 lines
drivers/dma/loongson/loongson2-apb-cmc-dma.c +0
-1if (vchan_issue_pending (&lchan->vchan) && !lchan->desc) { -dev_dbg (chan2dev (lchan),"vchan %pK: issued\n" , &lchan->vchan);You remove whole
dev_dbg(), but commit message said Use %p
I redid based on feedback before submitting and forgot to update the subject. Are you fine with removing it?
Quoted 4 lines
Frank
Quoted 3 lines
drivers/dma/loongson/loongson2-apb-cmc-dma.c +0
-0loongson2_cmc_dma_start_transfer (lchan); } }
Sebastian
Quoted 23 lines · Sebastian Andrzej Siewior
Quoted 22 lines · Frank Li
Quoted 21 lines · Sebastian Andrzej Siewior
The %pK format modifier was meant for /proc kind of output, not general printk output. Since commit
ad67b74d2469d("printk: hash addresses printed with %p") pointers are hashed by default and the behaviour can be controller by `hash_pointers' boot argument.
The policy on %p is to not introduce new ones. This is the only pointer output in the driver.Remove the pointer formating from debug output.
Signed-off-by Sebastian Andrzej Siewior <[email protected]>--- drivers/dma/loongson/loongson2-apb-cmc-dma.c | 1 - 1 file changed, 1 deletion(-)drivers/dma/loongson/loongson2-apb-cmc-dma.c +0
-0@@ -337,7 +337,6 @@ static void loongson2_cmc_dma_issue_pending(struct dma_chan *chan)guard (spinlock_irqsave)(&lchan->vchan.lock);
Quoted 7 lines
Quoted 4 lines
drivers/dma/loongson/loongson2-apb-cmc-dma.c static void loongson2_cmc_dma_issue_pending(struct dma_chan *chan) · line 340
Quoted 2 lines
drivers/dma/loongson/loongson2-apb-cmc-dma.c +0
-1if (vchan_issue_pending (&lchan->vchan) && !lchan->desc) { -dev_dbg (chan2dev (lchan),"vchan %pK: issued\n" , &lchan->vchan);You remove whole
dev_dbg(), but commit message said Use %pI redid based on feedback before submitting and forgot to update the subject. Are you fine with removing it?
I am fine to remove it.
Frank
Quoted 7 lines
Quoted 5 lines
Frank
Quoted 3 lines
drivers/dma/loongson/loongson2-apb-cmc-dma.c +0
-0loongson2_cmc_dma_start_transfer (lchan); } }Sebastian