Fix Yellow & Red in 41caf678fe

rockbox-gerrit-noreply--- via rockbox-cvs <[email protected]> Mon, 4 May 2026 14:04:42 -0400
Newsgroups gmane.comp.systems.archos.rockbox.cvs
Message-ID <[email protected]>
commit d92b42c70f8c82a56ee6d91884b54e542a3f463f
Author: Solomon Peachy <[email protected]>
Date:   Mon May 4 14:04:26 2026 -0400

    Fix Yellow & Red in 41caf678fe
    
    Change-Id: If111595271289878097c2a8b30bec3f18390a49c

diff --git a/firmware/export/usb-designware.h b/firmware/export/usb-designware.h
index 424390e3b5..e5e4b6073d 100644
--- a/firmware/export/usb-designware.h
+++ b/firmware/export/usb-designware.h
@@ -24,6 +24,7 @@
 #define __USB_DESIGNWARE_H__
 
 #include <inttypes.h>
+#include <stdbool.h>
 #include "config.h"
 #include "cpu.h"
 
diff --git a/firmware/target/arm/rk27xx/usb-drv-rk27xx.c b/firmware/target/arm/rk27xx/usb-drv-rk27xx.c
index 2ea7395e01..1451c6265e 100644
--- a/firmware/target/arm/rk27xx/usb-drv-rk27xx.c
+++ b/firmware/target/arm/rk27xx/usb-drv-rk27xx.c
@@ -295,8 +295,6 @@ void usb_drv_ep_init(const struct usb_drv_ep_alloc_ctx* ctx, int ep)
     else
         RXCON(endp) = (epnum << 8) | RXEPEN | RXNAK | RXACKINTEN | RXCFINTE | RXERRINTEN;
     EN_INT |= 1 << (epnum + 7);
-
-    return 0;
 }
 
 void usb_drv_ep_deinit(const struct usb_drv_ep_alloc_ctx* ctx, int ep)
@@ -307,7 +305,6 @@ void usb_drv_ep_deinit(const struct usb_drv_ep_alloc_ctx* ctx, int ep)
 
     /* disable interrupt from this endpoint */
     EN_INT &= ~(1 << (num + 7));
-    return 0;
 }
 
 /* Set the address (usually it's in a register).
diff --git a/firmware/target/arm/tms320dm320/sansa-connect/tnetv105_usb_drv.c b/firmware/target/arm/tms320dm320/sansa-connect/tnetv105_usb_drv.c
index abfbf0d233..8e6a8610bd 100644
--- a/firmware/target/arm/tms320dm320/sansa-connect/tnetv105_usb_drv.c
+++ b/firmware/target/arm/tms320dm320/sansa-connect/tnetv105_usb_drv.c
@@ -1496,7 +1496,7 @@ void usb_drv_ep_init(const struct usb_drv_ep_alloc_ctx* ctx, int ep)
 
     int num = EP_NUM(ep);
     int dir = EP_DIR(ep);
-    return tnetv_gadget_ep_enable(num, dir == DIR_IN);
+    tnetv_gadget_ep_enable(num, dir == DIR_IN);
 }
 
 void usb_drv_ep_deinit(const struct usb_drv_ep_alloc_ctx* ctx, int ep)
@@ -1505,5 +1505,5 @@ void usb_drv_ep_deinit(const struct usb_drv_ep_alloc_ctx* ctx, int ep)
 
     int num = EP_NUM(ep);
     int dir = EP_DIR(ep);
-    return tnetv_gadget_ep_disable(num, dir == DIR_IN);
+    tnetv_gadget_ep_disable(num, dir == DIR_IN);
 }
diff --git a/firmware/target/mips/ingenic_jz47xx/usb-jz4760.c b/firmware/target/mips/ingenic_jz47xx/usb-jz4760.c
index b8f4e05070..28a8d3619a 100644
--- a/firmware/target/mips/ingenic_jz47xx/usb-jz4760.c
+++ b/firmware/target/mips/ingenic_jz47xx/usb-jz4760.c
@@ -1204,7 +1204,6 @@ void usb_drv_ep_init(const struct usb_drv_ep_alloc_ctx* ctx, int ep)
         REG_USB_INTRINE |= USB_INTR_EP(num);
     else
         REG_USB_INTROUTE |= USB_INTR_EP(num);
-    return 0;
 }
 
 void usb_drv_ep_deinit(const struct usb_drv_ep_alloc_ctx* ctx, int ep)
@@ -1218,5 +1217,4 @@ void usb_drv_ep_deinit(const struct usb_drv_ep_alloc_ctx* ctx, int ep)
         REG_USB_INTRINE &= ~USB_INTR_EP(num);
     else
         REG_USB_INTROUTE &= ~USB_INTR_EP(num);
-    return 0;
 }
-- 
rockbox-cvs mailing list
[email protected]
https://lists.haxx.se/mailman/listinfo/rockbox-cvs