Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 12 Apr 2022 17:10:30 GMT
From:      John Baldwin <jhb@FreeBSD.org>
To:        src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org
Subject:   git: 17554af4e853 - main - ce,cp: Remove pointless checks for <sys/cdefs.h>
Message-ID:  <202204121710.23CHAUYI051557@gitrepo.freebsd.org>

next in thread | raw e-mail | index | archive | help
The branch main has been updated by jhb:

URL: https://cgit.FreeBSD.org/src/commit/?id=17554af4e8531f443fce1a58ab6d4b45d82af5f2

commit 17554af4e8531f443fce1a58ab6d4b45d82af5f2
Author:     John Baldwin <jhb@FreeBSD.org>
AuthorDate: 2022-04-12 17:05:34 +0000
Commit:     John Baldwin <jhb@FreeBSD.org>
CommitDate: 2022-04-12 17:05:34 +0000

    ce,cp: Remove pointless checks for <sys/cdefs.h>
    
    Both of these headers check for _SYS_CDEFS_H_ after including
    <sys/param.h> which itself includes <sys/cdefs.h>.
    
    PR:             263102 (exp-run)
    Reviewed by:    brooks, imp, emaste
    Differential Revision:  https://reviews.freebsd.org/D34795
---
 sys/dev/ce/machdep.h | 4 ----
 sys/dev/cp/machdep.h | 4 ----
 2 files changed, 8 deletions(-)

diff --git a/sys/dev/ce/machdep.h b/sys/dev/ce/machdep.h
index 393377d0b406..f715122ae490 100644
--- a/sys/dev/ce/machdep.h
+++ b/sys/dev/ce/machdep.h
@@ -74,10 +74,6 @@
 #   include <sys/libkern.h>
 #   include <sys/systm.h>
 #   define port_t int
-
-#ifndef _SYS_CDEFS_H_
-#error this file needs sys/cdefs.h as a prerequisite
-#endif
 #endif
 
 #endif
diff --git a/sys/dev/cp/machdep.h b/sys/dev/cp/machdep.h
index 393377d0b406..f715122ae490 100644
--- a/sys/dev/cp/machdep.h
+++ b/sys/dev/cp/machdep.h
@@ -74,10 +74,6 @@
 #   include <sys/libkern.h>
 #   include <sys/systm.h>
 #   define port_t int
-
-#ifndef _SYS_CDEFS_H_
-#error this file needs sys/cdefs.h as a prerequisite
-#endif
 #endif
 
 #endif



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202204121710.23CHAUYI051557>