summaryrefslogtreecommitdiff
path: root/scripts/gdb/linux/utils.py
diff options
context:
space:
mode:
authorSergey Shtylyov <s.shtylyov@omp.ru>2022-04-12 20:26:46 +0300
committerDamien Le Moal <damien.lemoal@opensource.wdc.com>2022-04-13 06:42:51 +0300
commitdafbbf5c57dd6ae01d20b894bc2200e9d9834c4e (patch)
treeb2ee0defc6b962eb98fd094eb988257bb837382f /scripts/gdb/linux/utils.py
parenta28c1ab312712c26a8d004af1f68628d625dafac (diff)
downloadlinux-dafbbf5c57dd6ae01d20b894bc2200e9d9834c4e.tar.xz
ata: pata_sil680: fix result type of sil680_sel{dev|reg}()
sil680_sel{dev|reg}() return a PCI config space address but needlessly use the *unsigned long* type for that, whereas the PCI config space accessors take *int* for the address parameter. Switch these functions to returning *int*, updating the local variables at their call sites. Get rid of the 'base' local variables in these functions, while at it... Found by Linux Verification Center (linuxtesting.org) with the SVACE static analysis tool. Signed-off-by: Sergey Shtylyov <s.shtylyov@omp.ru> Signed-off-by: Damien Le Moal <damien.lemoal@opensource.wdc.com>
Diffstat (limited to 'scripts/gdb/linux/utils.py')
0 files changed, 0 insertions, 0 deletions