Skip to contentSkip to conversation

acpi: include missing header in <acpi.h>

PATCH Applied Ahmad Fatoum 2 participants 2 messages Feb 3, 2020 – Feb 10, 2020

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 acpi: include missing header in <acpi.h>

acpi_sigcmp defined in the header uses memcmp, but no included headers pull in memcmp, which can lead to compile errors in new code, depending on include order. Fix this.

---
 include/acpi.h | 1 +
 1 file changed, 1 insertion(+)
include/acpi.h +1 -0
index 2d5fd3086a89..b8e73b35df99 100644
@@ -6,6 +6,7 @@
 #ifndef __ACPI_H_
 #define __ACPI_H_
 
+#include <linux/string.h>
 #include <linux/types.h>
 #include <driver.h>
 
Signature · 7 lines
2.20.1


_______________________________________________
barebox mailing list
[email protected]
http://lists.infradead.org/mailman/listinfo/barebox
Applied
#1 lore raw
Quoted 9 lines · Ahmad Fatoum

acpi_sigcmp defined in the header uses memcmp, but no included headers pull in memcmp, which can lead to compile errors in new code, depending on include order. Fix this.

---
 include/acpi.h | 1 +
 1 file changed, 1 insertion(+)

Applied, thanks

Sascha

Signature · 9 lines
Pengutronix e.K.                           |                             |
Steuerwalder Str. 21                       | http://www.pengutronix.de/  |
31137 Hildesheim, Germany                  | Phone: +49-5121-206917-0    |
Amtsgericht Hildesheim, HRA 2686           | Fax:   +49-5121-206917-5555 |

_______________________________________________
barebox mailing list
[email protected]
http://lists.infradead.org/mailman/listinfo/barebox