From nobody Thu May 07 11:16:28 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 4gB8pB3Sdsz6c5Zh for ; Thu, 07 May 2026 11:16: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 "R13" (not verified)) by mx1.freebsd.org (Postfix) with ESMTPS id 4gB8pB2pNXz3pjr for ; Thu, 07 May 2026 11:16:34 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1778152594; 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=VYFIziOLtYyHld6tjSKep9F6hqjmDs58m/brVAaEQOM=; b=JW0nn6Zqj6WyJNI82OgM20NLlp+dNLIYYnUeifi8gMXbKeQ4NOrJkw8ZcV76fp94SwIQgH 9shP5yxAmhodvahbCJ9HJ3vL3mJ6bBB0QB0Wwa4EeEkWxucyJzMpPTDuC+IFyEurrwshEG IH4fzspxite+lEV9b6VX3j9hQEYGLWvSeESZREtLPVoObFoVD2qApwlTbrgXmWy2MwSMf7 JpyQJf9tfJfjapvTkaSb3/4tlu9687zIklUAIwe+119/rLNA+1CNqRFAHmy1S6nlIB/AEh XHFf2E/hzj9jszmNfVNiaWxrA67heODTU244Hm9OZxPMQ0D6ScGxXtFIG9KjdQ== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1778152594; a=rsa-sha256; cv=none; b=Cg4ewuoW2MEGdDNd3d2W9jkm+kDGEPs89mU5js5XeU4+FkfdQPVgFirhg6jhKm8d6e5Oo1 4Yr3CxxFt1RHKqq/9qa1hZwuZckLOkrYbVYkDCBFkAhKYHgQvZT6j/hKUHYkZBiqgYO8bd d5qJ0MhmWE1TylKvoKD3O0sD29kKEsaUALos39SyH/D9rF4M+QU3FmZEr7BHJxY0/zWMAC 6smLKHjn6SL/QWGYegHZvrbw8/zrWuIlaZF1M0XZOgI1jSwgeXzArwtOHuQHpe6QSLPxwV kWfn3fkX/nYY+1tyEUE2g6aECB74e5U8FpYrBFE8cE/U1rqa3R/x68x9BZUl9w== 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=1778152594; 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=VYFIziOLtYyHld6tjSKep9F6hqjmDs58m/brVAaEQOM=; b=R58cxjHNcM42Mtgp/6w5vGw1LMqUVyFgMgJ11cB1gt/rtXqIMJbYSNUqtR1E2ysW8sjaAk UaBLHYpTE7q7+eL5cc0YQSZcKm5TsuW5+gKmik5O9wSCnFF0w8p0CYtXd3V+vEGVC4QekS OEsFwq42XspmvP2oztQAaA5u0oooSj0wQXy44JbJsNgZECOSjos/QIV7uhBi6HKkxlXyZq KtovDCxZeAcZ2NH1LOik8BLilt88aBORpS5w7xseeOC/Omjp/M0wsBznGKxFBSGAGT4ac1 q6R53w3p6cxmEitxzre8LVw81EYtXZJfv4iWWZZumhpndchnhzlFqNYIl8BO+w== Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) by mxrelay.nyi.freebsd.org (Postfix) with ESMTP id 4gB8pB23BZz7tB for ; Thu, 07 May 2026 11:16:34 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from git (uid 1279) (envelope-from git@FreeBSD.org) id 3613c by gitrepo.freebsd.org (DragonFly Mail Agent v0.13+ on gitrepo.freebsd.org); Thu, 07 May 2026 11:16:28 +0000 To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-branches@FreeBSD.org From: Jean-=?utf-8?Q?S=C3=A9bast?==?utf-8?Q?ien P=C3=A9?=dron Subject: git: c81f51651211 - stable/15 - 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/stable/15 X-Git-Reftype: branch X-Git-Commit: c81f516512111fa5ac8d5a9f3f7e64c2fb5ab5a3 Auto-Submitted: auto-generated Date: Thu, 07 May 2026 11:16:28 +0000 Message-Id: <69fc748c.3613c.7771ec2@gitrepo.freebsd.org> The branch stable/15 has been updated by dumbbell: URL: https://cgit.FreeBSD.org/src/commit/?id=c81f516512111fa5ac8d5a9f3f7e64c2fb5ab5a3 commit c81f516512111fa5ac8d5a9f3f7e64c2fb5ab5a3 Author: Jean-Sébastien Pédron AuthorDate: 2026-05-07 11:16:09 +0000 Commit: Jean-Sébastien Pédron CommitDate: 2026-05-07 11:16:09 +0000 linuxkpi: Implement `module_*()` APIs as static functions This fixes an "unused variable" warning when building DRM drivers. Reviewed by: emaste Sponsored by: The FreeBSD Foundation Differential Revision: https://reviews.freebsd.org/D56780 (cherry picked from commit 658bb99db9c7872f92ccb86ed2674c72636436d2) --- 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)