]> git.baikalelectronics.ru Git - kernel.git/commit
HID: microsoft: do not use compound literal - fix build
authorJiri Slaby <jslaby@suse.cz>
Mon, 12 Nov 2012 09:16:09 +0000 (10:16 +0100)
committerJiri Kosina <jkosina@suse.cz>
Mon, 12 Nov 2012 14:34:59 +0000 (15:34 +0100)
commit474ef2e419f981164a538b5d7d27bedb54edf2f1
tree619c627530d02ee5164ed89355fd4e6b77fa2cdd
parent3699637b788ac2f58b32e9df7a0e465cd4eeefa9
HID: microsoft: do not use compound literal - fix build

In patch "HID: microsoft: fix invalid rdesc for 3k kbd" I fixed
support for MS 3k keyboards. However the added check using memcmp and
a compound statement breaks build on architectures where memcmp is a
macro with parameters.

hid-microsoft.c:51:18: error: macro "memcmp" passed 6 arguments, but takes just 3

On x86_64, memcmp is a function, so I did not see the error.

Signed-off-by: Jiri Slaby <jslaby@suse.cz>
Reported-by: Geert Uytterhoeven <geert@linux-m68k.org>
Signed-off-by: Jiri Kosina <jkosina@suse.cz>
drivers/hid/hid-microsoft.c