aboutsummaryrefslogtreecommitdiffstats
path: root/net/tipc
diff options
context:
space:
mode:
authorDamien Le Moal <[email protected]>2022-10-14 02:03:49 +0000
committerDamien Le Moal <[email protected]>2022-10-17 23:02:14 +0000
commit2ce3a0bf2010b16c78b78cc35a97fa913f1be0ca (patch)
tree5abe24bb23d4fadcade1333d58bfa2bd3eb2fce5 /net/tipc
parentata: ahci_imx: Fix compilation warning (diff)
downloadkernel-2ce3a0bf2010b16c78b78cc35a97fa913f1be0ca.tar.gz
kernel-2ce3a0bf2010b16c78b78cc35a97fa913f1be0ca.zip
ata: ahci_qoriq: Fix compilation warning
When compiling with clang and W=1, the following warning is generated: drivers/ata/ahci_qoriq.c:283:22: error: cast to smaller integer type 'enum ahci_qoriq_type' from 'const void *' [-Werror,-Wvoid-pointer-to-enum-cast] qoriq_priv->type = (enum ahci_qoriq_type)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]>
Diffstat (limited to 'net/tipc')
0 files changed, 0 insertions, 0 deletions