From b7fbdf3acbb6ea74d6226a5bb23445001ca8fb33 Mon Sep 17 00:00:00 2001 From: John Crispin Date: Sun, 19 Oct 2025 00:00:00 +0200 Subject: [PATCH] mm61xx: fix enum type mismatch for GCC 13 compatibility Fix enum type mismatch issues that cause compilation errors with GCC 13. The patch corrects function signatures to use proper enum types instead of generic integer types where appropriate. Signed-off-by: John Crispin --- .../patches/012-fix-enum-type-mismatch.patch | 22 +++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100644 feeds/morse/kernel/mm61xx/patches/012-fix-enum-type-mismatch.patch diff --git a/feeds/morse/kernel/mm61xx/patches/012-fix-enum-type-mismatch.patch b/feeds/morse/kernel/mm61xx/patches/012-fix-enum-type-mismatch.patch new file mode 100644 index 000000000..600fa0249 --- /dev/null +++ b/feeds/morse/kernel/mm61xx/patches/012-fix-enum-type-mismatch.patch @@ -0,0 +1,22 @@ +--- a/debug.h ++++ b/debug.h +@@ -162,7 +162,7 @@ void morse_log_set_default(u8 lvl); + * + * @returns True if output would be generated and false otherwise. + */ +-bool morse_log_is_enabled(u32 id, u8 level); ++bool morse_log_is_enabled(enum morse_feature_id id, u8 level); + + /** + * Set the default logging level for all features. +--- a/firmware.c ++++ b/firmware.c +@@ -850,7 +850,7 @@ static int morse_firmware_get_firmware(struct morse *mors, const char *fw_name) + return ret; + } + +-int morse_firmware_init(struct morse *mors, enum morse_config_test_mode test_mode) ++int morse_firmware_init(struct morse *mors, uint test_mode) + { + int n; + int ret = 0;