All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] iommu/amd: fix missing tag from dev_err message
@ 2018-07-03  6:40 ` Colin King
  0 siblings, 0 replies; 31+ messages in thread
From: Colin King @ 2018-07-03  6:40 UTC (permalink / raw)
  To: Joerg Roedel, iommu; +Cc: kernel-janitors, linux-kernel

From: Colin Ian King <colin.king@canonical.com>

Currently tag is being assigned but not used, it is missing from
the dev_err message, so add it in.

Cleans up clang warning:
warning: variable 'tag' set but not used [-Wunused-but-set-variable]

Fixes: e7f63ffc1bf1 ("iommu/amd: Update logging information for new event type")
Signed-off-by: Colin Ian King <colin.king@canonical.com>

---
This is a re-working of an earlier incorrect fix that I posted
yesterday ("iommu/amd: remove redundant variable tag")

---
 drivers/iommu/amd_iommu.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/drivers/iommu/amd_iommu.c b/drivers/iommu/amd_iommu.c
index 596b95c50051..6adab2690793 100644
--- a/drivers/iommu/amd_iommu.c
+++ b/drivers/iommu/amd_iommu.c
@@ -616,9 +616,9 @@ static void iommu_print_event(struct amd_iommu *iommu, void *__evt)
 		pasid = ((event[0] >> 16) & 0xFFFF)
 			| ((event[1] << 6) & 0xF0000);
 		tag = event[1] & 0x03FF;
-		dev_err(dev, "INVALID_PPR_REQUEST device=%02x:%02x.%x pasid=0x%05x address=0x%016llx flags=0x%04x]\n",
+		dev_err(dev, "INVALID_PPR_REQUEST device=%02x:%02x.%x pasid=0x%05x address=0x%016llx flags=0x%04x tag=0x%03x]\n",
 			PCI_BUS_NUM(devid), PCI_SLOT(devid), PCI_FUNC(devid),
-			pasid, address, flags);
+			pasid, address, flags, tag);
 		break;
 	default:
 		dev_err(dev, "UNKNOWN event[0]=0x%08x event[1]=0x%08x event[2]=0x%08x event[3]=0x%08x\n",
-- 
2.17.1


^ permalink raw reply related	[flat|nested] 31+ messages in thread

end of thread, other threads:[~2018-07-06 13:00 UTC | newest]

Thread overview: 31+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2018-07-03  6:40 [PATCH] iommu/amd: fix missing tag from dev_err message Colin King
2018-07-03  6:40 ` Colin King
     [not found] ` <20180703064005.18908-1-colin.king-Z7WLFzj8eWMS+FvcfC7Uqw@public.gmane.org>
2018-07-03 10:07   ` Joe Perches
2018-07-03 10:07     ` Joe Perches
2018-07-03 10:07     ` Joe Perches
2018-07-03 12:56     ` Gary R Hook
2018-07-03 12:56       ` Gary R Hook
2018-07-03 15:55       ` Joe Perches
2018-07-03 15:55         ` Joe Perches
     [not found]         ` <d93bfa0f52d8907019b16336645986cd339ebf75.camel-6d6DIl74uiNBDgjK7y7TUQ@public.gmane.org>
2018-07-03 16:21           ` Hook, Gary
2018-07-03 16:21             ` Hook, Gary
2018-07-03 16:21             ` Hook, Gary
     [not found]             ` <f3e15437-68c1-58eb-bc34-93fa70e50dc9-5C7GfCeVMHo@public.gmane.org>
2018-07-03 16:24               ` Colin Ian King
2018-07-03 16:24                 ` Colin Ian King
2018-07-03 16:24                 ` Colin Ian King
     [not found]                 ` <6fbcf273-bc0a-5dbd-fa0e-a7f656c4ccbc-Z7WLFzj8eWMS+FvcfC7Uqw@public.gmane.org>
2018-07-03 16:27                   ` Hook, Gary
2018-07-03 16:27                     ` Hook, Gary
2018-07-03 16:27                     ` Hook, Gary
2018-07-03 16:38                     ` Joe Perches
2018-07-03 16:38                       ` Joe Perches
2018-07-03 16:38                       ` Joe Perches
2018-07-03 12:54   ` Gary R Hook
2018-07-03 12:54     ` Gary R Hook
2018-07-03 12:54     ` Gary R Hook
2018-07-03 16:57 ` Walter Harms
2018-07-03 16:57   ` Walter Harms
2018-07-03 17:34   ` Joe Perches
2018-07-03 17:34     ` Joe Perches
     [not found]     ` <cb5702b95b8d4914612526125f625c4bc2cedfcc.camel-6d6DIl74uiNBDgjK7y7TUQ@public.gmane.org>
2018-07-06 13:00       ` Joerg Roedel
2018-07-06 13:00         ` Joerg Roedel
2018-07-06 13:00         ` Joerg Roedel

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.