]> git.karo-electronics.de Git - linux-beck.git/commit
staging: speakup: fix type mismatch warnings
authorOkash Khawaja <okash.khawaja@gmail.com>
Thu, 10 Mar 2016 20:21:35 +0000 (20:21 +0000)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 28 Mar 2016 14:30:36 +0000 (07:30 -0700)
commitff59f2a6d44e4c96cd56e8b12c5678ef85a3b576
treed5f01af607e4bca138f27f94a920b34621b5b536
parentb42ca86ad605eb3e3f26618eed35ac6ff7435964
staging: speakup: fix type mismatch warnings

Compiling speakup driver with sparse produces following warning:

drivers/staging/speakup/serialio.c:22:9: warning: incorrect type in
initializer (different base types)
drivers/staging/speakup/serialio.c:22:9:    expected unsigned int
[unsigned] flags
drivers/staging/speakup/serialio.c:22:9:    got restricted upf_t

This patch fixes it.

Signed-off-by: Okash Khawaja <okash.khawaja@gmail.com>
Acked-by: Samuel Thibault <samuel.thibault@ens-lyon.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/speakup/serialio.h