git: 848513a77f27 - stable/13 - x86: Remove silly checks for <sys/cdefs.h>.

From: John Baldwin <jhb_at_FreeBSD.org>
Date: Fri, 13 May 2022 22:54:49 UTC
The branch stable/13 has been updated by jhb:

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

commit 848513a77f2723ddf32510de0f1a212fb9d211d6
Author:     John Baldwin <jhb@FreeBSD.org>
AuthorDate: 2022-04-12 17:05:39 +0000
Commit:     John Baldwin <jhb@FreeBSD.org>
CommitDate: 2022-05-13 20:12:26 +0000

    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)
---
 sys/amd64/include/in_cksum.h | 4 ----
 sys/i386/include/in_cksum.h  | 4 ----
 2 files changed, 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)