From cf7c358d5bb2b62a4ad7a8d896a22e72a9bb7b77 Mon Sep 17 00:00:00 2001 From: John Studnicka Date: Mon, 16 Mar 2026 00:55:09 -0700 Subject: [PATCH] os: add busfault dummy struct This should make the busfault structs happy on both sides of the ifdef Signed-off-by: John Studnicka --- os/busfault.h | 22 ++++++++++++++++++++-- 1 file changed, 20 insertions(+), 2 deletions(-) diff --git a/os/busfault.h b/os/busfault.h index 0cc5a6d802..21957b2fef 100644 --- a/os/busfault.h +++ b/os/busfault.h @@ -29,12 +29,12 @@ #include "misc.h" /* for TRUE/FALSE */ +typedef void (*busfault_notify_ptr) (void *context); + #ifdef HAVE_SIGACTION #include -typedef void (*busfault_notify_ptr) (void *context); - struct busfault * busfault_register_mmap(void *addr, size_t size, busfault_notify_ptr notify, void *context); @@ -49,6 +49,24 @@ busfault_init(void); #else +struct busfault; + +static inline struct busfault * +busfault_register_mmap(void *addr, size_t size, busfault_notify_ptr notify, void *context) +{ + (void) addr; + (void) size; + (void) notify; + (void) context; + return NULL; +} + +static inline void +busfault_unregister(struct busfault *busfault) +{ + (void) busfault; +} + static inline void busfault_check(void) {} static inline Bool busfault_init(void) { return FALSE; }