git: ac134e762e69 - main - LinuxKPI: dmi.h do not rely on implicit includes

Bjoern A. Zeeb bz at FreeBSD.org
Wed Jul 28 13:34:16 UTC 2021


The branch main has been updated by bz:

URL: https://cgit.FreeBSD.org/src/commit/?id=ac134e762e6908dcadd0c7cb7bcb3de0ed967f59

commit ac134e762e6908dcadd0c7cb7bcb3de0ed967f59
Author:     Bjoern A. Zeeb <bz at FreeBSD.org>
AuthorDate: 2021-07-28 13:28:48 +0000
Commit:     Bjoern A. Zeeb <bz at FreeBSD.org>
CommitDate: 2021-07-28 13:28:48 +0000

    LinuxKPI: dmi.h do not rely on implicit includes
    
    Add sys/types.h to dmi.h and do not rely on other files to include
    all needed headers in Linux land.  I ran into compile problems with
    rtw88 otherwise.
    
    MFC after:      3 days
---
 sys/compat/linuxkpi/common/include/linux/dmi.h | 1 +
 1 file changed, 1 insertion(+)

diff --git a/sys/compat/linuxkpi/common/include/linux/dmi.h b/sys/compat/linuxkpi/common/include/linux/dmi.h
index b921cc906917..6e450e156b73 100644
--- a/sys/compat/linuxkpi/common/include/linux/dmi.h
+++ b/sys/compat/linuxkpi/common/include/linux/dmi.h
@@ -31,6 +31,7 @@
 #ifndef __LINUX_DMI_H__
 #define	__LINUX_DMI_H__
 
+#include <sys/types.h>
 #include <linux/mod_devicetable.h>
 
 int linux_dmi_check_system(const struct dmi_system_id *);


More information about the dev-commits-src-main mailing list