From: Jason A. Donenfeld Date: Thu, 3 Nov 2022 00:15:37 +0000 (+0100) Subject: media: atomisp: make hive_int8 explictly signed X-Git-Tag: v6.6.17~6051^2~2 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=daf4218bf8dd9750d1ad93846aee98bf2e08eeee;p=platform%2Fkernel%2Flinux-rpi.git media: atomisp: make hive_int8 explictly signed The current definition of hive_int8 is a naked char, without any sign specifier. This is incorrect on platforms such as arm, where char is unsigned. Fortunately nothing in the kernel actually uses a hive_int8 type, but in case it gets used later rather than removed, this makes it explicitly signed. Cc: Mauro Carvalho Chehab Cc: Sakari Ailus Cc: Greg Kroah-Hartman Signed-off-by: Jason A. Donenfeld --- diff --git a/drivers/staging/media/atomisp/pci/hive_types.h b/drivers/staging/media/atomisp/pci/hive_types.h index 4b8a679..55d3693 100644 --- a/drivers/staging/media/atomisp/pci/hive_types.h +++ b/drivers/staging/media/atomisp/pci/hive_types.h @@ -42,7 +42,7 @@ typedef unsigned int hive_bool; #define hive_false 0 #define hive_true 1 -typedef char hive_int8; +typedef signed char hive_int8; typedef short hive_int16; typedef int hive_int32; typedef long long hive_int64;