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:
Jean-Sébastien Pédron 2025-03-21 19:33:52 +01:00
parent 6f6c07813b
commit c8c32d3e33
No known key found for this signature in database
GPG key ID: 39E99761A5FD94CC

View file

@ -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>