From nobody Tue Apr 12 17:10:33 2022 X-Original-To: dev-commits-src-all@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 7840C11E1EEF; Tue, 12 Apr 2022 17:10:34 +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 4KdC0T6sBpz4l3V; Tue, 12 Apr 2022 17:10:33 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1649783434; 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=bxPYBiE+ixeCCE2W7sNWoGZ0LnTjPqTd8zOOH+XY25Y=; b=YxoFKnsaZyM/VdePk7HABWQfktvVE37CmaS4Hapfcr8YKpUK5q8d9n/28uKxfT5Sk8dk0f 61xtchnKrD1eyn5X6m9xWj5hE3pOdsKk4xT1VUgmqKOnrFVnlH+5ENzMq7D2MhX50MoKK9 hfBWDLCZPmap6zEHPi1ArWJKRZWXOq9g2kpKIfgm0tWL3sz5nX3NRm2boGER/FZRWGQrGJ 1vvXR9kcpQqc6x0a/iRIzr0EH79b80cJSLMmfDxNxgAR71d2SYzTwUXg6g0ptMV69N/7oO Ctk6TH/e+f83o2niP9mvKMr9Cn8NckTj/BeK2mDf8c7oIDWW8N/bh3jAVky9/g== 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 B86971B663; Tue, 12 Apr 2022 17:10:33 +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 23CHAXVm051637; Tue, 12 Apr 2022 17:10:33 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 23CHAXK6051636; Tue, 12 Apr 2022 17:10:33 GMT (envelope-from git) Date: Tue, 12 Apr 2022 17:10:33 GMT Message-Id: <202204121710.23CHAXK6051636@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: 5ab33279ad2a - main - Remove checks for __GNUCLIKE___TYPEOF assuming it is always true. List-Id: Commit messages for all branches of the src repository List-Archive: https://lists.freebsd.org/archives/dev-commits-src-all List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-dev-commits-src-all@freebsd.org X-BeenThere: dev-commits-src-all@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: 5ab33279ad2a5283fb11f8411b53093dfc1c41c6 Auto-Submitted: auto-generated ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1649783434; 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=bxPYBiE+ixeCCE2W7sNWoGZ0LnTjPqTd8zOOH+XY25Y=; b=kXHNP5e/CVNc6i3vfKV31A20unFEJVGHP54z7HoV/rJSw3j493mBVoMgQ0uKX0/pJGdLAp kH6ZjDegdK5X5b+6qsrFpZetIQ3LeYbC/ne03eUu+rXJFypWcYbw/dd2JVoR2cUNH3wCN1 xnjJD2OCUi80WNTI/iHFiG+nLgNgUaocIq1pH0C50NYHx0EWT1IFScjdGSySXhjAMHP7cH xRPsAtqR1DRGRt38Vg0z8uyYML6TB1VWEc52mw4GZLoLvzFaSNQWhup3PtF+R+Z4y7I0Xt Zu5UVmbiMwspgRER0joOSP9843Ij51aRELp3S3wRpeiuDppv36Zxwnysqc5TgQ== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1649783434; a=rsa-sha256; cv=none; b=enLUc2VZo2205iSgaRorJkqaPi1DV459jGP7WwbGOn221AVuLAaqMSs2qrGQ6vkwBttGgG 58fn/pjswNri8NjRzwOt4ioUFXm7ovaLQFMvAM/6dhc7wS7iRySigv915YjascXQxGHzqI Dreg1Z237NNZwYSPHEl4DTJeeBUQQb8iO5nKSQZha1GSMGKPih6WYC9atAPXghdfv+aV1C dim7fjTnAwK3V+fg4xHzy/NZKvou+CcilAykseGu/0ua7T5Kb2AIAk0E+R5y/p/IdFJR46 nxL0iDt4fxGzkrWb4izmCE3HTpuQmc82u8xLQVegE87FhSMER6wVH9lBsTMx1w== 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=5ab33279ad2a5283fb11f8411b53093dfc1c41c6 commit 5ab33279ad2a5283fb11f8411b53093dfc1c41c6 Author: John Baldwin AuthorDate: 2022-04-12 17:05:50 +0000 Commit: John Baldwin CommitDate: 2022-04-12 17:05:50 +0000 Remove checks for __GNUCLIKE___TYPEOF assuming it is always true. All supported compilers (modern versions of GCC and clang) support this. PR: 263102 (exp-run) Reviewed by: brooks, imp, emaste Differential Revision: https://reviews.freebsd.org/D34798 --- sys/amd64/include/pcpu.h | 8 -------- sys/i386/include/pcpu.h | 8 -------- 2 files changed, 16 deletions(-) diff --git a/sys/amd64/include/pcpu.h b/sys/amd64/include/pcpu.h index ad2b6216ed47..fa44b048cbe3 100644 --- a/sys/amd64/include/pcpu.h +++ b/sys/amd64/include/pcpu.h @@ -109,8 +109,6 @@ _Static_assert(sizeof(struct monitorbuf) == 128, "2x cache line"); #define MONITOR_STOPSTATE_RUNNING 0 #define MONITOR_STOPSTATE_STOPPED 1 -#if defined(__GNUCLIKE___TYPEOF) - /* * Evaluates to the byte offset of the per-cpu variable name. */ @@ -277,12 +275,6 @@ _Static_assert(sizeof(struct monitorbuf) == 128, "2x cache line"); } \ } while (0); -#else /* !__GNUCLIKE___TYPEOF */ - -#error "this file needs to be ported to your compiler" - -#endif /* __GNUCLIKE___TYPEOF */ - #endif /* _KERNEL */ #endif /* !_MACHINE_PCPU_H_ */ diff --git a/sys/i386/include/pcpu.h b/sys/i386/include/pcpu.h index c4099f04ded1..8fbcb2032337 100644 --- a/sys/i386/include/pcpu.h +++ b/sys/i386/include/pcpu.h @@ -99,8 +99,6 @@ _Static_assert(sizeof(struct monitorbuf) == 128, "2x cache line"); #define MONITOR_STOPSTATE_RUNNING 0 #define MONITOR_STOPSTATE_STOPPED 1 -#if defined(__GNUCLIKE___TYPEOF) - /* * Evaluates to the byte offset of the per-cpu variable name. */ @@ -206,12 +204,6 @@ _Static_assert(sizeof(struct monitorbuf) == 128, "2x cache line"); #define IS_BSP() (PCPU_GET(cpuid) == 0) -#else /* defined(__GNUCLIKE___TYPEOF) */ - -#error "this file needs to be ported to your compiler" - -#endif /* __GNUCLIKE___TYPEOF */ - #endif /* _KERNEL */ #endif /* !_MACHINE_PCPU_H_ */