From nobody Thu Feb 17 13:46:21 2022 X-Original-To: dev-commits-src-branches@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 0A6EE19D5618; Thu, 17 Feb 2022 13:46: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 4Jzx1n5t1vz3Pn0; Thu, 17 Feb 2022 13:46:21 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1645105581; 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=+REl1FWKHkxRCvF6PFWkZwbIS2Evs8GLsxviEtaVRIk=; b=oht4tm5wA/cpK74Umo2HehZP2mw72U0ZdiLvVhSrgiHyia7wNNo2rXy7eAPvLqYuLSgwtF U7aJJvG2FX3p3oolb8Ag3WRbDsA4z2wIoH/ztUAaerxP4Q2YUWG5MhPIpUZy6/aVzSyTod 6S0JbHdkWl0CRj5MBlPWjwz76S5Yq2p//hhtMDPcf4enY9KobB1wo10E/o0Fyw8E5pYoLM Khtn7vY4i0nLSKPfhjbxjgkDQOiTOdMSaipeju3IqX1TbpCdi7h+c/eoGBSc63eEQRi50x jFtdvN43qD3LLu/kYx072qYzvKnp2txwKiDxuEQzQgfwC3P+7x0o0HJNltRs7g== 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 834F7237C; Thu, 17 Feb 2022 13:46:21 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.16.1/8.16.1) with ESMTP id 21HDkLd7048222; Thu, 17 Feb 2022 13:46:21 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 21HDkLY8048221; Thu, 17 Feb 2022 13:46:21 GMT (envelope-from git) Date: Thu, 17 Feb 2022 13:46:21 GMT Message-Id: <202202171346.21HDkLY8048221@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-branches@FreeBSD.org From: Edward Tomasz Napierala Subject: git: a10a92d34ca7 - stable/13 - linsysfs: create /sys/bus/ and /sys/subsystem/ List-Id: Commits to the stable branches of the FreeBSD src repository List-Archive: https://lists.freebsd.org/archives/dev-commits-src-branches List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-dev-commits-src-branches@freebsd.org X-BeenThere: dev-commits-src-branches@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: trasz X-Git-Repository: src X-Git-Refname: refs/heads/stable/13 X-Git-Reftype: branch X-Git-Commit: a10a92d34ca7ae4a78646c9daa49be5a1e7a3859 Auto-Submitted: auto-generated ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1645105581; 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=+REl1FWKHkxRCvF6PFWkZwbIS2Evs8GLsxviEtaVRIk=; b=D4cHws8RSiIZ7NcCZOp1fAzMeBFAa2B0eKScthgNgfbnjaVcFSZ7zyiYBBK9y+pgB5XZsm A8pituoL2070ZUAq8/3YwzQuy5wLveQQiJ2FcVgEit3jKswfRkQdPYfgSzGyMTo8XVgh2W i29DiArmDUiSaEQa9Ph2y1ji9/SmI9OoaZp69QOXBemtZBJop87TgWZoKtNsMcBq06Si90 OJkfEvoPX7MA9KfrFsyRoo9QQ/3E4mhMP1spsq9oz69mcqYEB8DKeE57ANZOOH99JTJwlR hTo2x8//IpANOWktyEwks21QhhVH6n3sO23p3JmM1M8lkPSgGAeATcV8DHIUvQ== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1645105581; a=rsa-sha256; cv=none; b=B30HCj7IZfzryDKOPlTFeuci0IM86ELUxk9g6Pdle1QvWFy1kgNzExV2zQrnU4u94ZV+gd zP70h8fEIB1l+mc7zKXEDxXw+IockC2iMz1V7AwCdxlFbnwBcVOdridJmEER7LjaPJFXZp PZnBsAmfVteJ0heFVJok6dEg8P8XH4vnPItcn5odtJtWqeHm9Nuxuf2IQ6QRtsi+QVSVAi y/Pt4tDI2SL9LxWRQhSIY8nMfJJN471qZD5jDy1JZ4PYaGiUj+ukykX213g4WOP4LBlZqT s3xyoMO851q0i4YKkUgVimWeErY69r9LbXFBL4jf8cs1I6Z/rivhavqw5aYuXw== ARC-Authentication-Results: i=1; mx1.freebsd.org; none X-ThisMailContainsUnwantedMimeParts: N The branch stable/13 has been updated by trasz: URL: https://cgit.FreeBSD.org/src/commit/?id=a10a92d34ca7ae4a78646c9daa49be5a1e7a3859 commit a10a92d34ca7ae4a78646c9daa49be5a1e7a3859 Author: Edward Tomasz Napierala AuthorDate: 2021-03-08 20:55:44 +0000 Commit: Edward Tomasz Napierala CommitDate: 2022-02-13 23:19:21 +0000 linsysfs: create /sys/bus/ and /sys/subsystem/ This looks like a no-op, but it prevents udevadm(8) with failing loudly, which in turn unbreaks installation of libfprint-2-2, which in Focal is a dependency for make-4.2.1-1.2. One might wonder why installing a build utility involves messing with device handling... Sponsored By: The FreeBSD Foundation Differential Revision: https://reviews.freebsd.org/D29133 (cherry picked from commit dc0119c28194b537cfa2ad95ce2e62589da7ceb0) --- sys/compat/linsysfs/linsysfs.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/sys/compat/linsysfs/linsysfs.c b/sys/compat/linsysfs/linsysfs.c index 66cb36db9868..8d3be1507de9 100644 --- a/sys/compat/linsysfs/linsysfs.c +++ b/sys/compat/linsysfs/linsysfs.c @@ -633,6 +633,9 @@ linsysfs_init(PFS_INIT_ARGS) root = pi->pi_root; + /* /sys/bus/... */ + dir = pfs_create_dir(root, "bus", NULL, NULL, NULL, 0); + /* /sys/class/... */ class = pfs_create_dir(root, "class", NULL, NULL, NULL, 0); scsi = pfs_create_dir(class, "scsi_host", NULL, NULL, NULL, 0); @@ -679,6 +682,9 @@ linsysfs_init(PFS_INIT_ARGS) /* /sys/kernel/debug, mountpoint for lindebugfs. */ debug = pfs_create_dir(kernel, "debug", NULL, NULL, NULL, 0); + /* /sys/subsystem/... */ + dir = pfs_create_dir(root, "subsystem", NULL, NULL, NULL, 0); + return (0); }