Skip to contentSkip to conversation

smokey: fix build failure

PATCH Applied Dario Binacchi 2 participants 2 messages Sep 14, 2024 – Sep 16, 2024

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 smokey: fix build failure

This patch fixes the following building failure raised on bumping Xenomai to version 3.2.5 in Buildroot:

In file included from helpers.c:29:
../../include/smokey/smokey.h:258:39: error: unknown type name ‘bool’
258 | int smokey_modprobe(const char *name, bool silent);
| ^~~~
../../include/smokey/smokey.h:27:1: note: ‘bool’ is defined in header ‘<stdbool.h>’; did you forget to ‘#include <stdbool.h>’?

   26 | #include <xenomai/init.h>
  +++ |+#include <stdbool.h>
   27 |

In file included from init.c:33:
../../include/smokey/smokey.h:258:39: error: unknown type name ‘bool’
258 | int smokey_modprobe(const char *name, bool silent);
| ^~~~
../../include/smokey/smokey.h:26:1: note: ‘bool’ is defined in header ‘<stdbool.h>’; did you forget to ‘#include <stdbool.h>’?

   25 | #include <copperplate/clockobj.h>
  +++ |+#include <stdbool.h>
   26 | #include <xenomai/init.h>

helpers.c:299:39: error: unknown type name ‘bool’
299 | int smokey_modprobe(const char *name, bool silent)
| ^~~~
helpers.c:30:1: note: ‘bool’ is defined in header ‘<stdbool.h>’; did you forget to ‘#include <stdbool.h>’?
29 | #include <smokey/smokey.h>
+++ |+#include <stdbool.h>

---
 include/smokey/smokey.h | 1 +
 1 file changed, 1 insertion(+)
include/smokey/smokey.h +1 -0
index cf9701966db8..45dd0dcd017b 100644
@@ -19,6 +19,7 @@
 #define _XENOMAI_SMOKEY_SMOKEY_H
 
 #include <stdarg.h>
+#include <stdbool.h>
 #include <pthread.h>
 #include <boilerplate/list.h>
 #include <boilerplate/libc.h>
Signature · 1 line
2.43.0
Applied
#1 lore raw
Quoted 36 lines · Dario Binacchi

This patch fixes the following building failure raised on bumping Xenomai to version 3.2.5 in Buildroot:

In file included from helpers.c:29:
../../include/smokey/smokey.h:258:39: error: unknown type name ‘bool’
258 | int smokey_modprobe(const char *name, bool silent);
| ^~~~
../../include/smokey/smokey.h:27:1: note: ‘bool’ is defined in header ‘<stdbool.h>’; did you forget to ‘#include <stdbool.h>’?

   26 | #include <xenomai/init.h>
  +++ |+#include <stdbool.h>
   27 |

In file included from init.c:33:
../../include/smokey/smokey.h:258:39: error: unknown type name ‘bool’
258 | int smokey_modprobe(const char *name, bool silent);
| ^~~~
../../include/smokey/smokey.h:26:1: note: ‘bool’ is defined in header ‘<stdbool.h>’; did you forget to ‘#include <stdbool.h>’?

   25 | #include <copperplate/clockobj.h>
  +++ |+#include <stdbool.h>
   26 | #include <xenomai/init.h>

helpers.c:299:39: error: unknown type name ‘bool’
299 | int smokey_modprobe(const char *name, bool silent)
| ^~~~
helpers.c:30:1: note: ‘bool’ is defined in header ‘<stdbool.h>’; did you forget to ‘#include <stdbool.h>’?
29 | #include <smokey/smokey.h>
+++ |+#include <stdbool.h>

---
 include/smokey/smokey.h | 1 +
 1 file changed, 1 insertion(+)
include/smokey/smokey.h +0 -0
index cf9701966db8..45dd0dcd017b 100644

include/smokey/smokey.h line 25

Quoted 7 lines
include/smokey/smokey.h +1 -0
@@ -19,6 +19,7 @@
 #define _XENOMAI_SMOKEY_SMOKEY_H
 
 #include <stdarg.h>
+#include <stdbool.h>
 #include <pthread.h>
 #include <boilerplate/list.h>
 #include <boilerplate/libc.h>

Thanks, applied to next, will go into stable-3.2.y later.

Jan

Signature · 2 lines
Siemens AG, Technology
Linux Expert Center