[PATCH 01/10] platform: generic: andes: Remove inline definitions
Anup Patel
anup at brainfault.org
Mon Apr 21 21:43:17 PDT 2025
On Wed, Mar 26, 2025 at 5:13 AM Samuel Holland
<samuel.holland at sifive.com> wrote:
>
> The addresses of these functions are used to set function pointers in
> struct platform_override, so it is not valid for them to be inline.
>
> Signed-off-by: Samuel Holland <samuel.holland at sifive.com>
LGTM.
Reviewed-by: Anup Patel <anup at brainfault.org>
Regards,
Anup
> ---
>
> platform/generic/include/andes/andes_pmu.h | 16 ----------------
> 1 file changed, 16 deletions(-)
>
> diff --git a/platform/generic/include/andes/andes_pmu.h b/platform/generic/include/andes/andes_pmu.h
> index f3553246..c600d35f 100644
> --- a/platform/generic/include/andes/andes_pmu.h
> +++ b/platform/generic/include/andes/andes_pmu.h
> @@ -11,24 +11,8 @@
> #include <sbi_utils/fdt/fdt_helper.h>
> #include <sbi_utils/fdt/fdt_pmu.h>
>
> -#ifdef CONFIG_ANDES_PMU
> -
> int andes_pmu_init(const struct fdt_match *match);
> int andes_pmu_extensions_init(const struct fdt_match *match,
> struct sbi_hart_features *hfeatures);
>
> -#else
> -
> -static inline int andes_pmu_init(const struct fdt_match *match)
> -{
> - return 0;
> -}
> -static inline int andes_pmu_extensions_init(const struct fdt_match *match,
> - struct sbi_hart_features *hfeatures)
> -{
> - return 0;
> -}
> -
> -#endif /* CONFIG_ANDES_PMU */
> -
> #endif /* _RISCV_ANDES_PMU_H */
> --
> 2.47.2
>
>
> --
> opensbi mailing list
> opensbi at lists.infradead.org
> http://lists.infradead.org/mailman/listinfo/opensbi
More information about the opensbi
mailing list