]> git.itanic.dy.fi Git - linux-stable/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)
commit677047383296ea25fdfc001be3cdcdf5cc874be2
tree6dcdc331796df1e09b6956ecbe1f8f4445202b5a
parent1deac35b2dbc27dd53665a4db9c6d05b323deea3
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