aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJohn Baldwin <jhb@FreeBSD.org>2022-04-12 17:05:39 +0000
committerJohn Baldwin <jhb@FreeBSD.org>2022-05-13 20:12:26 +0000
commit848513a77f2723ddf32510de0f1a212fb9d211d6 (patch)
tree375b9f5d3112c3715d59de32e9ba89e7b7e924a8
parent3e9d135a785d3817f04cdac6fe58937be5df0349 (diff)
downloadsrc-848513a77f2723ddf32510de0f1a212fb9d211d6.tar.gz
src-848513a77f2723ddf32510de0f1a212fb9d211d6.zip
x86: Remove silly checks for <sys/cdefs.h>.
These headers #include <sys/cdefs.h> right after checking if it has already been #included. The nested #include already existed when the check for _SYS_CDEFS_H_ was added, so the check shouldn't have been added in the first place. PR: 263102 (exp-run) Reported by: brooks Reviewed by: brooks, imp, emaste Differential Revision: https://reviews.freebsd.org/D34796 (cherry picked from commit 1c1bf5bd7c1e479a7889839b941f53e689aa2569)
-rw-r--r--sys/amd64/include/in_cksum.h4
-rw-r--r--sys/i386/include/in_cksum.h4
2 files changed, 0 insertions, 8 deletions
diff --git a/sys/amd64/include/in_cksum.h b/sys/amd64/include/in_cksum.h
index 89ff1097f369..7407b4ad7104 100644
--- a/sys/amd64/include/in_cksum.h
+++ b/sys/amd64/include/in_cksum.h
@@ -37,10 +37,6 @@
#ifndef _MACHINE_IN_CKSUM_H_
#define _MACHINE_IN_CKSUM_H_ 1
-#ifndef _SYS_CDEFS_H_
-#error this file needs sys/cdefs.h as a prerequisite
-#endif
-
#include <sys/cdefs.h>
#define in_cksum(m, len) in_cksum_skip(m, len, 0)
diff --git a/sys/i386/include/in_cksum.h b/sys/i386/include/in_cksum.h
index 4f116b8b655c..84e369cf3c81 100644
--- a/sys/i386/include/in_cksum.h
+++ b/sys/i386/include/in_cksum.h
@@ -37,10 +37,6 @@
#ifndef _MACHINE_IN_CKSUM_H_
#define _MACHINE_IN_CKSUM_H_ 1
-#ifndef _SYS_CDEFS_H_
-#error this file needs sys/cdefs.h as a prerequisite
-#endif
-
#include <sys/cdefs.h>
#define in_cksum(m, len) in_cksum_skip(m, len, 0)