From nobody Tue Nov 25 18:17:35 2025 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 4dG9sC6c3Vz6HZBg for ; Tue, 25 Nov 2025 18:17:35 +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 "R12" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4dG9sC4GRvz418n for ; Tue, 25 Nov 2025 18:17:35 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1764094655; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=XV+fjX2P3ZgUMwD91+2c5x2M0LomRvyg7UjtfD3SyAU=; b=EFNK2eH8erreseNNbdwm+bfpLnvE0rhhCHvsU5hdoXt7wnikULWXDbLJWY6NKWjovzlCcx P4/eOtN7V+pyjw4h1bJexFk/ih5fGPBJvohzYgM1NrfQtybNOnQmhmRYf8j2sHYhFhk/85 8M69BZ7tMfwBtfR7RfpIB+QEugN2Xmxb+vIgbwsSv1uNMyvmmcTU1GQ9IjNXvqstQxROWN iJONJpYA9Hy2W6pcRpHGkUqmcCvMQ849XKXRA4q+rv6HvuS3p2vCZ4xYQSHyBIgJ43lip9 V1gwIQzK3HMQehAfZmwVgjY/pGPONfdesIFBkSUaSHiPPlykfKxwWRnxr08hPA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1764094655; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=XV+fjX2P3ZgUMwD91+2c5x2M0LomRvyg7UjtfD3SyAU=; b=RYvWTRdEioJb+X6dYGrtye6SjrJ1n+xHT19VH1ALuSbJ02W2ynw1Revf4mhyRyQRaOjIWp qQ2Yfrn87VYdNDFE024sp/6t1NWPM1iQJxVp9dUGvdVti18WxnXQ/rc8VOH1D/2AJ2NlSx +pWNFbBZnb80Fo9Zkx47S16ajlDP6h/u3zoA75aPZt4tVykaxR0uUZvznhngvQWIR3bTZQ YHbzadsvlYnHxzpHNfJLIP+1WOaqMmqkOMRG138rvhy6z1/Lv5fLorNlISu26XREruG5xE mHWezVh+Kk0r6pqM78+SJ3fcX3wpukRPB7+87sNn1icm28ZCERcUtP3AKXInJw== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1764094655; a=rsa-sha256; cv=none; b=Z79r11B/J8MIljKEoBwYa1AvrH8OdAjlH94KURIDOVCjymXmPg2eTmVD6FSzr5TusgRU+P kZSSKO85w9LPpb7nsDR7kBSSDOEWoqi9mG4WUJ5MgLmfEStXLtvf4soN98fvMnMWsJvACI riPRxkXyLpF1yYbcwVsvxCzgUNRxADM77zkdtcFKGfRbLrsH9PkjdL3DZpz1CMKOZURtCz pC18C17oTZKWyuboEj7FJzwwqGqTAmJgEq61xIFzSpHaAoqxyTNQXniQQA7nnEjkoP1ASD V0B/YeYUERWNOfc5OtaSDQNqKjsSpJyYfatm0ZujpSi6vk9G4WD9aeQT/gkmwA== ARC-Authentication-Results: i=1; mx1.freebsd.org; none Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) by mxrelay.nyi.freebsd.org (Postfix) with ESMTP id 4dG9sC3pyVz19PR for ; Tue, 25 Nov 2025 18:17:35 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from git (uid 1279) (envelope-from git@FreeBSD.org) id df54 by gitrepo.freebsd.org (DragonFly Mail Agent v0.13+ on gitrepo.freebsd.org); Tue, 25 Nov 2025 18:17:35 +0000 To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org Cc: Jose Luis Duran From: Warner Losh Subject: git: 6fa0057f8953 - main - libefivar: Support UefiDevicePathLib under StandaloneMm 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: imp X-Git-Repository: src X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: 6fa0057f8953a7077362901128be14171ed705b8 Auto-Submitted: auto-generated Date: Tue, 25 Nov 2025 18:17:35 +0000 Message-Id: <6925f2bf.df54.29fe16d5@gitrepo.freebsd.org> The branch main has been updated by imp: URL: https://cgit.FreeBSD.org/src/commit/?id=6fa0057f8953a7077362901128be14171ed705b8 commit 6fa0057f8953a7077362901128be14171ed705b8 Author: Jose Luis Duran AuthorDate: 2025-11-13 18:51:39 +0000 Commit: Warner Losh CommitDate: 2025-11-25 18:17:25 +0000 libefivar: Support UefiDevicePathLib under StandaloneMm This change added an instance of UefiDevicePathLib for StandaloneMm. It abstracts DevicePathFromHandle function into different files for Standalone MM and other instances to avoid linking gBS into MM_STANDALONE drivers. No functional change intended, as this function and its invocation are ifdefd out. Obtained from: https://github.com/tianocore/edk2/commit/14a746bb6a92d59669c67a970479558734cf2383 Reviewed by: imp Pull Request: https://github.com/freebsd/freebsd-src/pull/1894 --- lib/libefivar/uefi-dputil.c | 33 --------------------------------- 1 file changed, 33 deletions(-) diff --git a/lib/libefivar/uefi-dputil.c b/lib/libefivar/uefi-dputil.c index 3a9cf7f374b2..c557d7426fc6 100644 --- a/lib/libefivar/uefi-dputil.c +++ b/lib/libefivar/uefi-dputil.c @@ -856,39 +856,6 @@ UefiDevicePathLibIsDevicePathMultiInstance ( } -/** - Retrieves the device path protocol from a handle. - - This function returns the device path protocol from the handle specified by Handle. - If Handle is NULL or Handle does not contain a device path protocol, then NULL - is returned. - - @param Handle The handle from which to retrieve the device - path protocol. - - @return The device path protocol from the handle specified by Handle. - -**/ -EFI_DEVICE_PATH_PROTOCOL * -EFIAPI -DevicePathFromHandle ( - IN EFI_HANDLE Handle - ) -{ - EFI_DEVICE_PATH_PROTOCOL *DevicePath; - EFI_STATUS Status; - - Status = gBS->HandleProtocol ( - Handle, - &gEfiDevicePathProtocolGuid, - (VOID *) &DevicePath - ); - if (EFI_ERROR (Status)) { - DevicePath = NULL; - } - return DevicePath; -} - /** Allocates a device path for a file and appends it to an existing device path.