this eliminates the occurrance of gcc warning warning: ‘?’ defined but not used --- src/target/firmware/calypso/dsp.c | 2 ++ src/target/firmware/calypso/irq.c | 2 ++ 2 files changed, 4 insertions(+), 0 deletions(-)
diff --git a/src/target/firmware/calypso/dsp.c b/src/target/firmware/calypso/dsp.c index 8bf9749..470dfc4 100644 --- a/src/target/firmware/calypso/dsp.c +++ b/src/target/firmware/calypso/dsp.c @@ -117,6 +117,7 @@ static void dsp_bl_start_at(uint16_t addr) writew(BL_CMD_COPY_BLOCK, BL_CMD_STATUS); }
+#if 0 static int dsp_bl_upload_sections(const struct dsp_section *sec) { /* Make sure the bootloader is ready */ @@ -151,6 +152,7 @@ static int dsp_bl_upload_sections(const struct dsp_section *sec)
return 0; } +#endif
static int dsp_upload_sections_api(const struct dsp_section *sec, uint16_t dsp_base_api) { diff --git a/src/target/firmware/calypso/irq.c b/src/target/firmware/calypso/irq.c index 136fd55..9c2e0ed 100644 --- a/src/target/firmware/calypso/irq.c +++ b/src/target/firmware/calypso/irq.c @@ -232,6 +232,7 @@ static void set_default_priorities(void) } }
+#if 0 static uint32_t irq_nest_mask; /* mask off all interrupts that have a lower priority than irq_nr */ static void mask_all_lower_prio_irqs(enum irq_nr irqnr) @@ -250,6 +251,7 @@ static void mask_all_lower_prio_irqs(enum irq_nr irqnr) irq_nest_mask |= (1 << i); } } +#endif
void irq_init(void) {