]> git.baikalelectronics.ru Git - kernel.git/commit
misc: sgi-gru: use explicitly signed char
authorJason A. Donenfeld <Jason@zx2c4.com>
Tue, 25 Oct 2022 02:52:23 +0000 (04:52 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 25 Oct 2022 17:12:10 +0000 (19:12 +0200)
commitf38a90861281b5fbde0daa2beb05f5d16b3c81ee
tree6dcdc331796df1e09b6956ecbe1f8f4445202b5a
parent87000254444e6800c4ed23bd8495bcd12dffcfc2
misc: sgi-gru: use explicitly signed char

With char becoming unsigned by default, and with `char` alone being
ambiguous and based on architecture, signed chars need to be marked
explicitly as such. This fixes warnings like:

drivers/misc/sgi-gru/grumain.c:711 gru_check_chiplet_assignment() warn: 'gts->ts_user_chiplet_id' is unsigned

Cc: Dimitri Sivanich <dimitri.sivanich@hpe.com>
Cc: Arnd Bergmann <arnd@arndb.de>
Cc: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
Link: https://lore.kernel.org/r/20221025025223.573543-1-Jason@zx2c4.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/misc/sgi-gru/grumain.c
drivers/misc/sgi-gru/grutables.h