summaryrefslogtreecommitdiffstats
path: root/drivers/ata/libahci_platform.c
diff options
context:
space:
mode:
authormsizanoen <msizanoen@qtmlabs.xyz>2023-03-20 07:02:56 +0100
committerDmitry Torokhov <dmitry.torokhov@gmail.com>2023-03-20 07:07:04 +0100
commit754ff5060daf5a1cf4474eff9b4edeb6c17ef7ab (patch)
tree4f6f0ebbdb276564d4736327b1003f879e9fe16b /drivers/ata/libahci_platform.c
parentInput: focaltech - use explicitly signed char type (diff)
downloadlinux-754ff5060daf5a1cf4474eff9b4edeb6c17ef7ab.tar.xz
linux-754ff5060daf5a1cf4474eff9b4edeb6c17ef7ab.zip
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 <msizanoen@qtmlabs.xyz> Cc: stable@vger.kernel.org Link: https://lore.kernel.org/r/20230320045228.182259-1-msizanoen@qtmlabs.xyz Signed-off-by: Dmitry Torokhov <dmitry.torokhov@gmail.com>
Diffstat (limited to 'drivers/ata/libahci_platform.c')
0 files changed, 0 insertions, 0 deletions