From cc546e1a06930c5ebaf6e90a9a28dca4218f1954 Mon Sep 17 00:00:00 2001 From: Jessica Clarke Date: Thu, 10 Jul 2025 00:29:30 +0100 Subject: [PATCH] include: sbi: Remove unused (LOG_)REGBYTES These are no longer used, so remove them. Signed-off-by: Jessica Clarke Reviewed-by: Anup Patel Link: https://lore.kernel.org/r/20250709232932.37622-3-jrtc27@jrtc27.com Signed-off-by: Anup Patel --- include/sbi/riscv_encoding.h | 7 ------- 1 file changed, 7 deletions(-) diff --git a/include/sbi/riscv_encoding.h b/include/sbi/riscv_encoding.h index f4df1ae4..40a854e3 100644 --- a/include/sbi/riscv_encoding.h +++ b/include/sbi/riscv_encoding.h @@ -1317,13 +1317,6 @@ #define INSN_LEN(insn) (INSN_IS_16BIT(insn) ? 2 : 4) -#if __riscv_xlen == 64 -#define LOG_REGBYTES 3 -#else -#define LOG_REGBYTES 2 -#endif -#define REGBYTES (1 << LOG_REGBYTES) - #define SH_VSEW 3 #define SH_VIEW 12 #define SH_VD 7