We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 8400291 + 3ee1a6b commit 1a34655Copy full SHA for 1a34655
1 file changed
drivers/pci/pcie/aer_inject.c
@@ -430,7 +430,7 @@ static int aer_inject(struct aer_error_inj *einj)
430
else
431
rperr->root_status |= PCI_ERR_ROOT_COR_RCV;
432
rperr->source_id &= 0xffff0000;
433
- rperr->source_id |= (einj->bus << 8) | devfn;
+ rperr->source_id |= PCI_DEVID(einj->bus, devfn);
434
}
435
if (einj->uncor_status) {
436
if (rperr->root_status & PCI_ERR_ROOT_UNCOR_RCV)
@@ -443,7 +443,7 @@ static int aer_inject(struct aer_error_inj *einj)
443
rperr->root_status |= PCI_ERR_ROOT_NONFATAL_RCV;
444
rperr->root_status |= PCI_ERR_ROOT_UNCOR_RCV;
445
rperr->source_id &= 0x0000ffff;
446
- rperr->source_id |= ((einj->bus << 8) | devfn) << 16;
+ rperr->source_id |= PCI_DEVID(einj->bus, devfn) << 16;
447
448
spin_unlock_irqrestore(&inject_lock, flags);
449
0 commit comments