summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBenedikt Freisen <[email protected]>2025-11-14 21:38:36 +0100
committerAnup Patel <[email protected]>2025-12-15 18:42:00 +0530
commitd65c1e95a737d8365a6b170c2074c27b56fc5bcb (patch)
treedfd48e8f493b51c280b6788cabf293655a3fc484
parent51fe6a8bc958166ff79805cf69bafe5e297776f4 (diff)
include: sbi: Make "s8" actually signed.
Since plain "char" is implicitly unsigned on RISC-V, "s8" should be an alias for "signed char". Signed-off-by: Benedikt Freisen <[email protected]> Reviewed-by: Radim Krčmář <[email protected]> Reviewed-by: Anup Patel <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Anup Patel <[email protected]>
-rw-r--r--include/sbi/sbi_types.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/sbi/sbi_types.h b/include/sbi/sbi_types.h
index 2637faf7..b8a7e6cb 100644
--- a/include/sbi/sbi_types.h
+++ b/include/sbi/sbi_types.h
@@ -14,7 +14,7 @@
/* clang-format off */
-typedef char s8;
+typedef signed char s8;
typedef unsigned char u8;
typedef unsigned char uint8_t;