From nobody Thu Aug 01 22:27:48 2024 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 4WZk9w3Tfmz5RZmZ; Thu, 01 Aug 2024 22:27:48 +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 4WZk9w1rzwz4ZFP; Thu, 1 Aug 2024 22:27:48 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1722551268; 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=iU/FQG3pm9hGfgUzpWz8EwbQU3n2nQrdfu/kFJHq2vw=; b=RoX+PQavWSRpRCXepOPplkbZIp4NKICfUdKpmym6XLKmYlFlHCCNRGORL/8YdVc+GQIBWF HucK7f3UULIXPGSjW9eGJXMGGJj1EAJbXcIzni3akim9Mr98ql5UXXpJXfnj7xS7SyvrZ7 VtxjtMp6riJAGTYzC7MGmJa5saPqSyue/MdsqSAQ2Q0906OEIP4s8lGrK/EzERJ7G80ljH cnDVZPfpUy4fUZKpJmG7LQBN6eo1Olbb8+MUPYGvAp+69g/tldJfhCOzGitEzwnbXjGBlw NHLGRQQW/qGTlcRpnAU3NZYOnF+3ZgE36TOEuJEEjluI+GR+RZx/VpDAOVDVGA== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1722551268; a=rsa-sha256; cv=none; b=uIw6SLzBS9Naej8qW8GYXwmxkIjBT/XRQMLNL8U1zmQIhUjy409kaZJFABA4IxE56fH45I EkFporo5KoDAQmlww9nEqfRetc633QHVTAeJfh+P3oIgZK31B9mN4EShTYB657RgUDKdZu 0J0GPu7o/kjBsfo+Aup6ywY1VbcYMQ4QgQj3Y7avsmrSzaoAN7cPqAjzM+REHInXsyToDm nWq8IMo179dJw5J3wV9QOgh2fgnHRIQ68U/WSFs59wU+iugu3FgJh55oJTytC4S6OJSYrM oedm8nzD9WLSsvwFIfBJ2yV1ilmwQSQxnWYo8Eh2Go4yV+ZjbgVzDGDRRI0weg== 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=1722551268; 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=iU/FQG3pm9hGfgUzpWz8EwbQU3n2nQrdfu/kFJHq2vw=; b=xwh1/8+go7jtVlgbZdWBZAeQSKVxk0QqBGeDcRf+NvA826dnDRKO3iYCjY/o+38LZdUZPo btA3xpGiS8FCSpW/SdYmSwgQsvzWla87PRIdCqFYaxeq2cBjFeGlQ5DeV/pUlxmvJVhdSS Kxw8uQ5tQYTMnsDsSzg/Bok2pC0/B75fRU+0AWaGVeO3+01lZmSVHDU/Y96atx8vrnWYfq 5cRNdaLPAxmsSDjdV0oSZt0vDVh+HRFe9oHGxfcPr9HmJUDXE49yQ6/RhVRlVr0dIQdeSC uWJ4UY32g4mV8YW1rVT9+/CzKAAYn5VXftxqsjWsezTcfTYUvQcjD7w808TUIA== 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 4WZk9w15nXz13Cw; Thu, 1 Aug 2024 22:27:48 +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 471MRm3T027991; Thu, 1 Aug 2024 22:27:48 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.18.1/8.18.1/Submit) id 471MRmfg027988; Thu, 1 Aug 2024 22:27:48 GMT (envelope-from git) Date: Thu, 1 Aug 2024 22:27:48 GMT Message-Id: <202408012227.471MRmfg027988@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-branches@FreeBSD.org From: Vladimir Kondratyev Subject: git: 1e30fc5d7ffa - stable/14 - LinuxKPI: Remove owner argument from class_create function on KPI layer 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: wulf X-Git-Repository: src X-Git-Refname: refs/heads/stable/14 X-Git-Reftype: branch X-Git-Commit: 1e30fc5d7ffaa39281a0309c594a031d74ffd20a Auto-Submitted: auto-generated The branch stable/14 has been updated by wulf: URL: https://cgit.FreeBSD.org/src/commit/?id=1e30fc5d7ffaa39281a0309c594a031d74ffd20a commit 1e30fc5d7ffaa39281a0309c594a031d74ffd20a Author: Vladimir Kondratyev AuthorDate: 2024-06-26 20:44:12 +0000 Commit: Vladimir Kondratyev CommitDate: 2024-08-01 21:09:40 +0000 LinuxKPI: Remove owner argument from class_create function on KPI layer to chase Linux 6.4 Sponsored by: Serenity Cyber Security, LLC MFC after: 1 week Reviewed by: manu, emaste Differential Revision: https://reviews.freebsd.org/D45610 (cherry picked from commit 460908ea55e67baf85d5cd1b6093154739cc0b9a) --- sys/compat/linuxkpi/common/include/linux/device.h | 3 +++ 1 file changed, 3 insertions(+) diff --git a/sys/compat/linuxkpi/common/include/linux/device.h b/sys/compat/linuxkpi/common/include/linux/device.h index 770c5c334c9a..98c16212512d 100644 --- a/sys/compat/linuxkpi/common/include/linux/device.h +++ b/sys/compat/linuxkpi/common/include/linux/device.h @@ -342,6 +342,9 @@ put_device(struct device *dev) } struct class *class_create(struct module *owner, const char *name); +#if defined(LINUXKPI_VERSION) && LINUXKPI_VERSION >= 60400 +#define class_create(name) class_create(NULL, name) +#endif static inline int class_register(struct class *class)