diff options
author | Damien Le Moal <damien.lemoal@opensource.wdc.com> | 2022-10-14 04:38:15 +0300 |
---|---|---|
committer | Damien Le Moal <damien.lemoal@opensource.wdc.com> | 2022-10-18 02:01:45 +0300 |
commit | 0ffac4727eec1879305c1bda07c0195197937bb2 (patch) | |
tree | 8fec2974b1508f7de6af2ee667f98c085518aaa3 /tools/perf/scripts/python/stackcollapse.py | |
parent | 17cc1ee6e83b16989118237294327bd0dd12b1a4 (diff) | |
download | linux-0ffac4727eec1879305c1bda07c0195197937bb2.tar.xz |
ata: sata_rcar: Fix compilation warning
When compiling with clang and W=1, the following warning is generated:
drivers/ata/sata_rcar.c:878:15: error: cast to smaller integer type
'enum sata_rcar_type' from 'const void *'
[-Werror,-Wvoid-pointer-to-enum-cast]
priv->type = (enum sata_rcar_type)of_device_get_match_data(dev);
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Fix this by using a cast to unsigned long to match the "void *" type
size returned by of_device_get_match_data().
Signed-off-by: Damien Le Moal <damien.lemoal@opensource.wdc.com>
Reviewed-by: Geert Uytterhoeven <geert+renesas@glider.be>
Acked-by: Arnd Bergmann <arnd@arndb.de>
Reviewed-by: Sergey Shtylyov <s.shtylyov@omp.ru>
Diffstat (limited to 'tools/perf/scripts/python/stackcollapse.py')
0 files changed, 0 insertions, 0 deletions