mirror of
https://github.com/opnsense/src.git
synced 2026-06-08 16:22:46 -04:00
linuxkpi: Document why <linux/cpufeaure.h> has an include commentted out
<linux/cpufeature.h> on Linux includes <linux/init.h>. We don't have the latter on FreeBSD yet, so let's comment this include for now. It is still referenced because sometimes, consumers of headers rely voluntarily or not on the namespace pollution. Reported by: jrtc27 Approved by: jrtc27 Sponsored by: The FreeBSD Foundation Differential Revision: https://reviews.freebsd.org/D49448
This commit is contained in:
parent
6f6c07813b
commit
c8c32d3e33
1 changed files with 7 additions and 1 deletions
|
|
@ -30,7 +30,13 @@
|
|||
#ifndef _LINUXKPI_LINUX_CPUFEATURE_H_
|
||||
#define _LINUXKPI_LINUX_CPUFEATURE_H_
|
||||
|
||||
// #include <linux/init.h>
|
||||
/*
|
||||
* Linux includes the following header. We don't have it on FreeBSD yet, so
|
||||
* let's comment this include for now. It is still referenced here because
|
||||
* sometimes, consumers of headers rely voluntarily or not on the namespace
|
||||
* pollution.
|
||||
*/
|
||||
/* #include <linux/init.h> */
|
||||
#include <linux/mod_devicetable.h>
|
||||
#include <asm/cpufeature.h>
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue