From nobody Wed Jun 26 20:54:40 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 4W8Yq50cczz5QDDP; Wed, 26 Jun 2024 20:54:41 +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 "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4W8Yq45xtqz4Lmj; Wed, 26 Jun 2024 20:54:40 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1719435280; 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=RV0uJnb7Zw1v2TIZoboF9NfsSh9X14T4wWO08iXQ4JA=; b=l41T3BaL529QiwmYRVb3gMfpSoVAnwSM2l/Xi4v5W+xCXsg9AYAnNuYWxifAnWNEh5N+j8 mE4GV18TQec3hcrAya7mO+2cGplZ13A4o7kk6lq5NVRK7lxi25vJiPHN66LkGf8fe3VkB7 I88U9jKs1AC8ip9dKge+akgfzi8ONyxYsLx3OCcobvMdqy+45Ca5NCEEiuhU7Cd//SSYnM cjrrTmaogyzGb2KsVQ6a2NrrtE7LdHKs6XK6q6SX1X3DF+aZMEaGI+r8VBvz5Z6ig4+2YZ ZdZW2rOTsl9cEdp5V8tSR7MvF3JMCrWzY5aPe3Ckm/nIBEzbltEK58/tKFyL8A== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1719435280; a=rsa-sha256; cv=none; b=FHdaENDHNyFnP+NVyiadcXt+9n6ElSnMLwLepm2CPix87AU1qU2Nd/s3Wghy1hO6KsBPuJ mYw8lWqQZn/2imEhTx8U6mClzSjo+fSWovTxF83RVfIJIkOm5KMOjHUsysLmwCKHYlB43G +NA/8gFZPUIRPDzPafw2sXX9z4k9V2CYfLr3JCInLYwbts4+AbwRRlrEpp7djNs63ULVPn PiNWUQBw7pPbJo27B363QoC46/f6aCspj6OGtxr8/R9AsFzBuAaa4FcMx6WAcbTnwQSdjf P6UgFDU3R7KBNdT/k5U09C2cerqNEnJpyNj4KUqrWqfuBuJ946S1h56lElES+A== 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=1719435280; 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=RV0uJnb7Zw1v2TIZoboF9NfsSh9X14T4wWO08iXQ4JA=; b=F3tmicxKwVCmu4Wa+xX7GWN5caprPUbS97PR6AE5g9XzRy94HoWwz0oWx1H55MF4ONdrM3 phWSTtf/D648S+aNimzQSuArzeoz6BJ0smDm8gVYfpH/KHcT3I4VULAHq9vGKl04u8oDuY YWpMc/Q/szjw54cJLOlC6ax+q5WLhkBdPHZ7IJvFInH0Kil+CAh839yhFoKsmWx1GRnHOY wdlc6/WP30Pc2gvQrUGUDUOfhV3EOWVhuLpTrhTNpGrdf0rCbVEOz6/piKfmgCrNb31BJs DgJy/FohchuaN1m7lgC/ui/9Y/kO4OJOBbnx34W+3EuExTkyTvjGh6YdMB3cXA== 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 4W8Yq45WyPz10kk; Wed, 26 Jun 2024 20:54:40 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.17.1/8.17.1) with ESMTP id 45QKse0W092390; Wed, 26 Jun 2024 20:54:40 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.17.1/8.17.1/Submit) id 45QKseik092387; Wed, 26 Jun 2024 20:54:40 GMT (envelope-from git) Date: Wed, 26 Jun 2024 20:54:40 GMT Message-Id: <202406262054.45QKseik092387@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org From: Vladimir Kondratyev Subject: git: 460908ea55e6 - main - 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/main X-Git-Reftype: branch X-Git-Commit: 460908ea55e67baf85d5cd1b6093154739cc0b9a Auto-Submitted: auto-generated The branch main has been updated by wulf: URL: https://cgit.FreeBSD.org/src/commit/?id=460908ea55e67baf85d5cd1b6093154739cc0b9a commit 460908ea55e67baf85d5cd1b6093154739cc0b9a Author: Vladimir Kondratyev AuthorDate: 2024-06-26 20:44:12 +0000 Commit: Vladimir Kondratyev CommitDate: 2024-06-26 20:44:12 +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 --- 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 668fe9cb8650..00c55b31b248 100644 --- a/sys/compat/linuxkpi/common/include/linux/device.h +++ b/sys/compat/linuxkpi/common/include/linux/device.h @@ -343,6 +343,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)