Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
PCI: endpoint: functions: Use memcpy_fromio()/memcpy_toio()
Functions copying from/to IO addresses should use the memcpy_fromio()/memcpy_toio() API rather than plain memcpy(). Fix the issue detected through the sparse tool. Fixes: 349e7a8 ("PCI: endpoint: functions: Add an EP function to test PCI") Suggested-by: Kishon Vijay Abraham I <[email protected]> Signed-off-by: Wen Yang <[email protected]> [[email protected]: updated log] Signed-off-by: Lorenzo Pieralisi <[email protected]> Acked-by: Kishon Vijay Abraham I <[email protected]> CC: Lorenzo Pieralisi <[email protected]> CC: Bjorn Helgaas <[email protected]> CC: Gustavo Pimentel <[email protected]> CC: Niklas Cassel <[email protected]> CC: Greg Kroah-Hartman <[email protected]> CC: Cyrille Pitchen <[email protected]> CC: [email protected] CC: [email protected]
- Loading branch information