From nobody Tue Sep 22 15:48:52 2026 X-Original-To: dev-commits-src-branches@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 4hq4Jh48Swz6sPFN for ; Tue, 22 Sep 2026 15:48:52 +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 "YR2" (not verified)) by mx1.freebsd.org (Postfix) with ESMTPS id 4hq4Jh1xtHz50kq for ; Tue, 22 Sep 2026 15:48:52 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1790092132; 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=sYFRY67fXA6GzB3cJPzpNwIYGEOsxe21lrKhupEahMQ=; b=FwhIcXxkbElPllgnmqXAtNNa+ZVJvNwGEFlKthvY2KkTrpxljxTOResljQg6vtiIb+rxdx IbBQjZgbJd+f60On58127Y2qlAAGLzN5aBd5J3/eZ9p4z6lZwUmU+vyhD45IAib2t4BPgi AIkDCDxYh+6INOsHj99yuaiv6lxE7GEni/B16Pio/KrjWV64C7FkfibQhLs0GPU0TH7ema 2nW89f8l4Dk+gD1EjqGPSMnz0USFDvmyf8L3Q0UzhrumgiV3cB/CLzCqifCu3R1fZZJIcK K2uMuj/ffDeScM27ROoivGYM7MaCgw7EVtFQ8W902e2tLD+V5MAmlcbWnc3a1w== ARC-Seal: i=1; a=rsa-sha256; d=freebsd.org; s=dkim; cv=none; t=1790092132; b=yliMlWjpex8tufLRm+bbn+25zwaGIBfd9q4OxP7iitrX8qWdpqphDaIebVkI2Nu26aUsHS MPBN+NzLTsU0eD5u/UbmTUBJu4UKYVfcDScH2c0lEUEuU+qH1zGSv3BeEy6oGRwWNu/BYK FZUKW+6iu7w4s925eJLJ8OhJpG3s4HVM0UlvJWz+dHoW3fB2P6oPoqUPuhkR3nxR/ZHxiH kQrvUqURdcdvm4TNggq+HoQ29jDqO8kbZPlSHRTF1chx9NxgER8I2hBjoQR0W1wPEXTrPF C1kWZvwrPS8htdl1/uQvhQkMW7ZqN7OFXFGF72MfLZMq4DHKVIwh2uKCA/uvFg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1790092132; 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=sYFRY67fXA6GzB3cJPzpNwIYGEOsxe21lrKhupEahMQ=; b=EG7biWLkb0yz1oFfsLH1e+dY10px/Z7OUQ7f1daWgl7ods1lX0809ow+OMcOvqeofmF30B AmDrIKZhAmZItWA/smMimbUoClckkaDdyHP2LkGxBiZJfbML15Ob8imQ5FLDwug7tnt21W adqcdAFg9IVykEun/weTPuUU0e8sbTPQH7D9U6azO8rFOtYsRkEfxfSrdstoRxeF1Wpttw kdHchwoO2cS+ZRG9WEL9iSiR0hsJ2RNghBaq/cxmmtP4hFTpbQsNbck8kNnF61G2141dXc RyjgGu9of7lWRX1r0LalqvxEGPJFBOxBA2Vz9Y8t9bAbpZ2LHimdGYAs2iTbCA== 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 4hq4Jh0fwSz1C8Z for ; Tue, 22 Sep 2026 15:48:52 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from git (uid 1279) (envelope-from git@FreeBSD.org) id 322e1 by gitrepo.freebsd.org (DragonFly Mail Agent v0.13+ on gitrepo.freebsd.org); Tue, 22 Sep 2026 15:48:52 +0000 To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-branches@FreeBSD.org Cc: Jean-=?utf-8?Q?S=C3=A9bast?==?utf-8?Q?ien P=C3=A9?=dron From: Vladimir Kondratyev Subject: git: 4befe500c045 - stable/15 - linuxkpi: Add 'fd_empty()` List-Id: Commits to the stable branches of the FreeBSD src repository List-Archive: https://lists.freebsd.org/archives/dev-commits-src-branches List-Help: List-Post: List-Subscribe: List-Unsubscribe: X-BeenThere: dev-commits-src-branches@freebsd.org Sender: owner-dev-commits-src-branches@FreeBSD.org List-Id: List-Post: List-Help: List-Subscribe: List-Unsubscribe: List-Owner: Precedence: list MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: wulf X-Git-Repository: src X-Git-Refname: refs/heads/stable/15 X-Git-Reftype: branch X-Git-Commit: 4befe500c045408fa48fe4afd2053a10c53adb21 Auto-Submitted: auto-generated Date: Tue, 22 Sep 2026 15:48:52 +0000 Message-Id: <6ab2a364.322e1.ea484a8@gitrepo.freebsd.org> The branch stable/15 has been updated by wulf: URL: https://cgit.FreeBSD.org/src/commit/?id=4befe500c045408fa48fe4afd2053a10c53adb21 commit 4befe500c045408fa48fe4afd2053a10c53adb21 Author: Jean-Sébastien Pédron AuthorDate: 2026-06-12 17:55:34 +0000 Commit: Vladimir Kondratyev CommitDate: 2026-09-22 15:47:03 +0000 linuxkpi: Add 'fd_empty()` The DRM drivers generic code started to use it in Linux 6.13. Reviewed by: emaste Sponsored by: The FreeBSD Foundation Differential Revision: https://reviews.freebsd.org/D57582 (cherry picked from commit 50aa145171bc88edde8cf3b7eb13dbbf88a3f8a7) --- sys/compat/linuxkpi/common/include/linux/file.h | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/sys/compat/linuxkpi/common/include/linux/file.h b/sys/compat/linuxkpi/common/include/linux/file.h index 8a589bd2021b..6ed480f4356a 100644 --- a/sys/compat/linuxkpi/common/include/linux/file.h +++ b/sys/compat/linuxkpi/common/include/linux/file.h @@ -188,6 +188,12 @@ LINUXKPI_DEFINE_CLASS(fd, struct fd, fdput(_T), fdget(fd), int fd) #define fd_file(fd) ((fd).linux_file) +static inline bool +fd_empty(struct fd fd) +{ + return (fd_file(fd) == NULL); +} + #define file linux_file #define fget(...) linux_fget(__VA_ARGS__)