aboutsummaryrefslogtreecommitdiffstats
path: root/tools/perf/scripts/python/flamegraph.py
diff options
context:
space:
mode:
authorDamien Le Moal <damien.lemoal@opensource.wdc.com>2022-02-20 12:17:44 +0900
committerMartin K. Petersen <martin.petersen@oracle.com>2022-02-22 21:31:17 -0500
commit3762d8f6edcdb03994c919f9487fd6d336c06561 (patch)
treee1b3cd5f0456c30a4d7d530d2c19bf16ede64cfa /tools/perf/scripts/python/flamegraph.py
parentscsi: pm8001: Fix command initialization in pm80XX_send_read_log() (diff)
downloadlinux-3762d8f6edcdb03994c919f9487fd6d336c06561.tar.gz
linux-3762d8f6edcdb03994c919f9487fd6d336c06561.zip
scsi: pm8001: Fix pm80xx_pci_mem_copy() interface
The declaration of the local variable destination1 in pm80xx_pci_mem_copy() as a pointer to a u32 results in the sparse warning: warning: incorrect type in assignment (different base types) expected unsigned int [usertype] got restricted __le32 [usertype] Furthermore, the destination" argument of pm80xx_pci_mem_copy() is wrongly declared with the const attribute. Fix both problems by changing the type of the "destination" argument to "__le32 *" and use this argument directly inside the pm80xx_pci_mem_copy() function, thus removing the need for the destination1 local variable. Link: https://lore.kernel.org/r/20220220031810.738362-6-damien.lemoal@opensource.wdc.com Reviewed-by: Jack Wang <jinpu.wang@ionos.com> Signed-off-by: Damien Le Moal <damien.lemoal@opensource.wdc.com> Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
Diffstat (limited to 'tools/perf/scripts/python/flamegraph.py')
0 files changed, 0 insertions, 0 deletions