diff options
author | Krzysztof Wilczyński <[email protected]> | 2021-10-08 22:27:32 +0000 |
---|---|---|
committer | Bjorn Helgaas <[email protected]> | 2021-10-12 13:45:22 -0500 |
commit | 357df2fc00661e0993e0e40d1a56bdd967f45c17 (patch) | |
tree | bafac4f2774b0a21a5c5b4f964987e7e5916950c /tools/perf/scripts/python/bin/export-to-postgresql-report | |
parent | f18312084300598544529510bcfab5f3e795e36a (diff) |
PCI: Use unsigned to match sscanf("%x") in pci_dev_str_match_path()
Cppcheck warns that pci_dev_str_match_path() passes pointers to signed ints
to sscanf("%x"), which expects pointers to *unsigned* ints:
invalidScanfArgType_int drivers/pci/pci.c:312 %x in format string (no. 2) requires 'unsigned int *' but the argument type is 'signed int *'.
Declare the variables as unsigned to avoid this issue.
[bhelgaas: commit log]
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Krzysztof Wilczyński <[email protected]>
Signed-off-by: Bjorn Helgaas <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/bin/export-to-postgresql-report')
0 files changed, 0 insertions, 0 deletions