From nobody Mon Apr 08 06:49:21 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 4VCfpB0T4wz5GL8B; Mon, 8 Apr 2024 06:49:22 +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 4VCfp95Sssz4mgh; Mon, 8 Apr 2024 06:49:21 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1712558961; 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=WG/KtlwnfZb+1wjyYt705NAOUPe+6jAct8tS2T7wfkk=; b=TbmyooOjCqu/k4jhaVKyLFLR6eRf8iVgdun59e1fYL8ME4rYajCw42fxs+YoRj1edGke5e sB8Gr6rZXPUTU9YtKOlT4eM3w6sz+IBGYxop2IoSiSivphRN+lW1iHAsEWG3deq+q+Vha0 lDH6E7s5sB/Kw9qHyycfW83PGAgrS1mPlo4o4Mt+MCXWnmzufMFmAGOpM4tVjZRhIugM1M VCiFy+TcMPmMedHB/us3byRFfR6JSxdBzO1wr88GoNxETeQSz3hkkSLEXYBZLyMIpwAfkF dU59giJyMwIc+4P5nIc+83FKzQpWbkWxXPel6CHTu+xcw4w9ZuU2taYKRBVCMA== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1712558961; a=rsa-sha256; cv=none; b=YhsZ7qVKKwBpBWd6RqyLlX/ed7E1FDV7mi74F5Nyc65/4HkmilRVqEFowufaL0ICgiOc2f DunrHtBa25nfCtFW93QYHJTm9ErDSQ+bNWQ7XFnV60c+EHc1cgoFD+M949ozW4BrfxNDZt A9VAvKc6LCGRzt0rc9YVoCzQPRJOmnUSs3ppFuS8OOSAYx+61f9hBnLrr9c1vV7KlwQ0dO XDPEHGzsF9Ve1zt3HQ/9m6qR4F3n2GTk4mnLunxaYFXkLz5aiZSlXr/4hSK3FWapY0vK5l IzYFbgQxSDacUzSrfW7QIuSrs3+r7YU5lPJD6PEVAVXyFusFzHjpoGf95AGhDQ== 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=1712558961; 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=WG/KtlwnfZb+1wjyYt705NAOUPe+6jAct8tS2T7wfkk=; b=SzwgwS0jYqEZMbjY15XI4pe+Prj/QRMp2DaVeVDggcgr+XY9WnDkELclbpQWUaG7K7L+u5 46FiDMgu5ntyYBP1gvNSqT+sBmaUG+ekvbkJxB+84JQ8CBEr3hwqEeUEZlFdbM1Q5UpCWG /xcxrTsv8KpGa8ELKgRuferhVhuPzr8MIxahqPQ9w/oB7OEW93OyuajsTjDaOCktLaEzlj m0eAxIImRpNxdPhhBY4gxo8FtPrjQVgo2T6fYdVlQj3ZuvLDjc51r72LRDwuzinkpxc1zV EtYpn9HuMYcNC8NUyX5evIvDgX+sL2yMsHQxhsC4d/pTWn8+xFB1bB8Y9rFgKQ== 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 4VCfp9546zz11kc; Mon, 8 Apr 2024 06:49:21 +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 4386nLLF033154; Mon, 8 Apr 2024 06:49:21 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.17.1/8.17.1/Submit) id 4386nL2W033151; Mon, 8 Apr 2024 06:49:21 GMT (envelope-from git) Date: Mon, 8 Apr 2024 06:49:21 GMT Message-Id: <202404080649.4386nL2W033151@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: 4e7aa03b7076 - main - LinuxKPI: Stub sysfs_remove_link in linux/sysfs.h 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/main X-Git-Reftype: branch X-Git-Commit: 4e7aa03b7076353af4b960ade67f093af5736d38 Auto-Submitted: auto-generated The branch main has been updated by wulf: URL: https://cgit.FreeBSD.org/src/commit/?id=4e7aa03b7076353af4b960ade67f093af5736d38 commit 4e7aa03b7076353af4b960ade67f093af5736d38 Author: Vladimir Kondratyev AuthorDate: 2024-04-08 06:47:43 +0000 Commit: Vladimir Kondratyev CommitDate: 2024-04-08 06:47:43 +0000 LinuxKPI: Stub sysfs_remove_link in linux/sysfs.h sysfs_create_link is stubbed already. Stub sysfs_remove_link too to be feature-complete. Sponsored by: Serenity Cyber Security, LLC Reviewed by: emaste MFC after: 1 week --- sys/compat/linuxkpi/common/include/linux/sysfs.h | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/sys/compat/linuxkpi/common/include/linux/sysfs.h b/sys/compat/linuxkpi/common/include/linux/sysfs.h index 4a65095d9eb1..b5ad73e4460b 100644 --- a/sys/compat/linuxkpi/common/include/linux/sysfs.h +++ b/sys/compat/linuxkpi/common/include/linux/sysfs.h @@ -164,6 +164,12 @@ sysfs_create_link(struct kobject *kobj __unused, return (0); } +static inline void +sysfs_remove_link(struct kobject *kobj, const char *name) +{ + /* TODO (along with sysfs_create_link) */ +} + static inline int sysfs_create_files(struct kobject *kobj, const struct attribute * const *attrs) {