public inbox for devel@edk2.groups.io
 help / color / mirror / Atom feed
From: "Leif Lindholm" <quic_llindhol@quicinc.com>
To: Laszlo Ersek <lersek@redhat.com>,
	Jayaprakash N <n.jayaprakash@intel.com>, <devel@edk2.groups.io>
Cc: Rebecca Cran <rebecca@bsdio.com>,
	Michael D Kinney <michael.d.kinney@intel.com>,
	Ard Biesheuvel <ardb+tianocore@kernel.org>,
	Abner Chang <abner.chang@amd.com>
Subject: Re: [edk2-devel] [edk2 Patch 1/1] EmbeddedPkg: Fix compiler errors due to implicit conversions
Date: Thu, 8 Feb 2024 17:58:07 +0000	[thread overview]
Message-ID: <bcc5972b-292a-454c-9b24-843c3f8bcc74@quicinc.com> (raw)
In-Reply-To: <017b4577-62cb-6f94-be2f-f54cdc98494d@redhat.com>

On 2024-02-07 19:59, Laszlo Ersek wrote:
> On 2/6/24 17:23, Jayaprakash N wrote:
>> REF: https://bugzilla.tianocore.org/show_bug.cgi?id=4669
>>
>> This commit fixes compilation issues reported through BZ4669.
>> There were several compilation errors due to implicit type
>> conversions in EmbeddedPkg. Fixed all the issues with the
>> correct usage of explicit type conversions based on the
>> context.
>>
>> Cc: Rebecca Cran <rebecca@bsdio.com>
>> Cc: Michael D Kinney <michael.d.kinney@intel.com>
>> Cc: Laszlo Ersek <lersek@redhat.com>
>> Cc: Leif Lindholm <quic_llindhol@quicinc.com>
>> Cc: Ard Biesheuvel <ardb+tianocore@kernel.org>
>> Cc: Abner Chang <abner.chang@amd.com>
>> Cc: Jayaprakash N <n.jayaprakash@intel.com>
>> Signed-off-by: Jayaprakash N <n.jayaprakash@intel.com>
>> ---
>>   EmbeddedPkg/GdbStub/X64/Processor.c           | 36 +++++++++----------
>>   EmbeddedPkg/Include/libfdt_env.h              |  8 ++---
>>   EmbeddedPkg/Library/FdtLib/fdt.c              |  9 ++---
>>   EmbeddedPkg/Library/FdtLib/fdt_overlay.c      | 20 +++++------
>>   EmbeddedPkg/Library/FdtLib/fdt_ro.c           | 32 ++++++++---------
>>   EmbeddedPkg/Library/FdtLib/fdt_rw.c           | 24 ++++++-------
>>   EmbeddedPkg/Library/FdtLib/fdt_strerror.c     |  2 +-
>>   EmbeddedPkg/Library/FdtLib/fdt_strtoul.c      |  2 +-
>>   EmbeddedPkg/Library/FdtLib/fdt_sw.c           | 10 +++---
>>   EmbeddedPkg/Library/FdtLib/fdt_wip.c          |  4 +--
>>   .../MemoryAllocationLib.c                     |  2 +-
>>   EmbeddedPkg/Universal/MmcDxe/MmcBlockIo.c     |  8 ++---
>>   .../Universal/MmcDxe/MmcIdentification.c      | 22 ++++++------
>>   13 files changed, 90 insertions(+), 89 deletions(-)
> 
> This patch does way too many things at once. Please, minimally, split it
> into multiple patches, at module boundaries.
> 
> Second, I'm unsure if edk2 considers FdtLib a completely detached fork
> of libfdt, at this point. If so, then fixing the warnings in the edk2
> tree is valid (but should still be likely structured with finer
> granularity). If not (i.e., if we still intend to update FdtLib to more
> recent libfdt versions in the future), then these fixes don't belong in
> edk2 (we'd have to redo them after every update); they should be
> upstreamed to libfdt.

The EmbeddedPkg FdtLib is superseded by the MdePkg BaseFdtLib.
My intent is to drop it, but I didn't get around to doing the rework
of existing users in time for the soft freeze.

/
     Leif




-=-=-=-=-=-=-=-=-=-=-=-
Groups.io Links: You receive all messages sent to this group.
View/Reply Online (#115271): https://edk2.groups.io/g/devel/message/115271
Mute This Topic: https://groups.io/mt/104200931/7686176
Group Owner: devel+owner@edk2.groups.io
Unsubscribe: https://edk2.groups.io/g/devel/unsub [rebecca@openfw.io]
-=-=-=-=-=-=-=-=-=-=-=-



      reply	other threads:[~2024-02-08 17:58 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2024-02-06 16:23 [edk2-devel] [edk2 Patch 0/1] Fix compiler errors due to implicit conversions Jayaprakash, N
2024-02-06 16:23 ` [edk2-devel] [edk2 Patch 1/1] EmbeddedPkg: " Jayaprakash, N
2024-02-07 19:59   ` Laszlo Ersek
2024-02-08 17:58     ` Leif Lindholm [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-list from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=bcc5972b-292a-454c-9b24-843c3f8bcc74@quicinc.com \
    --to=devel@edk2.groups.io \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox