From e23d3ba936698c52c83bbeed8d844fea22ae0859 Mon Sep 17 00:00:00 2001 From: Anup Patel Date: Sat, 14 Mar 2020 14:20:22 +0530 Subject: include: Simplify HART id to scratch macro This patch simplify HART id to scratch macro as follows: 1. Remove current "scratch" pointer argument because now we use HART id to scratch table 2. Rename sbi_hart_id_to_scratch() to sbi_hartid_to_scratch() to have macro name consistent with the name of callback in struct sbi_scratch Signed-off-by: Anup Patel Reviewed-by: Bin Meng Reviewed-by: Atish Patra --- include/sbi/sbi_scratch.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'include/sbi/sbi_scratch.h') diff --git a/include/sbi/sbi_scratch.h b/include/sbi/sbi_scratch.h index ec47caf..e848900 100644 --- a/include/sbi/sbi_scratch.h +++ b/include/sbi/sbi_scratch.h @@ -110,7 +110,7 @@ void sbi_scratch_free_offset(unsigned long offset); extern struct sbi_scratch *hartid_to_scratch_table[]; /** Get sbi_scratch from HART id */ -#define sbi_hart_id_to_scratch(__scratch, __hartid) \ +#define sbi_hartid_to_scratch(__hartid) \ hartid_to_scratch_table[__hartid] #endif -- cgit v1.2.3