Skip to contentSkip to conversation

fix sparse warning in linux-next

PATCH New Matthew Rosato 1 participant 2 messages Aug 4, 2022

Subsystems (3)
lore
Share & tools
lore
#0 lore raw

cover fix sparse warning in linux-next

Hi Paolo,

Sorry I missed the initial report on this while out of the office. This patch fixes a sparse warning that shows up in 'KVM: s390: pci: do initial setup for AEN interpretation' as part of the 5.20/6.0 pull request.

Matthew Rosato (1):
KVM: s390: pci: fix airq_iv_create sparse warning

 arch/s390/kvm/pci.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
Signature · 1 line
2.31.1
#1 lore raw

PATCH 1/1 KVM: s390: pci: fix airq_iv_create sparse warning

Fix the call to airq_iv_create to pass a NULL instead of 0.

---
 arch/s390/kvm/pci.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
arch/s390/kvm/pci.c +1 -1
index 4946fb7757d6..92a6998d8904 100644
@@ -58,7 +58,7 @@ static int zpci_setup_aipb(u8 nisc)
 	if (!zpci_aipb)
 		return -ENOMEM;
 
-	aift->sbv = airq_iv_create(ZPCI_NR_DEVICES, AIRQ_IV_ALLOC, 0);
+	aift->sbv = airq_iv_create(ZPCI_NR_DEVICES, AIRQ_IV_ALLOC, NULL);
 	if (!aift->sbv) {
 		rc = -ENOMEM;
 		goto free_aipb;
Signature · 1 line
2.31.1