From nobody Sat Feb 17 21:32:41 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 4Tchpx52vJz59ktP; Sat, 17 Feb 2024 21:32: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 4Tchpx2wbXz4ggt; Sat, 17 Feb 2024 21:32:41 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1708205561; 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=YHMibg6dCA664U1Y0EB5qqlB6DaD8gXwZx9nWBHPC3U=; b=acZhlCkF4He9IB3w1O0f8GBNbVQ/9wFaxU3M0ZGK5S9LdtUXH/5tcejxRKLAUeZQNQ6Jea wayOVMjEdIBS9UW2ArrM/c100QS1aYIdgEhQfZOqxs1PszqevYULOgC78d5yzn2echGn5w gNNhYe/nRDzFM8i0NKZGKPJgZZsztOiZscA11sQLdXvnzLpdiFdYXo7l6T58rPU089qxsU dR+w+WL4cGa/VCiQE8JUPiL3wl4R2ucaEOANic4V6rxd4bMV4v1F0OjXiiEhCwV9DmYzYt pivfu0Qgm/gvRPciHbXaxnkQiEaD0RRwW+C+CZyXAG6wTUyNwPN3ey2gVR/n/w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1708205561; 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=YHMibg6dCA664U1Y0EB5qqlB6DaD8gXwZx9nWBHPC3U=; b=H9QtoySjfm6EsMGFBpn5JvudAahVLzttXWcFFk85bC/5tBxgnj7PwnCJCMiiwgr+fdMxrm ENVXbrC79aLuPg5ov3DVhqCU2ebRBoCMy2/ZxDXOStjIe/IOLzV2iRoDMjpOF+31wtOZW6 nOXQuBZCqAbYWnDYYuuYSpGByPjMZa+QaShPLBAKv5uPG12Ic3tWW40OXPoesy5fKtKRDu KgfCSFTX0x+01TC4nz9FDrJzOvj/Lwrxuv5mgVz5xhPMmEMTgKqL/MXaEU2OLDmTIUZP6J EuGYAnKYIEzkzME1W25nWeZEsDiogjir68Ne+d+3KC1taYYB2oQgfloQTOjKnA== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1708205561; a=rsa-sha256; cv=none; b=ffnD18owkfQYUpOrDTDdR5Dr5Rb/Xlm0GuBL/sTfcBnTP2vDaS3cAb6fsCP/HlatQHm06g MX14QylDbHSNoT19Cu0lTR7SvzAURgtlNkdED7irmk/FFGoSNmw1HCRIgL4anV7FvCHw1q mppTb03wFNvjBtuNLxMA3GOEmzfmGuFzQspakjdH8JhJ7Baf5Jk5Yp63D9/OE+enI3RB9x pc61f1aXOFPN4A8pLrTRfsbcDUksRBP5Nwl51sEfBqE6HtiPGM4PmXlr0leiRv9aRcenLg txlLr/g+X14tPvSWjuAl9L42nzM0/PFbnhYmmiWxBdlkFhmWtlAooLazJ0PlqQ== 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 4Tchpx1qbqzPJj; Sat, 17 Feb 2024 21:32:41 +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 41HLWfjR020037; Sat, 17 Feb 2024 21:32:41 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.17.1/8.17.1/Submit) id 41HLWfPC020034; Sat, 17 Feb 2024 21:32:41 GMT (envelope-from git) Date: Sat, 17 Feb 2024 21:32:41 GMT Message-Id: <202402172132.41HLWfPC020034@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: af41c1bee4c6 - stable/14 - linuxkpi: Add `sysfs_create_link()` in 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: Sender: owner-dev-commits-src-all@freebsd.org X-BeenThere: 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: af41c1bee4c6b55fdbcb92294f62734b199d4402 Auto-Submitted: auto-generated The branch stable/14 has been updated by wulf: URL: https://cgit.FreeBSD.org/src/commit/?id=af41c1bee4c6b55fdbcb92294f62734b199d4402 commit af41c1bee4c6b55fdbcb92294f62734b199d4402 Author: Jean-Sébastien Pédron AuthorDate: 2023-12-08 21:54:29 +0000 Commit: Vladimir Kondratyev CommitDate: 2024-02-17 20:58:35 +0000 linuxkpi: Add `sysfs_create_link()` in [Why] The amdgpu DRM driver started to use it in Linux 5.18. [How] The function is a no-op as I'm not sure how to implement this with sysctls yet. Reviewed by: manu Approved by: manu Differential Revision: https://reviews.freebsd.org/D43022 (cherry picked from commit 509707e8b6b7326c7f4793b6e291f0a8e6939412) --- sys/compat/linuxkpi/common/include/linux/sysfs.h | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/sys/compat/linuxkpi/common/include/linux/sysfs.h b/sys/compat/linuxkpi/common/include/linux/sysfs.h index 3dc1a18fdbd3..8b4160453a3a 100644 --- a/sys/compat/linuxkpi/common/include/linux/sysfs.h +++ b/sys/compat/linuxkpi/common/include/linux/sysfs.h @@ -152,6 +152,15 @@ sysfs_remove_file(struct kobject *kobj, const struct attribute *attr) sysctl_remove_name(kobj->oidp, attr->name, 1, 1); } +static inline int +sysfs_create_link(struct kobject *kobj __unused, + struct kobject *target __unused, const char *name __unused) +{ + /* TODO */ + + return (0); +} + static inline int sysfs_create_files(struct kobject *kobj, const struct attribute * const *attrs) {