diff mbox series

[3/6] include: types: add always inline compiler attribute

Message ID 20230104062927.15628-4-peterlin@andestech.com
State Changes Requested
Headers show
Series Implement hart hotplug using HSM extension for | expand

Commit Message

Yu-Chien Peter Lin Jan. 4, 2023, 6:29 a.m. UTC
Provide __always_inline to sbi_types header.

Signed-off-by: Yu Chien Peter Lin <peterlin@andestech.com>
---
 include/sbi/sbi_types.h | 1 +
 1 file changed, 1 insertion(+)

Comments

Anup Patel Jan. 16, 2023, 9:02 a.m. UTC | #1
On Wed, Jan 4, 2023 at 12:02 PM Yu Chien Peter Lin
<peterlin@andestech.com> wrote:
>
> Provide __always_inline to sbi_types header.
>
> Signed-off-by: Yu Chien Peter Lin <peterlin@andestech.com>

Looks good to me.

Reviewed-by: Anup Patel <anup@brainfault.org>

Regards,
Anup

> ---
>  include/sbi/sbi_types.h | 1 +
>  1 file changed, 1 insertion(+)
>
> diff --git a/include/sbi/sbi_types.h b/include/sbi/sbi_types.h
> index 7fb1af7..c48d4d1 100644
> --- a/include/sbi/sbi_types.h
> +++ b/include/sbi/sbi_types.h
> @@ -64,6 +64,7 @@ typedef unsigned long         physical_size_t;
>  #define __packed               __attribute__((packed))
>  #define __noreturn             __attribute__((noreturn))
>  #define __aligned(x)           __attribute__((aligned(x)))
> +#define __always_inline        inline __attribute__((always_inline))
>
>  #define likely(x) __builtin_expect((x), 1)
>  #define unlikely(x) __builtin_expect((x), 0)
> --
> 2.34.1
>
>
> --
> opensbi mailing list
> opensbi@lists.infradead.org
> http://lists.infradead.org/mailman/listinfo/opensbi
diff mbox series

Patch

diff --git a/include/sbi/sbi_types.h b/include/sbi/sbi_types.h
index 7fb1af7..c48d4d1 100644
--- a/include/sbi/sbi_types.h
+++ b/include/sbi/sbi_types.h
@@ -64,6 +64,7 @@  typedef unsigned long		physical_size_t;
 #define __packed		__attribute__((packed))
 #define __noreturn		__attribute__((noreturn))
 #define __aligned(x)		__attribute__((aligned(x)))
+#define __always_inline	inline __attribute__((always_inline))
 
 #define likely(x) __builtin_expect((x), 1)
 #define unlikely(x) __builtin_expect((x), 0)