]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
HID: wacom: Fix several minor compiler warnings
authorJason Gerecke <killertofu@gmail.com>
Fri, 16 Aug 2019 18:54:26 +0000 (11:54 -0700)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 7 Oct 2019 16:59:26 +0000 (18:59 +0200)
commit11daaf5c38f2a53c93ce986c82d2ba201b09dd1c
tree93107bd731b2178c403f4159bde25f247f9650b1
parent503aae8dcc18da16db4e5560188ac2a6162800d0
HID: wacom: Fix several minor compiler warnings

[ Upstream commit 073b50bccbbf99a3b79a1913604c656d0e1a56c9 ]

Addresses a few issues that were noticed when compiling with non-default
warnings enabled. The trimmed-down warnings in the order they are fixed
below are:

* declaration of 'size' shadows a parameter

* '%s' directive output may be truncated writing up to 5 bytes into a
  region of size between 1 and 64

* pointer targets in initialization of 'char *' from 'unsigned char *'
  differ in signedness

* left shift of negative value

Signed-off-by: Jason Gerecke <jason.gerecke@wacom.com>
Reviewed-by: Aaron Armstrong Skomra <aaron.skomra@wacom.com>
Signed-off-by: Jiri Kosina <jkosina@suse.cz>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/hid/wacom_sys.c
drivers/hid/wacom_wac.c