]> git.itanic.dy.fi Git - linux-stable/commitdiff
media: atomisp: make hive_int8 explictly signed
authorJason A. Donenfeld <Jason@zx2c4.com>
Thu, 3 Nov 2022 00:15:37 +0000 (01:15 +0100)
committerJason A. Donenfeld <Jason@zx2c4.com>
Fri, 18 Nov 2022 23:56:15 +0000 (00:56 +0100)
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 <mchehab@kernel.org>
Cc: Sakari Ailus <sakari.ailus@linux.intel.com>
Cc: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
drivers/staging/media/atomisp/pci/hive_types.h

index 4b8a679fb6722da9749dcf085cb8cf303daed96c..55d36931f079564f8ff6341a3ae0a216b5e6b1ff 100644 (file)
@@ -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;