diff options
author | Damien Le Moal <damien.lemoal@opensource.wdc.com> | 2022-10-14 10:45:58 +0900 |
---|---|---|
committer | Damien Le Moal <damien.lemoal@opensource.wdc.com> | 2022-10-18 08:02:14 +0900 |
commit | e8fbdf1855f7f31a8f37df60d7be44d8aabe6288 (patch) | |
tree | db529a631ebbcb3a5b55dfd779c3d5251c69966f /scripts/bpf_doc.py | |
parent | 7d7b0c85127cbac45e6c4e0ae0647ace17cadfaf (diff) |
ata: ahci_xgene: Fix compilation warning
When compiling with clang and W=1, the following warning is generated:
drivers/ata/ahci_xgene.c:788:14: error: cast to smaller integer type
'enum xgene_ahci_version' from 'const void *'
[-Werror,-Wvoid-pointer-to-enum-cast]
version = (enum xgene_ahci_version) of_devid->data;
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Fix this by using a cast to unsigned long to match the "void *" type
size of of_devid->data.
Signed-off-by: Damien Le Moal <damien.lemoal@opensource.wdc.com>
Acked-by: Arnd Bergmann <arnd@arndb.de>
Diffstat (limited to 'scripts/bpf_doc.py')
0 files changed, 0 insertions, 0 deletions