diff options
author | Sebastian Huber <sebastian.huber@embedded-brains.de> | 2022-05-18 09:49:38 +0200 |
---|---|---|
committer | Sebastian Huber <sebastian.huber@embedded-brains.de> | 2022-05-18 10:01:29 +0200 |
commit | 81962136cc2d336e014f9c53ae21540fe390bde5 (patch) | |
tree | 32d70d3c5871a2875203ea038bc0722116f80e1e /cpukit | |
parent | Synchronize all file descriptors in sync() (diff) | |
download | rtems-81962136cc2d336e014f9c53ae21540fe390bde5.tar.bz2 |
Add include guard checks to kernel space headers
Diffstat (limited to 'cpukit')
-rw-r--r-- | cpukit/include/machine/_kernel_cpuset.h | 4 | ||||
-rw-r--r-- | cpukit/include/machine/_kernel_param.h | 4 |
2 files changed, 8 insertions, 0 deletions
diff --git a/cpukit/include/machine/_kernel_cpuset.h b/cpukit/include/machine/_kernel_cpuset.h index 22a245e037..bad1d378d4 100644 --- a/cpukit/include/machine/_kernel_cpuset.h +++ b/cpukit/include/machine/_kernel_cpuset.h @@ -30,3 +30,7 @@ * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE * POSSIBILITY OF SUCH DAMAGE. */ + +#if !defined(_SYS_CPUSET_H_) || !defined(_KERNEL) +#error "must be included via <sys/cpuset.h> in kernel space" +#endif diff --git a/cpukit/include/machine/_kernel_param.h b/cpukit/include/machine/_kernel_param.h index dcdd49d467..af17cbc095 100644 --- a/cpukit/include/machine/_kernel_param.h +++ b/cpukit/include/machine/_kernel_param.h @@ -36,6 +36,10 @@ #include <sys/time.h> #include <sys/priority.h> +#if !defined(_SYS_PARAM_H_) || !defined(_KERNEL) +#error "must be included via <sys/param.h> in kernel space" +#endif + #ifndef FALSE #define FALSE 0 #endif |