Commit ea87b8e1 authored by Joe Perches's avatar Joe Perches Committed by Linus Torvalds

rapidio: remove unnecessary 0x prefixes before %pa extension uses

Patch series "RapidIO subsystem updates".

This set of patches contains RapidIO subsystem fixes and updates that
have been made since kernel v4.6.  The most significant update brings
changes related to the latest revision of RapidIO specification
(rev.3.x) and introduction of next generation of RapidIO switches by IDT
(RXS1632 and RXS2448).

This patch (of 13):

This is RapidIO part of the original patch submitted by Joe Perches.
(see: https://lkml.org/lkml/2016/3/5/19)

Since commit 3cab1e71 ("lib/vsprintf: refactor duplicate code
to special_hex_number()") %pa uses have been output with a 0x prefix.

These 0x prefixes in the formats are unnecessary.

Link: http://lkml.kernel.org/r/1469125134-16523-2-git-send-email-alexandre.bounine@idt.comSigned-off-by: default avatarJoe Perches <joe@perches.com>
Signed-off-by: default avatarAlexandre Bounine <alexandre.bounine@idt.com>
Cc: Matt Porter <mporter@kernel.crashing.org>
Cc: Andre van Herk <andre.van.herk@prodrive-technologies.com>
Cc: Barry Wood <barry.wood@idt.com>
Signed-off-by: default avatarAndrew Morton <akpm@linux-foundation.org>
Signed-off-by: default avatarLinus Torvalds <torvalds@linux-foundation.org>
parent b6e8d4aa
...@@ -2242,7 +2242,7 @@ static void mport_mm_open(struct vm_area_struct *vma) ...@@ -2242,7 +2242,7 @@ static void mport_mm_open(struct vm_area_struct *vma)
{ {
struct rio_mport_mapping *map = vma->vm_private_data; struct rio_mport_mapping *map = vma->vm_private_data;
rmcd_debug(MMAP, "0x%pad", &map->phys_addr); rmcd_debug(MMAP, "%pad", &map->phys_addr);
kref_get(&map->ref); kref_get(&map->ref);
} }
...@@ -2250,7 +2250,7 @@ static void mport_mm_close(struct vm_area_struct *vma) ...@@ -2250,7 +2250,7 @@ static void mport_mm_close(struct vm_area_struct *vma)
{ {
struct rio_mport_mapping *map = vma->vm_private_data; struct rio_mport_mapping *map = vma->vm_private_data;
rmcd_debug(MMAP, "0x%pad", &map->phys_addr); rmcd_debug(MMAP, "%pad", &map->phys_addr);
mutex_lock(&map->md->buf_mutex); mutex_lock(&map->md->buf_mutex);
kref_put(&map->ref, mport_release_mapping); kref_put(&map->ref, mport_release_mapping);
mutex_unlock(&map->md->buf_mutex); mutex_unlock(&map->md->buf_mutex);
......
...@@ -1101,7 +1101,7 @@ static int tsi721_rio_map_inb_mem(struct rio_mport *mport, dma_addr_t lstart, ...@@ -1101,7 +1101,7 @@ static int tsi721_rio_map_inb_mem(struct rio_mport *mport, dma_addr_t lstart,
ibw_start = lstart & ~(ibw_size - 1); ibw_start = lstart & ~(ibw_size - 1);
tsi_debug(IBW, &priv->pdev->dev, tsi_debug(IBW, &priv->pdev->dev,
"Direct (RIO_0x%llx -> PCIe_0x%pad), size=0x%x, ibw_start = 0x%llx", "Direct (RIO_0x%llx -> PCIe_%pad), size=0x%x, ibw_start = 0x%llx",
rstart, &lstart, size, ibw_start); rstart, &lstart, size, ibw_start);
while ((lstart + size) > (ibw_start + ibw_size)) { while ((lstart + size) > (ibw_start + ibw_size)) {
...@@ -1120,7 +1120,7 @@ static int tsi721_rio_map_inb_mem(struct rio_mport *mport, dma_addr_t lstart, ...@@ -1120,7 +1120,7 @@ static int tsi721_rio_map_inb_mem(struct rio_mport *mport, dma_addr_t lstart,
} else { } else {
tsi_debug(IBW, &priv->pdev->dev, tsi_debug(IBW, &priv->pdev->dev,
"Translated (RIO_0x%llx -> PCIe_0x%pad), size=0x%x", "Translated (RIO_0x%llx -> PCIe_%pad), size=0x%x",
rstart, &lstart, size); rstart, &lstart, size);
if (!is_power_of_2(size) || size < 0x1000 || if (!is_power_of_2(size) || size < 0x1000 ||
...@@ -1215,7 +1215,7 @@ static int tsi721_rio_map_inb_mem(struct rio_mport *mport, dma_addr_t lstart, ...@@ -1215,7 +1215,7 @@ static int tsi721_rio_map_inb_mem(struct rio_mport *mport, dma_addr_t lstart,
priv->ibwin_cnt--; priv->ibwin_cnt--;
tsi_debug(IBW, &priv->pdev->dev, tsi_debug(IBW, &priv->pdev->dev,
"Configured IBWIN%d (RIO_0x%llx -> PCIe_0x%pad), size=0x%llx", "Configured IBWIN%d (RIO_0x%llx -> PCIe_%pad), size=0x%llx",
i, ibw_start, &loc_start, ibw_size); i, ibw_start, &loc_start, ibw_size);
return 0; return 0;
...@@ -1237,7 +1237,7 @@ static void tsi721_rio_unmap_inb_mem(struct rio_mport *mport, ...@@ -1237,7 +1237,7 @@ static void tsi721_rio_unmap_inb_mem(struct rio_mport *mport,
int i; int i;
tsi_debug(IBW, &priv->pdev->dev, tsi_debug(IBW, &priv->pdev->dev,
"Unmap IBW mapped to PCIe_0x%pad", &lstart); "Unmap IBW mapped to PCIe_%pad", &lstart);
/* Search for matching active inbound translation window */ /* Search for matching active inbound translation window */
for (i = 0; i < TSI721_IBWIN_NUM; i++) { for (i = 0; i < TSI721_IBWIN_NUM; i++) {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment