aboutsummaryrefslogtreecommitdiffstats
path: root/net/switchdev/switchdev.c
diff options
context:
space:
mode:
authorArnd Bergmann <[email protected]>2021-01-03 13:53:55 +0000
committerJiri Kosina <[email protected]>2021-01-04 15:08:12 +0000
commitde30491e8bfeeba1500bba293333eb51ece529d5 (patch)
tree573cee8beaef1e4dadc29293ecdfeab7190f5e13 /net/switchdev/switchdev.c
parentHID: multitouch: Enable multi-input for Synaptics pointstick/touchpad device (diff)
downloadkernel-de30491e8bfeeba1500bba293333eb51ece529d5.tar.gz
kernel-de30491e8bfeeba1500bba293333eb51ece529d5.zip
HID: sfh: fix address space confusion
The new driver uses a phys_addr_t to store a DMA address, which does not work when the two are different size: drivers/hid/amd-sfh-hid/amd_sfh_client.c:157:11: error: incompatible pointer types passing 'phys_addr_t *' (aka 'unsigned int *') to parameter of type 'dma_addr_t *' (aka 'unsigned long long *') [-Werror,-Wincompatible-pointer-types] &cl_data->sensor_phys_addr[i], ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~ include/linux/dma-mapping.h:393:15: note: passing argument to parameter 'dma_handle' here dma_addr_t *dma_handle, gfp_t gfp) ^ Change both the type and the variable name to dma_addr for consistency. Fixes: 4b2c53d93a4b ("SFH:Transport Driver to add support of AMD Sensor Fusion Hub (SFH)") Signed-off-by: Arnd Bergmann <[email protected]> Signed-off-by: Jiri Kosina <[email protected]>
Diffstat (limited to 'net/switchdev/switchdev.c')
0 files changed, 0 insertions, 0 deletions