From nobody Mon Dec 29 23:29:57 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 4dgC9x4llDz6MVG9 for ; Mon, 29 Dec 2025 23:29:57 +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 "R13" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4dgC9x4Bz0z43p4 for ; Mon, 29 Dec 2025 23:29:57 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1767050997; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=XeMUX04ns1u0QIxs/vyO61tI6DyyOhNjmNTcus/9b4c=; b=g5ldUDf0hqAb4hm/L3yz/s1stsQvO0qDavP3Xx51Wf7ID3c7PL6vq4NCTc0ZOVsz7wp1L1 +p5yAmUqY1Gf6jkNtBTh2qgw85QeduLjMHnMBkjfKDdz07bNLUwzxYZCaHiyg2rY3zFWGt D6HVwZ5IkQiXRNidPo5auhVhKrXMRfwBTqrb0py5qTPNYg5WlM3bR0ur35yAXcC/bcqKYU ChK9HoicUTcNG+/V82ncUZ97aOQyOsuZy3o2znZ9KyFKOiFigjzgOHmo3FlUxjl4ZMzI9U gC1iZ035jY6iR8HmVebPY93HDmurmf9FeG+cp4MLZZjWBdLZYybWYu3FKCL6WQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1767050997; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=XeMUX04ns1u0QIxs/vyO61tI6DyyOhNjmNTcus/9b4c=; b=Ko7darpKWXcXXHOhV49o7lmqN1Kg1HbXs2upEV1o6mNWALyUS9uI4FpvsL2Kk9VsoWFTNZ c+wF84dlXrgOlY+iCJAw2Ea56kAhoGIDQhH4aFFhniX6WSSQz3vJQY79MbSmigzsu0pnW+ /tUl+D2nbNgpS3sfAJSj0Nyxec4GUBa3nl9KdIOn9Fx2Qhn4XGIVid8oKm2RHUP+Hrp2/A SsusaRIOk/aSynxa8ARP4IU/fNG6ecOevGadqVOR8zaV+H+ieQ4p9m8SjTykiICilyRUVZ 7lZ8P8M81Vhq7gtf0BukYhey+6ZdAhV9nrnFZqwwB9yIpAtR7O6/U25Xo+Br6Q== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1767050997; a=rsa-sha256; cv=none; b=cFaFFICN83fprRMMp86MvizvvXzqxar5CapReh1tlD5JNtUihxbVghU+hqChxrnFbRZdee RISiEp5VWnZLxuqk5P6jWr9fB3CKDpeUPGkXYZimK+cwTHqd5fbIaOp7LUFPiBeaH96kC5 gSmRa4lRnmOSYuLJ60jXBu/xpjC68bpAj0EzSGGA3ZPQcX23gaVB3wZqDMo69SIvtaHahL KX/UhI1saXyYng9DsxlG98wrt+huaz+3MzPL4r3pK/niMSeeynn0WsZ+DZOqDh2qFUn0R2 to/hGBYCSvoJGVBZQRWGKByMT88Vrgzpg79az+7k7rlgOa4HooIGzctDcoQxZQ== ARC-Authentication-Results: i=1; mx1.freebsd.org; none Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) by mxrelay.nyi.freebsd.org (Postfix) with ESMTP id 4dgC9x3K8zzc6r for ; Mon, 29 Dec 2025 23:29:57 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from git (uid 1279) (envelope-from git@FreeBSD.org) id 24687 by gitrepo.freebsd.org (DragonFly Mail Agent v0.13+ on gitrepo.freebsd.org); Mon, 29 Dec 2025 23:29:57 +0000 To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-branches@FreeBSD.org Cc: Warner Losh From: Dimitry Andric Subject: git: 4ff445d3723a - stable/14 - cdefs: Add __deprecated 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: dim X-Git-Repository: src X-Git-Refname: refs/heads/stable/14 X-Git-Reftype: branch X-Git-Commit: 4ff445d3723a58ef8a5d34e4e33c4f40d217e1ab Auto-Submitted: auto-generated Date: Mon, 29 Dec 2025 23:29:57 +0000 Message-Id: <69530ef5.24687.1b039e31@gitrepo.freebsd.org> The branch stable/14 has been updated by dim: URL: https://cgit.FreeBSD.org/src/commit/?id=4ff445d3723a58ef8a5d34e4e33c4f40d217e1ab commit 4ff445d3723a58ef8a5d34e4e33c4f40d217e1ab Author: Warner Losh AuthorDate: 2024-10-15 19:49:53 +0000 Commit: Dimitry Andric CommitDate: 2025-12-29 21:48:19 +0000 cdefs: Add __deprecated Add __deprecated decorator. This is for a deprecated interface. copystr is tagged with this today in copy(9), but don't actually provide it or use it. copystr is a #define so adding it will have to wait. LinuxKPI was defining this away completely in compiler.h. Since this is shared between Linux KPI consumers and OpenZFS, if it's already defined, use the FreeBSD sys/cdefs.h version, otherwise define it away. For OpenZFS this will retain it, while for Linux KPI it will tend to drop it (I think always, but I didn't look at everything). Sponsored by: Netflix Reviewed by: jhb, emaste Differential Revision: https://reviews.freebsd.org/D46137 (cherry picked from commit 16672453f12586703f1c51d909bd1900691bf884) --- sys/compat/linuxkpi/common/include/linux/compiler.h | 2 ++ sys/sys/cdefs.h | 1 + 2 files changed, 3 insertions(+) diff --git a/sys/compat/linuxkpi/common/include/linux/compiler.h b/sys/compat/linuxkpi/common/include/linux/compiler.h index c82b9acd53fb..fb5ad3bf4fe4 100644 --- a/sys/compat/linuxkpi/common/include/linux/compiler.h +++ b/sys/compat/linuxkpi/common/include/linux/compiler.h @@ -48,7 +48,9 @@ #define __cond_lock(x,c) (c) #define __bitwise #define __devinitdata +#ifndef __deprecated #define __deprecated +#endif #define __init #define __initconst #define __devinit diff --git a/sys/sys/cdefs.h b/sys/sys/cdefs.h index ed759029a53f..fc0a6c2f294c 100644 --- a/sys/sys/cdefs.h +++ b/sys/sys/cdefs.h @@ -214,6 +214,7 @@ #define __pure2 __attribute__((__const__)) #define __unused __attribute__((__unused__)) #define __used __attribute__((__used__)) +#define __deprecated __attribute__((__deprecated__)) #define __packed __attribute__((__packed__)) #define __aligned(x) __attribute__((__aligned__(x))) #define __section(x) __attribute__((__section__(x)))