From nobody Tue Nov 25 18:17:31 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 4dG9s74FDBz6HYrY for ; Tue, 25 Nov 2025 18:17:31 +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 4dG9s71yrZz40sG for ; Tue, 25 Nov 2025 18:17:31 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1764094651; 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=Bzb36x4kJwoH57HA6kKUkRt4MmglHkqhzngYaFBRkxI=; b=sb8F2/ArfpsNmwNU5QQ31K+gWrFr8ELtznpA81J0DQnZG6rTNG59B4PDJGKJ0QVBIc0vKR Aebfq2Wmn6uymoMo9+fF6xvBymHrrB2kcBgf4Wv+4QEtGeMyN93EruvtLwhc412Kjtl6ME opyttttRjE6dTbFmVBXpuBdD2mOcYiyDMEjm240dPhAmJW5JSv7A8S+hjndn205hGDBpSD fmSktENeNAoreMdM/hY8bNZAJdZf0saNkVUr8aNyEo5aBIPzTCeOjeiDFoeGZvwf/GPzXb hLc22JzReqv2dUsmsTPrviHeVki8W8971LHMsqhe2tBLs3bWe/T1y80tCqnzuA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1764094651; 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=Bzb36x4kJwoH57HA6kKUkRt4MmglHkqhzngYaFBRkxI=; b=lRfIwy3tQxJoEUDkZ8BGqfujaMX2SGT1HTAesc34Jlqic1nx/4e3ppZxxk/dJoacJVB7+Z 3ZO8mWEg4Uc0q0gvKQhR3ysnaDRjEh+VIr8oK8PaJAt3kCt404z66qniFSF6O44pxa2SkZ jTYkkJqQavgkcM1saNn1WF8ylg5QEiT40X8Lp6/7vUHOdFJr9fSBTBBYNNh4XzHLHdyW/q et5V1L0Jh2luc67KeSMMtviIcB1HmWKTgXqZwieGNwKjsjdGqBEzDacBhqHEU/WueVy1Yw sAGShrzHxB1+AvfabSuGkfGwQy1SIoy3W1gNu4QwcH6IT4DF4qTQJYhS1t3nrg== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1764094651; a=rsa-sha256; cv=none; b=ySOCVWfaT0gOx4G0F2gi1TiiQMhciTKMmZnmo9DjbROxemXR2GWRC6d5oMe5fLVP0MFJ/1 VkC+UcvT0C52PnJZ8Dilj1+IDO5b+ZPaLLpNjpFZzVU0tjGwX2Af1qpNi1i5px64hX7ikz wkw6yvZuQ25nzBzKAnqkKiGWI3wNlxNnkdDw+uWRBdIZxUStNyIUIzXN4RxRh6s4bzgvbt YzuZFXx1Igof509GSBPe/ej/B2hNlacgBi+PR5LEqpgvNrqetsGWciVY9i9mXGk4iZGKVs btKi2+0XiQd4cUcEX/B+7PSDyVfyve3OGJAJav3SrV1q4IpN2ihXu2OOjMQ1EA== 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 4dG9s71W44z1B06 for ; Tue, 25 Nov 2025 18:17:31 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from git (uid 1279) (envelope-from git@FreeBSD.org) id f401 by gitrepo.freebsd.org (DragonFly Mail Agent v0.13+ on gitrepo.freebsd.org); Tue, 25 Nov 2025 18:17:31 +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: 9677ae7864fa - main - libefivar: MdePkg: Clean up source files 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: 9677ae7864fa785bb994e5f07e25bad3cf1139db Auto-Submitted: auto-generated Date: Tue, 25 Nov 2025 18:17:31 +0000 Message-Id: <6925f2bb.f401.738ccb72@gitrepo.freebsd.org> The branch main has been updated by imp: URL: https://cgit.FreeBSD.org/src/commit/?id=9677ae7864fa785bb994e5f07e25bad3cf1139db commit 9677ae7864fa785bb994e5f07e25bad3cf1139db Author: Jose Luis Duran AuthorDate: 2025-11-13 16:36:48 +0000 Commit: Warner Losh CommitDate: 2025-11-25 18:17:24 +0000 libefivar: MdePkg: Clean up source files 1. Do not use tab characters 2. No trailing white space in one line 3. All files must end with CRLF No functional change. Obtained from: https://github.com/tianocore/edk2/commit/9095d37b8fe5bfc3d02adad6ba7fd7359ebc0107 Reviewed by: imp Pull Request: https://github.com/freebsd/freebsd-src/pull/1894 --- lib/libefivar/uefi-dputil.c | 76 ++++++++++++++++++++++----------------------- 1 file changed, 38 insertions(+), 38 deletions(-) diff --git a/lib/libefivar/uefi-dputil.c b/lib/libefivar/uefi-dputil.c index b2c41c7ba369..129b805ab650 100644 --- a/lib/libefivar/uefi-dputil.c +++ b/lib/libefivar/uefi-dputil.c @@ -37,7 +37,7 @@ /* * Taken from MdePkg/Library/UefiDevicePathLib/DevicePathUtilities.c - * hash a11928f3310518ab1c6fd34e8d0fdbb72de9602c 2017-Mar-01 + * hash 9095d37b8fe5bfc3d02adad6ba7fd7359ebc0107 2018-Jun-28 */ /** @file @@ -50,7 +50,7 @@ environment varibles. Multi-instance device paths should never be placed on a Handle. - Copyright (c) 2006 - 2016, Intel Corporation. All rights reserved.
+ Copyright (c) 2006 - 2018, Intel Corporation. All rights reserved.
This program and the accompanying materials are licensed and made available under the terms and conditions of the BSD License which accompanies this distribution. The full text of the license may be found at @@ -302,17 +302,17 @@ IsDevicePathEnd ( /** Determines if a device path node is an end node of a device path instance. - Determines if a device path node specified by Node is an end node of a device - path instance. If Node represents the end of a device path instance, then TRUE + Determines if a device path node specified by Node is an end node of a device + path instance. If Node represents the end of a device path instance, then TRUE is returned. Otherwise, FALSE is returned. If Node is NULL, then ASSERT(). @param Node A pointer to a device path node data structure. - @retval TRUE The device path node specified by Node is the end of a device + @retval TRUE The device path node specified by Node is the end of a device path instance. - @retval FALSE The device path node specified by Node is not the end of a + @retval FALSE The device path node specified by Node is not the end of a device path instance. **/ @@ -614,20 +614,20 @@ AppendDevicePathNode ( /** Creates a new device path by appending the specified device path instance to the specified device path. - - This function creates a new device path by appending a copy of the device path - instance specified by DevicePathInstance to a copy of the device path specified + + This function creates a new device path by appending a copy of the device path + instance specified by DevicePathInstance to a copy of the device path specified by DevicePath in a allocated buffer. - The end-of-device-path device node is moved after the end of the appended device - path instance and a new end-of-device-path-instance node is inserted between. + The end-of-device-path device node is moved after the end of the appended device + path instance and a new end-of-device-path-instance node is inserted between. If DevicePath is NULL, then a copy if DevicePathInstance is returned. If DevicePathInstance is NULL, then NULL is returned. If DevicePath or DevicePathInstance is invalid, then NULL is returned. - If there is not enough memory to allocate space for the new device path, then - NULL is returned. - The memory is allocated from EFI boot services memory. It is the responsibility + If there is not enough memory to allocate space for the new device path, then + NULL is returned. + The memory is allocated from EFI boot services memory. It is the responsibility of the caller to free the memory allocated. - + @param DevicePath A pointer to a device path data structure. @param DevicePathInstance A pointer to a device path instance. @@ -663,13 +663,13 @@ UefiDevicePathLibAppendDevicePathInstance ( NewDevicePath = AllocatePool (SrcSize + InstanceSize); if (NewDevicePath != NULL) { - + TempDevicePath = CopyMem (NewDevicePath, DevicePath, SrcSize);; - + while (!IsDevicePathEnd (TempDevicePath)) { TempDevicePath = NextDevicePathNode (TempDevicePath); } - + TempDevicePath->SubType = END_INSTANCE_DEVICE_PATH_SUBTYPE; TempDevicePath = NextDevicePathNode (TempDevicePath); CopyMem (TempDevicePath, DevicePathInstance, InstanceSize); @@ -682,25 +682,25 @@ UefiDevicePathLibAppendDevicePathInstance ( Creates a copy of the current device path instance and returns a pointer to the next device path instance. - This function creates a copy of the current device path instance. It also updates - DevicePath to point to the next device path instance in the device path (or NULL + This function creates a copy of the current device path instance. It also updates + DevicePath to point to the next device path instance in the device path (or NULL if no more) and updates Size to hold the size of the device path instance copy. If DevicePath is NULL, then NULL is returned. If DevicePath points to a invalid device path, then NULL is returned. - If there is not enough memory to allocate space for the new device path, then - NULL is returned. - The memory is allocated from EFI boot services memory. It is the responsibility + If there is not enough memory to allocate space for the new device path, then + NULL is returned. + The memory is allocated from EFI boot services memory. It is the responsibility of the caller to free the memory allocated. If Size is NULL, then ASSERT(). - - @param DevicePath On input, this holds the pointer to the current - device path instance. On output, this holds - the pointer to the next device path instance + + @param DevicePath On input, this holds the pointer to the current + device path instance. On output, this holds + the pointer to the next device path instance or NULL if there are no more device path - instances in the device path pointer to a + instances in the device path pointer to a device path data structure. - @param Size On output, this holds the size of the device - path instance, in bytes or zero, if DevicePath + @param Size On output, this holds the size of the device + path instance, in bytes or zero, if DevicePath is NULL. @return A pointer to the current device path instance. @@ -740,7 +740,7 @@ UefiDevicePathLibGetNextDevicePathInstance ( // Compute the size of the device path instance // *Size = ((UINTN) DevPath - (UINTN) (*DevicePath)) + sizeof (EFI_DEVICE_PATH_PROTOCOL); - + // // Make a copy and return the device path instance // @@ -821,7 +821,7 @@ CreateDeviceNode ( @param DevicePath A pointer to a device path data structure. @retval TRUE DevicePath is multi-instance. - @retval FALSE DevicePath is not multi-instance, or DevicePath + @retval FALSE DevicePath is not multi-instance, or DevicePath is NULL or invalid. **/ @@ -857,11 +857,11 @@ 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 + 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 + + @param Handle The handle from which to retrieve the device path protocol. @return The device path protocol from the handle specified by Handle. @@ -897,11 +897,11 @@ DevicePathFromHandle ( path node for the file specified by FileName is allocated and returned. The memory for the new device path is allocated from EFI boot services memory. It is the responsibility of the caller to free the memory allocated. - + If FileName is NULL, then ASSERT(). If FileName is not aligned on a 16-bit boundary, then ASSERT(). - @param Device A pointer to a device handle. This parameter + @param Device A pointer to a device handle. This parameter is optional and may be NULL. @param FileName A pointer to a Null-terminated Unicode string.