BUILD_BUG_ON(sizeof(struct usb_interface_descriptor) != USB_DT_INTERFACE_SIZE);
}
-void __attribute__((noreturn)) jump_to_bootcode(void);
+void __noreturn jump_to_bootcode(void);
void send_cmd_to_host(const uint8_t len, const uint8_t type,
const uint8_t ext, const uint8_t *body);
void usb_init_highspeed_fifo_cfg(void);
void usb_init_fullspeed_fifo_cfg(void);
-void start(void);
-void __attribute__((noreturn)) reboot(void);
+void __noreturn start(void);
+void __noreturn reboot(void);
#endif /* __CARL9170FW_USB_H */
reboot();
}
-static void __attribute__((noreturn)) main_loop(void)
+static void __noreturn main_loop(void)
{
/* main loop */
while (1) {
* we put _start() there with the linker script carl9170.lds.
*/
-void __attribute__((noreturn)) start(void)
+void start(void)
{
clock_set(true, AHB_40MHZ_OSC);
set(AR9170_PHY_REG_ADC_SERIAL_CTL, AR9170_PHY_ADC_SCTL_SEL_INTERNAL_ADDAC);
}
-void __attribute__((noreturn)) reboot(void)
+void __noreturn reboot(void)
{
/* write watchdog magic pattern for suspend */
andl(AR9170_PWR_REG_WATCH_DOG_MAGIC, 0xffff);
#define __SHARED_COMPILER_H
#define __noinline __attribute__((noinline))
+#define __noreturn __attribute__((noreturn))
#define __inline __attribute__((always_inline))
#define __hot __attribute__((hot))
#define __cold __attribute__((cold))