<feed xmlns='http://www.w3.org/2005/Atom'>
<title>Tianocore/edk2.git/MdeModulePkg/Library/VarCheckHiiLib, branch dependabot/github_actions/actions/github-script-9</title>
<subtitle>EDK II (mirror)</subtitle>
<id>https://git.radix-linux.su/Tianocore/edk2.git/atom?h=dependabot%2Fgithub_actions%2Factions%2Fgithub-script-9</id>
<link rel='self' href='https://git.radix-linux.su/Tianocore/edk2.git/atom?h=dependabot%2Fgithub_actions%2Factions%2Fgithub-script-9'/>
<link rel='alternate' type='text/html' href='https://git.radix-linux.su/Tianocore/edk2.git/'/>
<updated>2026-02-23T21:01:28+00:00</updated>
<entry>
<title>MdeModulePkg: Replace include guards with #pragma once</title>
<updated>2026-02-23T21:01:28+00:00</updated>
<author>
<name>Michael Kubacki</name>
<email>michael.kubacki@microsoft.com</email>
</author>
<published>2026-02-03T18:48:28+00:00</published>
<link rel='alternate' type='text/html' href='https://git.radix-linux.su/Tianocore/edk2.git/commit/?id=7a934d0befca7d10f361c76af6d2fcb6eb48c835'/>
<id>urn:sha1:7a934d0befca7d10f361c76af6d2fcb6eb48c835</id>
<content type='text'>
Replace traditional `#ifndef`/`#define`/`#endif` include guards with
`#pragma` once.

`#pragma once` is a widely supported preprocessor directive that
prevents header files from being included multiple times. It is
supported by all toolchains used to build edk2: GCC, Clang/LLVM, and
MSVC.

Compared to macro-based include guards, `#pragma once`:

- Eliminates the risk of macro name collisions or copy/paste errors
  where two headers inadvertently use the same guard macro.
- Eliminate inconsistency in the way include guard macros are named
  (e.g., some files use `__FILE_H__`, others use `FILE_H_`, etc.).
- Reduces boilerplate (three lines replaced by one).
- Avoids polluting the macro namespace with guard symbols.
- Can improve build times as the preprocessor can skip re-opening the
  file entirely, rather than re-reading it to find the matching
  `#endif` ("multiple-include optimization").
  - Note that some compilers may already optimize traditional include
    guards, by recognzining the idiomatic pattern.

This change is made acknowledging that overall portability of the
code will technically be reduced, as `#pragma once` is not part of the
C/C++ standards.

However, this is considered acceptable given:

1. edk2 already defines a subset of supported compilers in
   BaseTools/Conf/tools_def.template, all of which have supported
   `#pragma once` for over two decades.
2. There have been concerns raised to the project about inconsistent
   include guard naming and potential macro collisions.

Approximate compiler support dates:

- MSVC: Supported since Visual C++ 4.2 (1996)
- GCC: Supported since 3.4 (2004)
  (http://gnu.ist.utl.pt/software/gcc/gcc-3.4/changes.html)
- Clang (LLVM based): Since initial release in 2007

Signed-off-by: Michael Kubacki &lt;michael.kubacki@microsoft.com&gt;
</content>
</entry>
<entry>
<title>MdeModulePkg/VarCheckHiiLib: fix gcc 16 warning</title>
<updated>2026-02-01T20:30:31+00:00</updated>
<author>
<name>Gerd Hoffmann</name>
<email>kraxel@redhat.com</email>
</author>
<published>2026-01-29T09:34:52+00:00</published>
<link rel='alternate' type='text/html' href='https://git.radix-linux.su/Tianocore/edk2.git/commit/?id=e01df522811363bf0dfb2bb5921f6f79396213d8'/>
<id>urn:sha1:e01df522811363bf0dfb2bb5921f6f79396213d8</id>
<content type='text'>
MdeModulePkg/Library/VarCheckHiiLib/VarCheckHiiGenFromFv.c: In function ‘ParseFv’:
MdeModulePkg/Library/VarCheckHiiLib/VarCheckHiiGenFromFv.c:263:34: error: variable ‘FfsIndex’ set but not used [-Werror=unused-but-set-variable=]
  263 |   UINTN                          FfsIndex;
      |                                  ^~~~~~~~

Signed-off-by: Gerd Hoffmann &lt;kraxel@redhat.com&gt;
</content>
</entry>
<entry>
<title>MdeModulePkg/VarCheckHiiLib: clean up VarCheckHiiLibReceiveHiiBinHandler</title>
<updated>2025-03-19T14:18:12+00:00</updated>
<author>
<name>Leif Lindholm</name>
<email>leif.lindholm@oss.qualcomm.com</email>
</author>
<published>2025-02-12T19:05:20+00:00</published>
<link rel='alternate' type='text/html' href='https://git.radix-linux.su/Tianocore/edk2.git/commit/?id=22919e560bda6d71ce18ac6c86ef4e7716c0082d'/>
<id>urn:sha1:22919e560bda6d71ce18ac6c86ef4e7716c0082d</id>
<content type='text'>
Building VarCheckHiiLib fails on my clang 19.1.6 setup with the error
 variable 'Status' is used uninitialized whenever 'if' condition is false
due to the DispatchHandle != NULL test.

Calling this function with a NULL handle makes no sense, so move the test
to the function entry and return failure if appropriate.

Signed-off-by: Leif Lindholm &lt;leif.lindholm@oss.qualcomm.com&gt;
</content>
</entry>
<entry>
<title>MdeModulePkg/VarCheckHiiLib: don't return success for invalid input</title>
<updated>2025-03-19T14:18:12+00:00</updated>
<author>
<name>Leif Lindholm</name>
<email>leif.lindholm@oss.qualcomm.com</email>
</author>
<published>2025-02-12T18:57:17+00:00</published>
<link rel='alternate' type='text/html' href='https://git.radix-linux.su/Tianocore/edk2.git/commit/?id=f6aba88ac8af6d4561a2f0f452e13564dde9d029'/>
<id>urn:sha1:f6aba88ac8af6d4561a2f0f452e13564dde9d029</id>
<content type='text'>
The doxygen comment for VarCheckHiiLibReceiveHiiBinHandler says that
EFI_INVALID_PARAMETER should be returned if either of CommBuffer or
CommBufferSize is NULL, but the test results in an early return of
EFI_SUCCESS.

Update the code to match the documentation.

Signed-off-by: Leif Lindholm &lt;leif.lindholm@oss.qualcomm.com&gt;
</content>
</entry>
<entry>
<title>MdeModulePkg: Add VarCheckHiiLibStandaloneMm.</title>
<updated>2024-09-02T17:26:58+00:00</updated>
<author>
<name>xieyuanh</name>
<email>yuanhao.xie@intel.com</email>
</author>
<published>2024-07-22T06:31:41+00:00</published>
<link rel='alternate' type='text/html' href='https://git.radix-linux.su/Tianocore/edk2.git/commit/?id=df58def118a72bcf540e049ae560c6bea0b0c488'/>
<id>urn:sha1:df58def118a72bcf540e049ae560c6bea0b0c488</id>
<content type='text'>
This library is designed for handling variable HII checks within the
Standalone MMm environment. It includes the functions
dedicated to registering handlers that process information received
from VarCheckHiiLibMmDependency.

Cc: Liming Gao &lt;gaoliming@byosoft.com.cn&gt;
Cc: Rahul Kumar &lt;rahul1.kumar@intel.com&gt;
Cc: Gerd Hoffmann &lt;kraxel@redhat.com&gt;
Cc: Star Zeng &lt;star.zeng@intel.com&gt;
Cc: Hongbin1 Zhang &lt;hongbin1.zhang@intel.com&gt;
Cc: Wei6 Xu &lt;wei6.xu@intel.com&gt;
Cc: Dun Tan &lt;dun.tan@intel.com&gt;
Cc: Dandan Bi &lt;dandan.bi@intel.com&gt;

Signed-off-by: Yuanhao Xie &lt;yuanhao.xie@intel.com&gt;
</content>
</entry>
<entry>
<title>MdeModulePkg: Move DUMP_VAR_CHECK_HII in common file</title>
<updated>2024-09-02T17:26:58+00:00</updated>
<author>
<name>xieyuanh</name>
<email>yuanhao.xie@intel.com</email>
</author>
<published>2024-06-24T15:39:27+00:00</published>
<link rel='alternate' type='text/html' href='https://git.radix-linux.su/Tianocore/edk2.git/commit/?id=02f67748039ad44aed83654b9048cfdd052ba424'/>
<id>urn:sha1:02f67748039ad44aed83654b9048cfdd052ba424</id>
<content type='text'>
No functional changes.
Move DUMP_VAR_CHECK_HII in common file

Cc: Liming Gao &lt;gaoliming@byosoft.com.cn&gt;
Cc: Rahul Kumar &lt;rahul1.kumar@intel.com&gt;
Cc: Gerd Hoffmann &lt;kraxel@redhat.com&gt;
Cc: Star Zeng &lt;star.zeng@intel.com&gt;
Cc: Hongbin1 Zhang &lt;hongbin1.zhang@intel.com&gt;
Cc: Wei6 Xu &lt;wei6.xu@intel.com&gt;
Cc: Dun Tan &lt;dun.tan@intel.com&gt;
Cc: Dandan Bi &lt;dandan.bi@intel.com&gt;

Signed-off-by: Yuanhao Xie &lt;yuanhao.xie@intel.com&gt;
</content>
</entry>
<entry>
<title>MdeModulePkg: Relocate VarCheckHiiInternalDumpHex, VarCheckHiiQuestion</title>
<updated>2024-09-02T17:26:58+00:00</updated>
<author>
<name>xieyuanh</name>
<email>yuanhao.xie@intel.com</email>
</author>
<published>2024-06-24T15:39:27+00:00</published>
<link rel='alternate' type='text/html' href='https://git.radix-linux.su/Tianocore/edk2.git/commit/?id=45cf57ce798860b02fbeca8c8f4d5e971c476e0e'/>
<id>urn:sha1:45cf57ce798860b02fbeca8c8f4d5e971c476e0e</id>
<content type='text'>
Move VarCheckHiiInternalDumpHex and VarCheckHiiQuestion to the common
file.

Cc: Liming Gao &lt;gaoliming@byosoft.com.cn&gt;
Cc: Rahul Kumar &lt;rahul1.kumar@intel.com&gt;
Cc: Gerd Hoffmann &lt;kraxel@redhat.com&gt;
Cc: Star Zeng &lt;star.zeng@intel.com&gt;
Cc: Hongbin1 Zhang &lt;hongbin1.zhang@intel.com&gt;
Cc: Wei6 Xu &lt;wei6.xu@intel.com&gt;
Cc: Dun Tan &lt;dun.tan@intel.com&gt;
Cc: Dandan Bi &lt;dandan.bi@intel.com&gt;

Signed-off-by: Yuanhao Xie &lt;yuanhao.xie@intel.com&gt;
</content>
</entry>
<entry>
<title>MdeModulePkg: Wrap SetVariableCheckHandlerHii as a common API</title>
<updated>2024-09-02T17:26:58+00:00</updated>
<author>
<name>xieyuanh</name>
<email>yuanhao.xie@intel.com</email>
</author>
<published>2024-07-08T03:41:28+00:00</published>
<link rel='alternate' type='text/html' href='https://git.radix-linux.su/Tianocore/edk2.git/commit/?id=3956f4e39273bd937f10959672c317f2c0dc02f2'/>
<id>urn:sha1:3956f4e39273bd937f10959672c317f2c0dc02f2</id>
<content type='text'>
Rename SetVariableCheckHandlerHii and wrap it as a common API to
facilitate the usage in the following patches.

Cc: Liming Gao &lt;gaoliming@byosoft.com.cn&gt;
Cc: Rahul Kumar &lt;rahul1.kumar@intel.com&gt;
Cc: Gerd Hoffmann &lt;kraxel@redhat.com&gt;
Cc: Star Zeng &lt;star.zeng@intel.com&gt;
Cc: Hongbin1 Zhang &lt;hongbin1.zhang@intel.com&gt;
Cc: Wei6 Xu &lt;wei6.xu@intel.com&gt;
Cc: Dun Tan &lt;dun.tan@intel.com&gt;
Cc: Dandan Bi &lt;dandan.bi@intel.com&gt;

Signed-off-by: Yuanhao Xie &lt;yuanhao.xie@intel.com&gt;
</content>
</entry>
<entry>
<title>MdeModulePkg: Rename VarCheckHiiLibNullClass as VarCheckHiiLib.</title>
<updated>2024-09-02T17:26:58+00:00</updated>
<author>
<name>xieyuanh</name>
<email>yuanhao.xie@intel.com</email>
</author>
<published>2024-08-30T18:25:55+00:00</published>
<link rel='alternate' type='text/html' href='https://git.radix-linux.su/Tianocore/edk2.git/commit/?id=db43a80c105c0ac89c3d918f375a05670a88e9ac'/>
<id>urn:sha1:db43a80c105c0ac89c3d918f375a05670a88e9ac</id>
<content type='text'>
No functional changes.

Cc: Liming Gao &lt;gaoliming@byosoft.com.cn&gt;
Cc: Rahul Kumar &lt;rahul1.kumar@intel.com&gt;
Cc: Gerd Hoffmann &lt;kraxel@redhat.com&gt;
Cc: Star Zeng &lt;star.zeng@intel.com&gt;
Cc: Hongbin1 Zhang &lt;hongbin1.zhang@intel.com&gt;
Cc: Wei6 Xu &lt;wei6.xu@intel.com&gt;
Cc: Dun Tan &lt;dun.tan@intel.com&gt;
Cc: Dandan Bi &lt;dandan.bi@intel.com&gt;

Signed-off-by: Yuanhao Xie &lt;yuanhao.xie@intel.com&gt;
</content>
</entry>
<entry>
<title>MdeModulePkg: Modified BuildVarCheckHiiBin parameter to IN OUT.</title>
<updated>2024-09-02T17:26:58+00:00</updated>
<author>
<name>xieyuanh</name>
<email>yuanhao.xie@intel.com</email>
</author>
<published>2024-07-05T09:18:03+00:00</published>
<link rel='alternate' type='text/html' href='https://git.radix-linux.su/Tianocore/edk2.git/commit/?id=5718c9b06f2b3f348138cd6844c1059c1d98fc61'/>
<id>urn:sha1:5718c9b06f2b3f348138cd6844c1059c1d98fc61</id>
<content type='text'>
Change the Size parameter of BuildVarCheckHiiBin from OUT to an
input-output parameter.

Cc: Liming Gao &lt;gaoliming@byosoft.com.cn&gt;
Cc: Rahul Kumar &lt;rahul1.kumar@intel.com&gt;
Cc: Gerd Hoffmann &lt;kraxel@redhat.com&gt;
Cc: Star Zeng &lt;star.zeng@intel.com&gt;
Cc: Hongbin1 Zhang &lt;hongbin1.zhang@intel.com&gt;
Cc: Wei6 Xu &lt;wei6.xu@intel.com&gt;
Cc: Dun Tan &lt;dun.tan@intel.com&gt;
Cc: Dandan Bi &lt;dandan.bi@intel.com&gt;

Signed-off-by: Yuanhao Xie &lt;yuanhao.xie@intel.com&gt;
</content>
</entry>
</feed>
