From b86f01324be3081170eb2d3bb945c99eff481dd7 Mon Sep 17 00:00:00 2001 From: Gerwin Klein Date: Sat, 2 May 2026 20:35:46 +0200 Subject: [PATCH] omap3+apq8064/mux.c: fix type signature mux.h declares the first parameter of `feature_enable` as const, and `omap3_mux_feature_enable`, which is assigned to `feature_enable`, does not match. gcc-14 complains about the mismatch. (same adjustment for apq8064_mux_feature_enable) Signed-off-by: Gerwin Klein --- libplatsupport/src/plat/apq8064/mux.c | 4 ++-- libplatsupport/src/plat/omap3/mux.c | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/libplatsupport/src/plat/apq8064/mux.c b/libplatsupport/src/plat/apq8064/mux.c index 32c3ebcff..ad209e6bb 100644 --- a/libplatsupport/src/plat/apq8064/mux.c +++ b/libplatsupport/src/plat/apq8064/mux.c @@ -16,7 +16,7 @@ static struct apq8064_mux { volatile struct apq8064_mux_regs* mux; } _mux; -static inline struct apq8064_mux* get_mux_priv(mux_sys_t* mux) { +static inline struct apq8064_mux* get_mux_priv(const mux_sys_t* mux) { return (struct apq8064_mux*)mux->priv; } @@ -28,7 +28,7 @@ static inline void set_mux_priv(mux_sys_t* mux, struct apq8064_mux* apq8064_mux) } static int -apq8064_mux_feature_enable(mux_sys_t* mux, mux_feature_t mux_feature, UNUSED enum mux_gpio_dir mgd) +apq8064_mux_feature_enable(const mux_sys_t* mux, mux_feature_t mux_feature, UNUSED enum mux_gpio_dir mgd) { struct apq8064_mux* m; if (mux == NULL || mux->priv == NULL) { diff --git a/libplatsupport/src/plat/omap3/mux.c b/libplatsupport/src/plat/omap3/mux.c index 1d458e183..defec538d 100644 --- a/libplatsupport/src/plat/omap3/mux.c +++ b/libplatsupport/src/plat/omap3/mux.c @@ -16,7 +16,7 @@ static struct omap3_mux { volatile struct omap3_mux_regs* mux; } _mux; -static inline struct omap3_mux* get_mux_priv(mux_sys_t* mux) { +static inline struct omap3_mux* get_mux_priv(const mux_sys_t* mux) { return (struct omap3_mux*)mux->priv; } @@ -28,7 +28,7 @@ static inline void set_mux_priv(mux_sys_t* mux, struct omap3_mux* omap3_mux) } static int -omap3_mux_feature_enable(mux_sys_t* mux, mux_feature_t mux_feature, UNUSED enum mux_gpio_dir mgd) +omap3_mux_feature_enable(const mux_sys_t* mux, mux_feature_t mux_feature, UNUSED enum mux_gpio_dir mgd) { struct omap3_mux* m; if (mux == NULL || mux->priv == NULL) {