kernel-fxtec-pro1x/samples
Nathan Chancellor 005874c517 vfio-mdev/samples: Use u8 instead of char for handle functions
[ Upstream commit 8ba35b3a0046d6573c98f00461d9bd1b86250d35 ]

Clang warns:

samples/vfio-mdev/mtty.c:592:39: warning: implicit conversion from 'int'
to 'char' changes value from 162 to -94 [-Wconstant-conversion]
                *buf = UART_MSR_DSR | UART_MSR_DDSR | UART_MSR_DCD;
                     ~ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~
1 warning generated.

Turns out that all uses of buf in this function ultimately end up stored
or cast to an unsigned type. Just use u8, which has the same number of
bits but can store this larger number so Clang no longer warns.

Signed-off-by: Nathan Chancellor <natechancellor@gmail.com>
Signed-off-by: Alex Williamson <alex.williamson@redhat.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
2019-12-05 09:20:28 +01:00
..
auxdisplay
bpf samples/bpf: fix build by setting HAVE_ATTR_TEST to zero 2019-12-05 09:19:39 +01:00
configfs
connector
hidraw
hw_breakpoint
kdb
kfifo
kobject
kprobes
livepatch
mei mei: samples: fix a signedness bug in amt_host_if_call() 2019-11-24 08:19:50 +01:00
mic/mpssd
pktgen
qmi
rpmsg
seccomp
statx
timers
trace_events
trace_printk
uhid
v4l
vfio-mdev vfio-mdev/samples: Use u8 instead of char for handle functions 2019-12-05 09:20:28 +01:00
watchdog
Kconfig
Makefile