aboutsummaryrefslogtreecommitdiff
path: root/tools/testing/radix-tree/regression1.c
diff options
context:
space:
mode:
authorDamien Le Moal <[email protected]>2022-10-14 10:42:57 +0900
committerDamien Le Moal <[email protected]>2022-10-18 08:01:57 +0900
commit7d7b0c85127cbac45e6c4e0ae0647ace17cadfaf (patch)
tree17dfc3134af389bde82a91ad128c1308693482d8 /tools/testing/radix-tree/regression1.c
parent0ffac4727eec1879305c1bda07c0195197937bb2 (diff)
ata: ahci_brcm: Fix compilation warning
When compiling with clang and W=1, the following warning is generated: drivers/ata/ahci_brcm.c:451:18: error: cast to smaller integer type 'enum brcm_ahci_version' from 'const void *' [-Werror,-Wvoid-pointer-to-enum-cast] priv->version = (enum brcm_ahci_version)of_id->data; ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Fix this by using a cast to unsigned long to match the "void *" type size of of_id->data. Signed-off-by: Damien Le Moal <[email protected]> Acked-by: Arnd Bergmann <[email protected]> Acked-by: Florian Fainelli <[email protected]>
Diffstat (limited to 'tools/testing/radix-tree/regression1.c')
0 files changed, 0 insertions, 0 deletions