aboutsummaryrefslogtreecommitdiffstats
path: root/kernel/events/core.c
diff options
context:
space:
mode:
authorNathan Chancellor <natechancellor@gmail.com>2018-10-19 11:04:27 -0700
committerAlex Williamson <alex.williamson@redhat.com>2018-12-17 11:07:13 -0700
commit8ba35b3a0046d6573c98f00461d9bd1b86250d35 (patch)
treeafdbc9949ff918a98ce36ee2bbf0e2822ceb5d02 /kernel/events/core.c
parentvfio/mdev: add static modifier to add_mdev_supported_type (diff)
downloadlinux-dev-8ba35b3a0046d6573c98f00461d9bd1b86250d35.tar.xz
linux-dev-8ba35b3a0046d6573c98f00461d9bd1b86250d35.zip
vfio-mdev/samples: Use u8 instead of char for handle functions
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>
Diffstat (limited to 'kernel/events/core.c')
0 files changed, 0 insertions, 0 deletions