aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/amd/amdgpu/amdgpu_encoders.c
diff options
context:
space:
mode:
authorDamien Le Moal <[email protected]>2022-10-14 01:45:58 +0000
committerDamien Le Moal <[email protected]>2022-10-17 23:02:14 +0000
commite8fbdf1855f7f31a8f37df60d7be44d8aabe6288 (patch)
treedb529a631ebbcb3a5b55dfd779c3d5251c69966f /drivers/gpu/drm/amd/amdgpu/amdgpu_encoders.c
parentata: ahci_brcm: Fix compilation warning (diff)
downloadkernel-e8fbdf1855f7f31a8f37df60d7be44d8aabe6288.tar.gz
kernel-e8fbdf1855f7f31a8f37df60d7be44d8aabe6288.zip
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 <[email protected]> Acked-by: Arnd Bergmann <[email protected]>
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/amdgpu_encoders.c')
0 files changed, 0 insertions, 0 deletions