public inbox for devel@edk2.groups.io
 help / color / mirror / Atom feed
From: "Laszlo Ersek" <lersek@redhat.com>
To: "Ni, Ray" <ray.ni@intel.com>,
	"devel@edk2.groups.io" <devel@edk2.groups.io>,
	"lichao@loongson.cn" <lichao@loongson.cn>
Cc: "Kinney, Michael D" <michael.d.kinney@intel.com>,
	Liming Gao <gaoliming@byosoft.com.cn>,
	"Liu, Zhiguang" <zhiguang.liu@intel.com>,
	"Dong, Eric" <eric.dong@intel.com>,
	"Kumar, Rahul R" <rahul.r.kumar@intel.com>,
	Gerd Hoffmann <kraxel@redhat.com>,
	Leif Lindholm <quic_llindhol@quicinc.com>,
	Ard Biesheuvel <ardb+tianocore@kernel.org>,
	Abner Chang <abner.chang@amd.com>,
	Daniel Schaefer <git@danielschaefer.me>,
	Sami Mujawar <sami.mujawar@arm.com>,
	"Yao, Jiewen" <jiewen.yao@intel.com>,
	"Justen, Jordan L" <jordan.l.justen@intel.com>,
	"Warkentin, Andrei" <andrei.warkentin@intel.com>,
	Sunil V L <sunilvl@ventanamicro.com>,
	Bibo Mao <maobibo@loongson.cn>
Subject: Re: [edk2-devel] [PATCH v8 00/37] Enable LoongArch virtual machine in edk2
Date: Fri, 2 Feb 2024 15:10:14 +0100	[thread overview]
Message-ID: <d3d292e8-05a0-1f0c-54b0-e7e69cee7bb6@redhat.com> (raw)
In-Reply-To: <MN6PR11MB8244BB4D204732B3D737AE368C422@MN6PR11MB8244.namprd11.prod.outlook.com>

On 2/2/24 04:36, Ni, Ray wrote:
> Chao,
> 
> When I review the detailed changes, I found a generic issue:
> 
>   Some changes to INF files are not necessary. They are just reordering
> the source files or libs within the same section.

I'm myself a bit torn about this. I generally like to keep entries in
[LibraryClasses] etc lexicographically sorted. However, it indeed
becomes confusing when a lib class is added or removed *together* with
sorting the entire list afresh. I think such changes are worth splitting
in to: first, sort the entries (a no-op patch), then implement the change.

> 
>   I hope that you could avoid these unnecessary changes.

I wouldn't necessarily call them unnecessary. I think sorting / cleanups
are worthwhile, but they should be well separated from the other types
of changes.

>   Another point is please make sure do not add unnecessary lib
> dependencies for x86 (e.g.: SafeIntLib). That might cause
>   some platform build breaks due to not including the SafeIntLib in DSC.

Can you clarify?

SafeIntLib is generally a good idea to *use* in C code, and when one
uses it, it must be listed in [LibraryClasses]. I agree that, when we
extend an INF file with a new dependency, we should grep edk2 (at least)
for platform DSCs that refer to that INF, and see if we have to resolve
the lib class.

Of course, when the C code doesn't actually consume SafeIntLib APIs,
then listing SafeIntLib in the INF file is just a bug.

Laszlo



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



  reply	other threads:[~2024-02-02 14:10 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <17ADD1C0483F8D84.24595@groups.io>
2024-01-26  6:43 ` [edk2-devel] [PATCH v8 00/37] Enable LoongArch virtual machine in edk2 Chao Li
     [not found] ` <17ADD29C1061FE55.11113@groups.io>
2024-02-01  8:30   ` Chao Li
2024-02-01 22:23     ` Laszlo Ersek
2024-02-02  2:50       ` Chao Li
2024-02-02  3:36     ` Ni, Ray
2024-02-02 14:10       ` Laszlo Ersek [this message]
2024-01-26  6:27 Chao Li

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=d3d292e8-05a0-1f0c-54b0-e7e69cee7bb6@redhat.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