Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 19 Nov 2021 00:02:17 GMT
From:      "Bjoern A. Zeeb" <bz@FreeBSD.org>
To:        src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-branches@FreeBSD.org
Subject:   git: e41baaefc46a - stable/13 - LinuxKPI: dmi.h do not rely on implicit includes
Message-ID:  <202111190002.1AJ02HbH072030@gitrepo.freebsd.org>

next in thread | raw e-mail | index | archive | help
The branch stable/13 has been updated by bz:

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

commit e41baaefc46a88becda14236b66bcba34b366b75
Author:     Bjoern A. Zeeb <bz@FreeBSD.org>
AuthorDate: 2021-07-28 13:28:48 +0000
Commit:     Bjoern A. Zeeb <bz@FreeBSD.org>
CommitDate: 2021-11-19 00:01:22 +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.
    
    (cherry picked from commit ac134e762e6908dcadd0c7cb7bcb3de0ed967f59)
---
 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 *);



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202111190002.1AJ02HbH072030>