From nobody Tue Apr 12 17:10:40 2022 X-Original-To: dev-commits-src-main@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 2713F11E2982; Tue, 12 Apr 2022 17:10:41 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4KdC0c6zZ7z4l1g; Tue, 12 Apr 2022 17:10:40 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1649783441; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=Gcit2t8WHN17d06ZM7mfEtKVWFIWttzuT9/0e2dtTsA=; b=WWMFdntt3ZgrH6VZi2rM307zJcL4u4baIMXc7Rwjh5T7HwDabw4QphG1SxRkrSQPuIwHXr P58n7SFwl7Il6/aMvhIDUcHHd6I4pnWc06ib+/U4gTUKZ1BCY77iVpeZ6ylLLppUHVaoaH S9Iu6YGSOQ6HdnnGprUmOfHICwB4EmxYZIvDVzSE9G0JEC43yA6B7sl3Q5HpOvgtYeL5Cx G3zVYhrTJcSDT7QDvutEdMybP5TAs204Xg3av5+gm4wK9Snc/PCpNKrxs4ny7IUKaCqkVB sJwiDdcYPcl0ungSvrR644oPCX2REjlOUFd79D/8iqOQUBbY5OjWWYSq8l/v3w== Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 878221B519; Tue, 12 Apr 2022 17:10:40 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.16.1/8.16.1) with ESMTP id 23CHAe8i051789; Tue, 12 Apr 2022 17:10:40 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 23CHAerg051788; Tue, 12 Apr 2022 17:10:40 GMT (envelope-from git) Date: Tue, 12 Apr 2022 17:10:40 GMT Message-Id: <202204121710.23CHAerg051788@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org From: John Baldwin Subject: git: 3d6f4411e45f - main - Remove checks for being included. List-Id: Commit messages for the main branch of the src repository List-Archive: https://lists.freebsd.org/archives/dev-commits-src-main List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-dev-commits-src-main@freebsd.org X-BeenThere: dev-commits-src-main@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: jhb X-Git-Repository: src X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: 3d6f4411e45f49dc0fef6d428615df5107ce2e5d Auto-Submitted: auto-generated ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1649783441; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=Gcit2t8WHN17d06ZM7mfEtKVWFIWttzuT9/0e2dtTsA=; b=sIRBxYrKS9rntRIKJl+a7nq4mqsrisDdw0xoRZs0/ZkLUL5cK2+8kJeelxi7dHLBj/PhTO n9ZvP3B+n0QrNYs44v374ThB0MNoTOTT6omUHYGrXgyikzqvsKUDnYkwc1edhTY7OGMbax Hbr/Q+lyRiHGs29OUsnoeH8QDJEaMspOSbVgHI1m6I9gnMxF1JpeSjNrtfGqAq4CoTyI5w DAP7SEzFlrMRpLHF4oNxSZiD6ZLnkfrPl9VY/lhGuwMHpKw2F272bLnxgTr8HqNfTBRhYm pjsBjYTXNaEH64veqtvBp33OezSZB3g6xSFydwao6Bo9Tcfr+eGfRN4k9gylAQ== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1649783441; a=rsa-sha256; cv=none; b=tR9tD+cHWrbMKIbX7QJNtiIUeSa4DtN0abs3ah97BGHAlCKgkuWZ2Fty40RKBwb9oMVKef SrJVg5440+7lgLUTXeuQQ2/xMM7O94FwJfE2TeNSAg6BYE9KCtc+yNdT8cVChleTym9Wgg 9E36kmiZGAqYHqM19TP5YKvVgS0XcEDIyn3V/Qzrokn5b9UPK4/n9OukVrl797u6a8+sAt orwb537HWQq90YXQyGrPvKQWlnm1V8kGjDGMR5D8VLXt+cloaWDV2yi/r8PiAVl5+8c5SF NCK06m0p1AWDb+Fhr1MsTnsWzpj/5bBkJ8poeuFMjnNcKbZgWOqSWwyYo4+Jkw== ARC-Authentication-Results: i=1; mx1.freebsd.org; none X-ThisMailContainsUnwantedMimeParts: N The branch main has been updated by jhb: URL: https://cgit.FreeBSD.org/src/commit/?id=3d6f4411e45f49dc0fef6d428615df5107ce2e5d commit 3d6f4411e45f49dc0fef6d428615df5107ce2e5d Author: John Baldwin AuthorDate: 2022-04-12 17:06:18 +0000 Commit: John Baldwin CommitDate: 2022-04-12 17:06:18 +0000 Remove checks for being included. These files no longer depend on the macros required when these checks were added. PR: 263102 (exp-run) Reviewed by: brooks, imp, emaste Differential Revision: https://reviews.freebsd.org/D34804 --- sys/amd64/include/atomic.h | 4 ---- sys/amd64/include/cpufunc.h | 4 ---- sys/amd64/include/pcpu.h | 4 ---- sys/arm/include/armreg.h | 4 ---- sys/i386/include/atomic.h | 4 ---- sys/i386/include/cpufunc.h | 4 ---- sys/i386/include/pcpu.h | 4 ---- sys/powerpc/include/atomic.h | 4 ---- sys/riscv/include/profile.h | 4 ---- sys/sys/linker_set.h | 4 ---- sys/x86/include/x86_ieeefp.h | 4 ---- 11 files changed, 44 deletions(-) diff --git a/sys/amd64/include/atomic.h b/sys/amd64/include/atomic.h index 8a7bab8fee2d..159d807f777c 100644 --- a/sys/amd64/include/atomic.h +++ b/sys/amd64/include/atomic.h @@ -30,10 +30,6 @@ #ifndef _MACHINE_ATOMIC_H_ #define _MACHINE_ATOMIC_H_ -#ifndef _SYS_CDEFS_H_ -#error this file needs sys/cdefs.h as a prerequisite -#endif - /* * To express interprocessor (as opposed to processor and device) memory * ordering constraints, use the atomic_*() functions with acquire and release diff --git a/sys/amd64/include/cpufunc.h b/sys/amd64/include/cpufunc.h index d078805d7ced..99d8c82aa111 100644 --- a/sys/amd64/include/cpufunc.h +++ b/sys/amd64/include/cpufunc.h @@ -41,10 +41,6 @@ #ifndef _MACHINE_CPUFUNC_H_ #define _MACHINE_CPUFUNC_H_ -#ifndef _SYS_CDEFS_H_ -#error this file needs sys/cdefs.h as a prerequisite -#endif - struct region_descriptor; #define readb(va) (*(volatile uint8_t *) (va)) diff --git a/sys/amd64/include/pcpu.h b/sys/amd64/include/pcpu.h index fa44b048cbe3..a671f01dbad5 100644 --- a/sys/amd64/include/pcpu.h +++ b/sys/amd64/include/pcpu.h @@ -31,10 +31,6 @@ #ifndef _MACHINE_PCPU_H_ #define _MACHINE_PCPU_H_ -#ifndef _SYS_CDEFS_H_ -#error "sys/cdefs.h is a prerequisite for this file" -#endif - #include #include diff --git a/sys/arm/include/armreg.h b/sys/arm/include/armreg.h index 02fad3a7fd59..44af2642151a 100644 --- a/sys/arm/include/armreg.h +++ b/sys/arm/include/armreg.h @@ -43,10 +43,6 @@ #ifndef MACHINE_ARMREG_H #define MACHINE_ARMREG_H -#ifndef _SYS_CDEFS_H_ -#error Please include sys/cdefs.h before including machine/armreg.h -#endif - #define INSN_SIZE 4 #define INSN_COND_MASK 0xf0000000 /* Condition mask */ #define PSR_MODE 0x0000001f /* mode mask */ diff --git a/sys/i386/include/atomic.h b/sys/i386/include/atomic.h index af6d323e0396..c8fc051bc944 100644 --- a/sys/i386/include/atomic.h +++ b/sys/i386/include/atomic.h @@ -30,10 +30,6 @@ #ifndef _MACHINE_ATOMIC_H_ #define _MACHINE_ATOMIC_H_ -#ifndef _SYS_CDEFS_H_ -#error this file needs sys/cdefs.h as a prerequisite -#endif - #include #ifdef _KERNEL diff --git a/sys/i386/include/cpufunc.h b/sys/i386/include/cpufunc.h index 59eb3cc982b3..cd7ba31bdb22 100644 --- a/sys/i386/include/cpufunc.h +++ b/sys/i386/include/cpufunc.h @@ -40,10 +40,6 @@ #ifndef _MACHINE_CPUFUNC_H_ #define _MACHINE_CPUFUNC_H_ -#ifndef _SYS_CDEFS_H_ -#error this file needs sys/cdefs.h as a prerequisite -#endif - struct region_descriptor; #define readb(va) (*(volatile uint8_t *) (va)) diff --git a/sys/i386/include/pcpu.h b/sys/i386/include/pcpu.h index 8fbcb2032337..3e86c50b7619 100644 --- a/sys/i386/include/pcpu.h +++ b/sys/i386/include/pcpu.h @@ -31,10 +31,6 @@ #ifndef _MACHINE_PCPU_H_ #define _MACHINE_PCPU_H_ -#ifndef _SYS_CDEFS_H_ -#error "sys/cdefs.h is a prerequisite for this file" -#endif - #include #include diff --git a/sys/powerpc/include/atomic.h b/sys/powerpc/include/atomic.h index 43bb239719ae..5b27da8e35ff 100644 --- a/sys/powerpc/include/atomic.h +++ b/sys/powerpc/include/atomic.h @@ -34,10 +34,6 @@ #ifndef _MACHINE_ATOMIC_H_ #define _MACHINE_ATOMIC_H_ -#ifndef _SYS_CDEFS_H_ -#error this file needs sys/cdefs.h as a prerequisite -#endif - #include #ifndef __powerpc64__ diff --git a/sys/riscv/include/profile.h b/sys/riscv/include/profile.h index edfcbd31b73a..049c46b43bb1 100644 --- a/sys/riscv/include/profile.h +++ b/sys/riscv/include/profile.h @@ -34,10 +34,6 @@ #ifndef _MACHINE_PROFILE_H_ #define _MACHINE_PROFILE_H_ -#if !defined(_KERNEL) && !defined(_SYS_CDEFS_H_) -#error this file needs sys/cdefs.h as a prerequisite -#endif - #define FUNCTION_ALIGNMENT 32 typedef u_long fptrdiff_t; diff --git a/sys/sys/linker_set.h b/sys/sys/linker_set.h index 0f495872ce9b..04e031500aac 100644 --- a/sys/sys/linker_set.h +++ b/sys/sys/linker_set.h @@ -32,10 +32,6 @@ #ifndef _SYS_LINKER_SET_H_ #define _SYS_LINKER_SET_H_ -#ifndef _SYS_CDEFS_H_ -#error this file needs sys/cdefs.h as a prerequisite -#endif - /* * The following macros are used to declare global sets of objects, which * are collected by the linker into a `linker_set' as defined below. diff --git a/sys/x86/include/x86_ieeefp.h b/sys/x86/include/x86_ieeefp.h index 1bbcd7f01a96..9160ac7c2c61 100644 --- a/sys/x86/include/x86_ieeefp.h +++ b/sys/x86/include/x86_ieeefp.h @@ -47,10 +47,6 @@ * XXX: {FP,SSE}*FLD and {FP,SSE}*OFF are undocumented pollution. */ -#ifndef _SYS_CDEFS_H_ -#error this file needs sys/cdefs.h as a prerequisite -#endif - /* * Rounding modes. */