From nobody Thu Jan 16 18:08:33 2025 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 4YYrTF4Y7xz5kl3J; Thu, 16 Jan 2025 18:08:33 +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 "R11" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4YYrTF3WpWz3S5r; Thu, 16 Jan 2025 18:08:33 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1737050913; 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=jsb3K+XQsONdWvQFpjRRznt6puK0MkU3b2ca8YduInU=; b=x3+0M2hy5Z1yhd1pQjZZSQ9nB1NSe1O+6hwYkjyfdtbAdRGBzDfUMovyTym9YyJ77DL7UT CYKHl74taSYrPt26OD+WKcdgFpL1D119A30JzZzAe+gmkYaliDvJZ9eQldYf8A4NzriyR7 i+HsmeJ9QtmU+1zixo/TWUozrgjGvOUoZ7ivzi+46IJAtXinEJd+jAtDOiuayKbNZJd2HP xhdL46XymkwX+T0v2/D6hqg5MyEJRrENYQzSIrPjCWouZKeGdBrOSQeeO3YFomv4s3xf8z x+gz0OJrhnRxv58/5WRMo5HXb1isVJVm86rqZSFSHVKO9rNp6eBPKp5leNf0ww== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1737050913; 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=jsb3K+XQsONdWvQFpjRRznt6puK0MkU3b2ca8YduInU=; b=yglYb3fM2tFnJNhaMfhFjDGKaEhWHp3HqU3K8+G0iugK61CPTNiPDtxmSNb+ytpB6BGcnl Wv9DKsm9sVF/NTiiex/HY3N0WbWK9Q+zkSIW6osKqIVFeVXHZLkklTq7VphfwOgr4TcwkP whgE7MeGYVTiECv+HqgB4Qc8Wc/yKVhY5jb3vLry/19njx5Cy28I6gq6w2G63ugc+Anf8I T0ed8mHjxb5x6FgdMqvO7pOEiiJMaXSh3jSPgsfL6srbI4757nW2q/iRRQyC2qN6S6pX4s U3ME4D5P4pyaOdZK/U9rXo3FVskj/0B+xpTwYWg7vkqVNqeYPCsJrbBay3+dtQ== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1737050913; a=rsa-sha256; cv=none; b=xFzYiGcsWNwUb0lO4zcHKUzGqz19f/KPgFjtOmGE/oqmc6k94INUsv2LKT/InjOud5aTEE xcbc4gIKODul79h0/9mewOcjUfH57tfNlHjMSx6Rpn8ZQbgG8jrP+1wOGWHh+irI19yS0b 3PIQFYrtPOr9K+E+G7fNdVYLka2KAYeFD/bL/PiZobe5EwHPyoH1yFRUGTOp/8Ohfm9ZuG m9jD0DGKb/E/w2J2vzsfiZMIh8kbk/Dnh49LA02u/0uWn6FYjZBmWpgeqv6MSU6LqvlAOm 7BH8f+17wZ5XNW+8VFc6/b/J5KVL+a6Ma8UqCv9A/i5ARlv5CY9ksSPphJiVGw== ARC-Authentication-Results: i=1; mx1.freebsd.org; none 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 4YYrTF2TJkzk17; Thu, 16 Jan 2025 18:08:33 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.18.1/8.18.1) with ESMTP id 50GI8XQm092626; Thu, 16 Jan 2025 18:08:33 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.18.1/8.18.1/Submit) id 50GI8XBA092623; Thu, 16 Jan 2025 18:08:33 GMT (envelope-from git) Date: Thu, 16 Jan 2025 18:08:33 GMT Message-Id: <202501161808.50GI8XBA092623@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-branches@FreeBSD.org From: Olivier Certner Subject: git: 24e4f0365709 - stable/14 - x86 atomics: Remove unused WANT_FUNCTIONS 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: X-BeenThere: dev-commits-src-all@freebsd.org Sender: owner-dev-commits-src-all@FreeBSD.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: olce X-Git-Repository: src X-Git-Refname: refs/heads/stable/14 X-Git-Reftype: branch X-Git-Commit: 24e4f0365709b473029f7aa85514939a0d87df77 Auto-Submitted: auto-generated The branch stable/14 has been updated by olce: URL: https://cgit.FreeBSD.org/src/commit/?id=24e4f0365709b473029f7aa85514939a0d87df77 commit 24e4f0365709b473029f7aa85514939a0d87df77 Author: Olivier Certner AuthorDate: 2024-12-09 16:13:09 +0000 Commit: Olivier Certner CommitDate: 2025-01-16 18:07:00 +0000 x86 atomics: Remove unused WANT_FUNCTIONS This macro has not been in use since commit "inline atomics and allow tied modules to inline locks" (r335873, f4b3640475cec929). Reviewed by: markj, kib, emaste, imp MFC after: 5 days Sponsored by: The FreeBSD Foundation Differential Revision: https://reviews.freebsd.org/D48061 (cherry picked from commit fa368cc86cebe7185b3a99d4f6083033da377eee) --- sys/amd64/include/atomic.h | 3 --- sys/i386/include/atomic.h | 15 --------------- 2 files changed, 18 deletions(-) diff --git a/sys/amd64/include/atomic.h b/sys/amd64/include/atomic.h index 91a4398a0815..93301459fd77 100644 --- a/sys/amd64/include/atomic.h +++ b/sys/amd64/include/atomic.h @@ -385,7 +385,6 @@ ATOMIC_LOADSTORE(long); #undef ATOMIC_LOAD #undef ATOMIC_STORE #undef ATOMIC_LOADSTORE -#ifndef WANT_FUNCTIONS /* Read the current value and store a new value in the destination. */ static __inline u_int @@ -592,8 +591,6 @@ atomic_swap_long(volatile u_long *p, u_long v) #define atomic_testandset_ptr atomic_testandset_long #define atomic_testandclear_ptr atomic_testandclear_long -#endif /* !WANT_FUNCTIONS */ - #endif /* !SAN_NEEDS_INTERCEPTORS || SAN_RUNTIME */ #endif /* !_MACHINE_ATOMIC_H_ */ diff --git a/sys/i386/include/atomic.h b/sys/i386/include/atomic.h index e68af0454130..f210b501d333 100644 --- a/sys/i386/include/atomic.h +++ b/sys/i386/include/atomic.h @@ -299,17 +299,6 @@ atomic_thread_fence_seq_cst(void) #ifdef _KERNEL -#ifdef WANT_FUNCTIONS -int atomic_cmpset_64_i386(volatile uint64_t *, uint64_t, uint64_t); -int atomic_cmpset_64_i586(volatile uint64_t *, uint64_t, uint64_t); -uint64_t atomic_load_acq_64_i386(const volatile uint64_t *); -uint64_t atomic_load_acq_64_i586(const volatile uint64_t *); -void atomic_store_rel_64_i386(volatile uint64_t *, uint64_t); -void atomic_store_rel_64_i586(volatile uint64_t *, uint64_t); -uint64_t atomic_swap_64_i386(volatile uint64_t *, uint64_t); -uint64_t atomic_swap_64_i586(volatile uint64_t *, uint64_t); -#endif - /* I486 does not support SMP or CMPXCHG8B. */ static __inline int atomic_cmpset_64_i386(volatile uint64_t *dst, uint64_t expect, uint64_t src) @@ -618,8 +607,6 @@ ATOMIC_LOADSTORE(long); #undef ATOMIC_STORE #undef ATOMIC_LOADSTORE -#ifndef WANT_FUNCTIONS - static __inline int atomic_cmpset_long(volatile u_long *dst, u_long expect, u_long src) { @@ -874,8 +861,6 @@ atomic_swap_long(volatile u_long *p, u_long v) #define atomic_testandset_ptr(p, val) \ atomic_testandset_int((volatile u_int *)(p), (val)) -#endif /* !WANT_FUNCTIONS */ - #if defined(_KERNEL) #define mb() __mbk() #define wmb() __mbk()