diff options
author | msizanoen <[email protected]> | 2023-03-19 23:02:56 -0700 |
---|---|---|
committer | Dmitry Torokhov <[email protected]> | 2023-03-19 23:07:04 -0700 |
commit | 754ff5060daf5a1cf4474eff9b4edeb6c17ef7ab (patch) | |
tree | 4f6f0ebbdb276564d4736327b1003f879e9fe16b /drivers/gpu/drm/amd/amdgpu/amdgpu_gem.c | |
parent | 8980f190947ba29f23110408e712444884b74251 (diff) |
Input: alps - fix compatibility with -funsigned-char
The AlpsPS/2 code previously relied on the assumption that `char` is a
signed type, which was true on x86 platforms (the only place where this
driver is used) before kernel 6.2. However, on 6.2 and later, this
assumption is broken due to the introduction of -funsigned-char as a new
global compiler flag.
Fix this by explicitly specifying the signedness of `char` when sign
extending the values received from the device.
Fixes: f3f33c677699 ("Input: alps - Rushmore and v7 resolution support")
Signed-off-by: msizanoen <[email protected]>
Cc: [email protected]
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Dmitry Torokhov <[email protected]>
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/amdgpu_gem.c')
0 files changed, 0 insertions, 0 deletions