summaryrefslogtreecommitdiff
path: root/drivers/reset
diff options
context:
space:
mode:
authorNathan Chancellor <natechancellor@gmail.com>2018-10-18 16:03:06 -0400
committerMauro Carvalho Chehab <mchehab+samsung@kernel.org>2018-12-05 05:34:33 -0500
commitb2e9a4eda11fd2cb1e6714e9ad3f455c402568ff (patch)
tree079eeff82c287498243416b71a3c5f1f3fa1aede /drivers/reset
parent3cd6954c9b0d5e40fac29c8bbe809a27b7cdc475 (diff)
downloadlwn-b2e9a4eda11fd2cb1e6714e9ad3f455c402568ff.tar.gz
lwn-b2e9a4eda11fd2cb1e6714e9ad3f455c402568ff.zip
media: firewire: Fix app_info parameter type in avc_ca{,_app}_info
Clang warns: drivers/media/firewire/firedtv-avc.c:999:45: warning: implicit conversion from 'int' to 'char' changes value from 159 to -97 [-Wconstant-conversion] app_info[0] = (EN50221_TAG_APP_INFO >> 16) & 0xff; ~ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~ drivers/media/firewire/firedtv-avc.c:1000:45: warning: implicit conversion from 'int' to 'char' changes value from 128 to -128 [-Wconstant-conversion] app_info[1] = (EN50221_TAG_APP_INFO >> 8) & 0xff; ~ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~ drivers/media/firewire/firedtv-avc.c:1040:44: warning: implicit conversion from 'int' to 'char' changes value from 159 to -97 [-Wconstant-conversion] app_info[0] = (EN50221_TAG_CA_INFO >> 16) & 0xff; ~ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~ drivers/media/firewire/firedtv-avc.c:1041:44: warning: implicit conversion from 'int' to 'char' changes value from 128 to -128 [-Wconstant-conversion] app_info[1] = (EN50221_TAG_CA_INFO >> 8) & 0xff; ~ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~ 4 warnings generated. Change app_info's type to unsigned char to match the type of the member msg in struct ca_msg, which is the only thing passed into the app_info parameter in this function. Link: https://github.com/ClangBuiltLinux/linux/issues/105 Signed-off-by: Nathan Chancellor <natechancellor@gmail.com> Signed-off-by: Mauro Carvalho Chehab <mchehab+samsung@kernel.org>
Diffstat (limited to 'drivers/reset')
0 files changed, 0 insertions, 0 deletions