confirms that the modified uninstall is succeeding.
Cc: Maciej Rabeda
Cc: Jiaxin Wu
Cc: Siyuan Fu
Signed-off-by: Mike Beaton
---
NetworkPkg/HttpBootDxe/HttpBootImpl.c | 21 -
1 file changed, 16 insertions(+), 5 deletions(-)
diff --git a/NetworkPkg/HttpBootDxe
: Michael Brown
Cc: Maciej Rabeda
Cc: Jiaxin Wu
Signed-off-by: Mike Beaton
xyz
---
NetworkPkg/HttpBootDxe/HttpBootImpl.c | 12 ++--
1 file changed, 10 insertions(+), 2 deletions(-)
diff --git a/NetworkPkg/HttpBootDxe/HttpBootImpl.c
b/NetworkPkg/HttpBootDxe/HttpBootImpl.c
index
Does anybody have any suggestions who I should cc as regards this?
Is it preferred to make a bugtracker issue too?
-=-=-=-=-=-=-=-=-=-=-=-
Groups.io Links: You receive all messages sent to this group.
View/Reply Online (#117500): https://edk2.groups.io/g/devel/message/117500
Mute This Topic: htt
example)?
Certainly not saying you're wrong, just that it would be helpful (to me!) to
understand what sort of thing you were thinking of!
Many thanks in advance for any time you might have to reply.
Mike Beaton
-=-=-=-=-=-=-=-=-=-=-=-
Groups.io Links: You receive all messages sent to
On Sat, 20 Apr 2024 at 17:31, Michael Brown wrote:
>
> On 19/04/2024 11:02, Mike Beaton wrote:
> > Dear Michael,
> >
> > I don't know if you had time to answer one follow-up question.
> >
> > Obviously one thing that someone might want to do is to notify o
The network boot stack fails to load in OVMF after
4c4ceb2ceb80c42fd5545b2a4bd80321f07f4345 (NetworkPkg: SECURITY PATCH
CVE-2023-45237): https://bugzilla.tianocore.org/show_bug.cgi?id=4827
I have now understood that this is because the network stack drivers
have been updated to require an instance
On Wed, 21 Aug 2024 at 11:38, Gerd Hoffmann wrote:
>
> On Sat, Aug 10, 2024 at 10:08:20AM GMT, Mike Beaton wrote:
> > The network boot stack fails to load in OVMF after
> > 4c4ceb2ceb80c42fd5545b2a4bd80321f07f4345 (NetworkPkg: SECURITY PATCH
> > CVE-2023-45237): https:
I just spotted that the CI run info on this page
https://github.com/tianocore/edk2/pull/6087/checks warns that there
are CI Mergify rules in place which will cease to work on September
23rd, 2024, and which will be browned out in two days from now on
August 26th, 2024.
>From a quick search I canno
>From commit
>https://github.com/tianocore/edk2/commit/140e4422b16482f0bcafdc20d42141434d450450
(and see also the preceding commit, which I believe is related) up to
the current tip of master, CLANGDWARF OVMF is broken. It builds and
starts but hangs early (more info below). I do not currently hav
> Which clang version is this?
>
> It works for me, fedora 39 / clang 17, and I'm pretty sure I tested it
> when creating the patch on a slightly older clang version (15 or 16).
It is 14 ('Ubuntu clang version 14.0.0-1ubuntu1.1' on Ubuntu 22.04.3 LTS)
Cheers,
Mike
-=-=-=-=-=-=-=-=-=-=-=-
Groups
> > Which clang version is this?
> >
> > It works for me, fedora 39 / clang 17, and I'm pretty sure I tested it
> > when creating the patch on a slightly older clang version (15 or 16).
>
> It is 14 ('Ubuntu clang version 14.0.0-1ubuntu1.1' on Ubuntu 22.04.3 LTS)
>
> Cheers,
> Mike
Strangely, give
> - I have just replicated exactly the same issue from a clean, new
> checkout and build on Fedora 38 and clang 16 (Fedora 16.0.6-3.fc38).
> - I then upgraded that same VM to Fedora 39 and clang 17 and ... I
> still get the same issue, including that it works again when switching
> to 140e4422b16
I have raised a bug,
https://bugzilla.tianocore.org/show_bug.cgi?id=4617 - adding a little
bit of new information which I believe is correct, that I've been able
to dig out.
-=-=-=-=-=-=-=-=-=-=-=-
Groups.io Links: You receive all messages sent to this group.
View/Reply Online (#112251): https://
removed) pragma?
On Sat, 9 Dec 2023 at 15:24, Mike Beaton wrote:
>
> I have raised a bug,
> https://bugzilla.tianocore.org/show_bug.cgi?id=4617 - adding a little
> bit of new information which I believe is correct, that I've been able
> to dig out.
-=-=-=-=-=-=-=-=-=-=-=-
Dear Ard,
Thanks for your attention on my other issue, about NOOPT CLANGDWARF OVMF.
This one is about RELEASE CLANGPDB OVMF, which currently does not
compile, giving:
```
/home/mjsbeaton/OpenSource/edk2/OvmfPkg/VirtioSerialDxe/VirtioSerial.c:28:22:
error: variable 'EventNames' is not needed and
> Removing STATIC means that (modulo LTO) the compiler will not know
> whether or not the definition can be dropped. It also pollutes the
> global namespace.
>
> IMO, lack of the use of STATIC where appropriate is a severe issue
> with the EDK2 codebase. Removing STATIC to appease compiler
> diagno
From: Mike Beaton
This warning was already disabled in CLANGDWARF by commit
d3225577123767fd09c91201d27e9c91663ae132.
gcc can distinguish between optimised-away variable usage (as can occur in
valid debug code) and genuinely unused variables, and only complains about
the latter. clang cannot
I've sent a patch to this list (with some kind of proposed comment
about the issues!) under separate cover.
-=-=-=-=-=-=-=-=-=-=-=-
Groups.io Links: You receive all messages sent to this group.
View/Reply Online (#112260): https://edk2.groups.io/g/devel/message/112260
Mute This Topic: https://gro
Repeats the commit already acked by Ard in
https://edk2.groups.io/g/devel/topic/103083030, though with an attempt
to provide an additional (not yet acked) useful commit message.
-=-=-=-=-=-=-=-=-=-=-=-
Groups.io Links: You receive all messages sent to this group.
View/Reply Online (#112261): http
Resolves https://bugzilla.tianocore.org/show_bug.cgi?id=4620
-=-=-=-=-=-=-=-=-=-=-=-
Groups.io Links: You receive all messages sent to this group.
View/Reply Online (#112262): https://edk2.groups.io/g/devel/message/112262
Mute This Topic: https://groups.io/mt/103087794/21656
Group Owner: devel+ow
NOOPT build?)
On Mon, 11 Dec 2023, 15:00 Laszlo Ersek, wrote:
> On 12/10/23 11:18, Mike Beaton wrote:
> > From: Mike Beaton
> >
> > This warning was already disabled in CLANGDWARF by commit
> > d3225577123767fd09c91201d27e9c91663ae132.
> >
> > gcc can disti
> > I believe this would be logically wrong, as the other versions still
> > wouldn't compile if you changed the relevant debug Pcds. (Which are
> > logically independent of the compile and link options - e.g. what if for
> > some reason you wanted to single step with the Debug Pcds set to
> > disa
> > A completely different approach, which allows clang to spot that the
> > usage has been 'optimised away' and so to not complain (and therefore
> > allows us to re-enable the warning in CLANGDWARF as well), is the
> > following:
> >
> > --- a/MdePkg/Include/Library/DebugLib.h
> > +++ b/MdePkg/In
just the relevant fix for clang.
On Tue, 12 Dec 2023 at 07:49, Ard Biesheuvel wrote:
>
> On Tue, 12 Dec 2023 at 08:17, Mike Beaton wrote:
> >
> > > > A completely different approach, which allows clang to spot that the
> > > > usage has been 'optimis
From: Mike Beaton
Provides a variant of the DEBUG macro for clang when MDEPKG_NDEBUG is defined,
which uses but discards the contained expression, this means clang can tell
that it has optimised away variable usage, therefore we can keep
-Wunneeded-internal-declaration (as part of -Wall) to warn
> I have realised that this was already fixed (i.e. allowing keeping the
> warning) in Acidanthera fork of EDK-II. Discussed here
> https://bugzilla.tianocore.org/show_bug.cgi?id=3704 - includes the fix
> in question and other fixes for newer gcc as well. I'll post a new
> patch to the list proposi
> I'm running some further tests to confirm that the simple version
> proposed above builds in all the Acidanthera test environments, which
> is relevant in that it should rule out at least any obvious problems
> with it building in all edk-2 environments, too. (I had already run
> quick tests for
> This seems redundant to me. Either we set the pragma and the compiler
> does not care, or we don't, and rely on the fact that the compiler can
> infer that 'Expression' will never be evaluated at runtime, but won't
> complain about symbols that are only referenced via 'Expression' and
> nowhere e
> You failed to mention where you found this patch.
It's from https://github.com/acidanthera/audk/commit/dcd0a768b0f
(which actually contains the code described in its commit message, but
I believe some other code, including this specific part, which got
squashed in at some point, and I believe is
> I believe one way to approach it would be to (a) amend the patch with
>
>--author="Marvin Häuser "
>
> and (b) have S-o-b's from both Marvin and you at the end of the commit
> message.
>
As I say, I think the code in question is actual by Mikhail, despite
appearances, but I should be able to
the warning about `(VOID) Expression;`, whilst the presence
of `(VOID) Expression;` (once allowed) is what prevents the unwanted
warning about unneeded variables.
Signed-off-by: Mikhail Krichanov
Signed-off-by: Mike Beaton
---
BaseTools/Conf/tools_def.template | 2 +-
MdePkg/Include/Library
bles elsewhere.
>
> Note that the _Pragma in the clang/gcc variant is to temporarily
> suppress the warning about `(VOID) Expression;`, whilst the presence
> of `(VOID) Expression;` (once allowed) is what prevents the unwanted
> warning about unneeded variables.
>
> Signed-o
> > +#define DEBUG(Expression)\
> > +do { \
> > + _Pragma("GCC diagnostic push") \
> > + _Pragma("GCC diagnostic ignored \"-Wunused-value\"") \
> > + if ((FALSE)) {
From: Mike Beaton
The variant provided when MDEPKG_NDEBUG is defined will be optimised
away in RELEASE builds, but by referencing the argument list, avoids
unused variable errors from valid debug code, for example when STATIC
variables are used only in DEBUG statements.
Signed-off-by: Mike
I have currently gone with `if (FALSE)` in the above, even though
Michael Brown kindly offered tests which showed that `if ((FALSE))`
might help in a closely related context - i.e. when discussing
Mikhail's variant of this and related code - two years ago now:
https://edk2.groups.io/g/devel/message
Got it. These are the fixes for ArmVirtQemu.dsc. If people have
already manually worked round this issue it interferes with this
global fix (we had this in one file in Acidanthera code). There don't
seem to be many instances of that in the entire EDK-II codebase,
however, fortunately.
diff --git
From: Mike Beaton
The variant provided when MDEPKG_NDEBUG is defined will be optimised
away in RELEASE builds, but by referencing the argument list, avoids
unused variable errors from valid debug code, for example when STATIC
variables are used only in DEBUG statements.
Variables EventNames in
From: Mike Beaton
The variant provided when MDEPKG_NDEBUG is defined will be optimised
away in RELEASE builds, but by referencing the argument list, avoids
unused variable errors from valid debug code, for example when STATIC
variables are used only in DEBUG statements.
Variables EventNames in
From: Mike Beaton
This is no longer required since the revised DEBUG macro automatically
compiles away unused var accesses when MDEPKG_NDEBUG is defined;
keeping these lines is incompatible with the updated DEBUG macro, as
there has to be a variable, access to which to discard.
Signed-off-by
Apologies - sent in error without V4 tag, please ignore.
-=-=-=-=-=-=-=-=-=-=-=-
Groups.io Links: You receive all messages sent to this group.
View/Reply Online (#112502): https://edk2.groups.io/g/devel/message/112502
Mute This Topic: https://groups.io/mt/103166248/21656
Group Owner: devel+ow...@
Hi, I'm not fully used to email-based git commits. In this case, I've got two
commits with different messages which are meant to make one patch set. I was
under the impression that the first line of each commit is taken from the
subject, but in that case these cease to appear as one thread in ed
From: Mike Beaton
The variant provided when MDEPKG_NDEBUG is defined will be optimised
away in RELEASE builds, but by referencing the argument list, avoids
unused variable errors from valid debug code, for example when STATIC
variables are used only in DEBUG statements.
Variable EventNames in
From: Mike Beaton
The variant provided when MDEPKG_NDEBUG is defined will be optimised
away in RELEASE builds, but by referencing the argument list, avoids
unused variable errors from valid debug code, for example when STATIC
variables are used only in DEBUG statements.
This issue was being
Repeats V5, but with a hopefully clearer (on motivation and history) commit
message.
-=-=-=-=-=-=-=-=-=-=-=-
Groups.io Links: You receive all messages sent to this group.
View/Reply Online (#112511): https://edk2.groups.io/g/devel/message/112511
Mute This Topic: https://groups.io/mt/103166935/21
> Please stop sending patches.
I believe this version is a clear improvement, with motivation.
(Certainly, it was meant as such!)
How am I meant to send improvements or updates in this email-based workflow?
Mike
-=-=-=-=-=-=-=-=-=-=-=-
Groups.io Links: You receive all messages sent to this gro
> IOW, please don't send a v6 until the discussion comes to a conclusion.
Apologies, I did _not_ see this before sending.
> > - #if !defined (MDEPKG_NDEBUG)
> > + #if defined (__CC_ARM) || defined (__GNUC__)
>
> No, this is not going to be acceptable to me. You noted that only the
> ARM code seem
I did ask. Thank you for the considered answer. Ack. :)
On Thu, 14 Dec 2023 at 13:25, Laszlo Ersek wrote:
>
> On 12/14/23 10:33, Mike Beaton wrote:
> >> Please stop sending patches.
> >
> > I believe this version is a clear improvement, with motivation.
> >
> For the exception handler case, we can just drop the #Ifdefs around
> the definition of BaseName () entirely given that it will now always
> be referenced. But that does depend a lot on how other toolchains deal
> with this (VS201x primarily)
The V5/V6 version of the patch builds on VS2019
-=-
:
`./build.sh -a X64 -b RELEASE qemu {my-qemu-flags}` to run OVMF
This now no longer works, since the second command also attempts to rebuild
OVMF every time you run it.
I believe the previous behaviour was intended and more useful.
Mike Beaton
-=-=-=-=-=-=-=-=-=-=-=-
Groups.io Links: You receive all
e VM.
The advantage of using `build.sh -a ... -b ... qemu ...` to launch QEMU
without building (as was previously possible) is that it automatically
selects the correct qemu command and correct built OVMF BIOS binary to
match the related build command.
Mike
On Sun, 13 Aug 2023 at 11:13, Mike Beaton w
This is now in https://bugzilla.tianocore.org/show_bug.cgi?id=4528 as
it should have been in the first place!
On Sun, 13 Aug 2023 at 11:34, Mike Beaton wrote:
>
> Perhaps I can briefly clarify:
>
> "This now no longer works" was too brief - of course the listed command d
This reverts commit 173a7a7daaad560cd69e1000faca1d2b91774c46.
Fixes https://bugzilla.tianocore.org/show_bug.cgi?id=4528
Signed-off-by: Mike Beaton
---
OvmfPkg/build.sh | 13 -
1 file changed, 8 insertions(+), 5 deletions(-)
diff --git a/OvmfPkg/build.sh b/OvmfPkg/build.sh
index
This includes an extraneous whitespace line at end of file, I will send a v2.
On Thu, 24 Aug 2023 at 05:45, Mike Beaton wrote:
>
> This reverts commit 173a7a7daaad560cd69e1000faca1d2b91774c46.
>
> Fixes https://bugzilla.tianocore.org/show_bug.cgi?id=4528
>
> Signed-o
This reverts commit 173a7a7daaad560cd69e1000faca1d2b91774c46.
Fixes https://bugzilla.tianocore.org/show_bug.cgi?id=4528
Signed-off-by: Mike Beaton
---
OvmfPkg/build.sh | 12 +++-
1 file changed, 7 insertions(+), 5 deletions(-)
diff --git a/OvmfPkg/build.sh b/OvmfPkg/build.sh
index
---
MdeModulePkg/Universal/HiiDatabaseDxe/ConfigKeywordHandler.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/MdeModulePkg/Universal/HiiDatabaseDxe/ConfigKeywordHandler.c
b/MdeModulePkg/Universal/HiiDatabaseDxe/ConfigKeywordHandler.c
index 96e05d4cf9..f67b7760f0 100644
--- a/M
Signed-off-by: Mike Beaton
---
MdeModulePkg/Universal/HiiDatabaseDxe/ConfigKeywordHandler.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/MdeModulePkg/Universal/HiiDatabaseDxe/ConfigKeywordHandler.c
b/MdeModulePkg/Universal/HiiDatabaseDxe/ConfigKeywordHandler.c
index
Apologies, no Signed-off-by, I will send v2.
On Thu, 24 Aug 2023 at 06:52, Mike Beaton wrote:
>
> ---
> MdeModulePkg/Universal/HiiDatabaseDxe/ConfigKeywordHandler.c | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/MdeModulePkg/Univer
PS Extra whitespace line was in original file, i.e. revert here is technically
correct, but assume v2 revert is preferable.
-=-=-=-=-=-=-=-=-=-=-=-
Groups.io Links: You receive all messages sent to this group.
View/Reply Online (#108049): https://edk2.groups.io/g/devel/message/108049
Mute This T
ur. It
occurred to me that replying to the original post might make most
sense. I've raised what I think are the issues here:
https://bugzilla.tianocore.org/show_bug.cgi?id=4528 .
WIth many thanks in advance for your attention.
Mike Beaton
-=-=-=-=-=-=-=-=-=-=-=-
Groups.io Links: You rec
On Mon, 4 Sept 2023, 21:14 Rebecca Cran, wrote:
> Sorry I've not responded to your emails before now.
>
> I don't normally use the build.sh script, so I'm fine with reverting to
> the previous behavior.
>
Ah - thank you for the response - that'd be great, if the original people
who ack-d and com
: Mike Beaton
---
OvmfPkg/build.sh | 15 +++
1 file changed, 11 insertions(+), 4 deletions(-)
diff --git a/OvmfPkg/build.sh b/OvmfPkg/build.sh
index b0334fb76e..279f0d099a 100755
--- a/OvmfPkg/build.sh
+++ b/OvmfPkg/build.sh
@@ -246,11 +246,11 @@ else
fi
#
-# Build the edk2 OvmfPkg
AsciiStrLen was one byte too short (though with alignment up from an odd size
would probably always have had the required space in practice). AsciiStrSize
matches usage elsewhere in this file and in the codebase.
Signed-off-by: Mike Beaton
---
MdeModulePkg/Universal/HiiDatabaseDxe
On Wed, 6 Sept 2023 at 11:34, Mike Beaton wrote:
>
> AsciiStrLen was one byte too short (though with alignment up from an odd size
> would probably always have had the required space in practice). AsciiStrSize
> matches usage elsewhere in this file and in the codebase.
I was intend
On Wed, 6 Sept 2023 at 12:55, Mike Beaton wrote:
>
> On Wed, 6 Sept 2023 at 11:34, Mike Beaton wrote:
> >
> > AsciiStrLen was one byte too short (though with alignment up from an odd
> > size
> > would probably always have had the required space in practice).
elsewhere in the
codebase.
Signed-off-by: Mike Beaton
---
MdeModulePkg/Universal/HiiDatabaseDxe/ConfigKeywordHandler.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/MdeModulePkg/Universal/HiiDatabaseDxe/ConfigKeywordHandler.c
b/MdeModulePkg/Universal/HiiDatabaseDxe
currently used elsewhere in
the codebase for copying static strings).
Signed-off-by: Mike Beaton
---
MdeModulePkg/Universal/HiiDatabaseDxe/ConfigKeywordHandler.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/MdeModulePkg/Universal/HiiDatabaseDxe/ConfigKeywordHandler.c
b
On Thu, 7 Sept 2023 at 04:35, Mike Beaton wrote:
>
> The immediately preceding call, GetBestLanguage, plus the implementation of
> HiiGetString, which is called immediately afterwards, make it clear that
> BestLanguage is a null-terminated ASCII string, and not just a five byte
67 matches
Mail list logo