From nobody Mon May 4 19:27:48 2026 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 4g8WrT5CtNz6cCjp for ; Mon, 04 May 2026 19:27:53 +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" (not verified)) by mx1.freebsd.org (Postfix) with ESMTPS id 4g8WrT39n5z3NV1 for ; Mon, 04 May 2026 19:27:53 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1777922873; 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=UZ2dfS0sNcIPSdTI2PT29pIAtimhdMq/QZUY6HiAoSM=; b=WzgsV2hynAeJlZWxLlio0WVuO2cKCMc/GdfJ2ALiwGIBd8Bw8cPAyhAx4+kAh+jHCfxAlx a0/DMzbaeWJ1l27uCK9slGfpN0dqa4YmnrSe/NorUaOw5PcT94LPVjKnF2h2C3WM36eivB rAP77P8pQo3+qUUeYoTcOr4xvhT2MMnIh5KQHT3dRoLfM5X/ISdYT27kgwytsbUoWJ6Zr4 RTccMu2HA+T0x3fuEHNFK1EpNEFlac0GxrWF9HqPeZpRO/i/Zzj+m/1QDUXoEn1SxrKbPY aJaRccB0s7WFcJ/72B3Wn2qRyKCc+UTlilZKDfsW9vBHK3J0SlbLf2xM81WHNg== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1777922873; a=rsa-sha256; cv=none; b=haaOgcd7sIfjt+zxrr2cCa4o2XBi/dV0GGpd84T+PNUNGOfTS72ajo4qaE1ibXlOHprPes 9bb+8ZMEhBUPZmxAFUmtKDnBC9E21ZVTD/rBnXMj1OE7OuYwTClc3ShSvpMW/k+hx6hfnQ 0AG3nzIPbp/uksXrsH9TfL2zat69m+eBAqGbs0+qE9FY4qUgu79Vr1q8Dcu07/hIdAaWuu zLIpWaKn+xZEoS6ESwO8fbKcpJDgiTg8vAEGriCurilpok8yGYnPOanR6vMN2Syrc4ILSN RGTYdwyouo9nolVo+j3vpBqawthjpG771g/zqoiv7GVYzd9GaKhBpdRJXJAvgA== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1777922873; 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=UZ2dfS0sNcIPSdTI2PT29pIAtimhdMq/QZUY6HiAoSM=; b=cBQoc7sxxQaHgDfqqmiihppr2+o9kz/Jhs2ml8YGX+G8df6BFSsCIo0j6H/6tAyVpJcnIh PAa9bK5iT+21HrkQG6NXx/pxM6M6KehHjSxbbm1fmWh4m23fQD4BPv1rbtVIKj636Gn+Ub fJzULh+ofddkO20ZvBqP+4p+AYY3/rTZO/cNv39cXkv/MW9j7fQWonSMhbbntgn/vPOAnB 1xLqHWOWUViIVLK+dvsCfnBcM5despw0P4r8QfIQBeWsKTc6pfDEvPmskblw0uZOfvImIs v3FkCYDBOMTw5Nd1gTRUE0P0ZaPQqAJNw1f7jg+1JvgQ+QKpJqaJz+IpnQj0OQ== Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) by mxrelay.nyi.freebsd.org (Postfix) with ESMTP id 4g8WrT2TBWzZmy for ; Mon, 04 May 2026 19:27:53 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from git (uid 1279) (envelope-from git@FreeBSD.org) id 3e3a4 by gitrepo.freebsd.org (DragonFly Mail Agent v0.13+ on gitrepo.freebsd.org); Mon, 04 May 2026 19:27:48 +0000 To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org From: Jean-=?utf-8?Q?S=C3=A9bast?==?utf-8?Q?ien P=C3=A9?=dron Subject: git: 658bb99db9c7 - main - linuxkpi: Implement `module_*()` APIs as static 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 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: dumbbell X-Git-Repository: src X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: 658bb99db9c7872f92ccb86ed2674c72636436d2 Auto-Submitted: auto-generated Date: Mon, 04 May 2026 19:27:48 +0000 Message-Id: <69f8f334.3e3a4.d717d55@gitrepo.freebsd.org> The branch main has been updated by dumbbell: URL: https://cgit.FreeBSD.org/src/commit/?id=658bb99db9c7872f92ccb86ed2674c72636436d2 commit 658bb99db9c7872f92ccb86ed2674c72636436d2 Author: Jean-Sébastien Pédron AuthorDate: 2026-05-04 07:45:38 +0000 Commit: Jean-Sébastien Pédron CommitDate: 2026-05-04 19:13:43 +0000 linuxkpi: Implement `module_*()` APIs as static functions This fixes an "unused variable" warning when building DRM drivers. Reviewed by: emaste MFC after: 3 days Sponsored by: The FreeBSD Foundation Differential Revision: https://reviews.freebsd.org/D56780 --- sys/compat/linuxkpi/common/include/linux/module.h | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/sys/compat/linuxkpi/common/include/linux/module.h b/sys/compat/linuxkpi/common/include/linux/module.h index fbe57cbbed82..de4be1e9ebe9 100644 --- a/sys/compat/linuxkpi/common/include/linux/module.h +++ b/sys/compat/linuxkpi/common/include/linux/module.h @@ -136,9 +136,14 @@ _module_run(void *arg) #define module_exit_order(fn, order) \ SYSUNINIT(fn, SI_SUB_OFED_MODINIT, (order), _module_run, (fn)) -#define module_get(module) -#define module_put(module) -#define try_module_get(module) 1 +static inline void module_get(struct module *module) {} +static inline void module_put(struct module *module) {} + +static inline bool +try_module_get(struct module *module) +{ + return (true); +} #define postcore_initcall(fn) module_init(fn)