public inbox for devel@edk2.groups.io
 help / color / mirror / Atom feed
From: "Michael D Kinney" <michael.d.kinney@intel.com>
To: "devel@edk2.groups.io" <devel@edk2.groups.io>,
	"sami.mujawar@arm.com" <sami.mujawar@arm.com>,
	"Kinney, Michael D" <michael.d.kinney@intel.com>
Cc: Ard Biesheuvel <ardb+tianocore@kernel.org>,
	"Yao, Jiewen" <jiewen.yao@intel.com>,
	Supreeth Venkatesh <supreeth.venkatesh@arm.com>,
	"Sean Brogan" <sean.brogan@microsoft.com>,
	Bret Barkelew <Bret.Barkelew@microsoft.com>,
	Liming Gao <gaoliming@byosoft.com.cn>,
	"Michael Kubacki" <michael.kubacki@microsoft.com>,
	nd <nd@arm.com>
Subject: Re: [edk2-devel] [Patch 10/12] StandaloneMmPkg: Update YAML to ignore specific ECC files/errors
Date: Wed, 24 Nov 2021 23:27:11 +0000	[thread overview]
Message-ID: <CO1PR11MB4929D21EB5A2B64CD3EEF95ED2619@CO1PR11MB4929.namprd11.prod.outlook.com> (raw)
In-Reply-To: <22d17fb9-3731-2f28-ee7f-f70c8a2fb5e5@arm.com>



> -----Original Message-----
> From: devel@edk2.groups.io <devel@edk2.groups.io> On Behalf Of Sami Mujawar
> Sent: Wednesday, November 24, 2021 2:55 AM
> To: Kinney, Michael D <michael.d.kinney@intel.com>; devel@edk2.groups.io
> Cc: Ard Biesheuvel <ardb+tianocore@kernel.org>; Yao, Jiewen <jiewen.yao@intel.com>; Supreeth Venkatesh
> <supreeth.venkatesh@arm.com>; Sean Brogan <sean.brogan@microsoft.com>; Bret Barkelew <Bret.Barkelew@microsoft.com>; Liming
> Gao <gaoliming@byosoft.com.cn>; Michael Kubacki <michael.kubacki@microsoft.com>; nd <nd@arm.com>
> Subject: Re: [edk2-devel] [Patch 10/12] StandaloneMmPkg: Update YAML to ignore specific ECC files/errors
> 
> Hi Mike,
> 
> 
> On 23/11/2021 09:21 PM, Michael D Kinney wrote:
> > +    "EccCheck": {
> > +        ## Exception sample looks like below:
> > +        ## "ExceptionList": [
> > +        ##     "<ErrorID>", "<KeyWord>"
> > +        ## ]
> > +        "ExceptionList": [
> > +            "4002", "HobConstructor"
> > +        ],
> 
> I noticed there are other ECC errors with ID 4002 in StandaloneMmPkg.
> 
> e.g.
> 
> edk2\StandaloneMmPkg\Library\StandaloneMmCoreHobLib\Arm\StandaloneMmCoreHobLib.c(24):
> [4002]Function header doesn't exist Function [CreateHob] has NO comment
> immediately preceding it.
> edk2\StandaloneMmPkg\Library\StandaloneMmCoreHobLib\Arm\StandaloneMmCoreHobLibInternal.c(24):
> [4002]Function header doesn't exist Function [HobConstructor] has NO
> comment immediately preceding it.
> edk2\StandaloneMmPkg\Library\StandaloneMmHobLib\StandaloneMmHobLib.c(247):
> [4002]Function header doesn't exist Function [CreateHob] has NO comment
> immediately preceding it.
> edk2\StandaloneMmPkg\Library\StandaloneMmPeCoffExtraActionLib\AArch64\StandaloneMmPeCoffExtraActionLib.c(26):
> [4002]Function header doesn't exist Function [UpdatePeCoffPermissions]
> has NO comment immediately preceding it.
> 
> I am trying to undestand how the ExceptionList works. Would Keyword =
> HobConstructor ignore the other errors too?

Good question.  EccCheck in EDK II CI only checks lines of files that have been
added or changed.  So if these lines were not modified by uncrustify, then they
would not block the commit, even if they have ECC issues.

> 
> We will look into getting these issues fixed. However, to unblock this
> patch can proceed.

Thank you.  Yes.  That is the intention here.  Temporarily use YAML file
to get EccCheck to pass, then the work with package owners to update code 
so these exceptions can be removed.

> 
> Reviewed-by: Sami Mujawar <sami.mujawar@arm.com>
> 
> Regards,
> 
> Sami Mujawar
> 
> 
> 
> 
> 


  reply	other threads:[~2021-11-24 23:27 UTC|newest]

Thread overview: 33+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-11-23 21:21 [Patch 00/12] Update Package YAML to ignore specific ECC files/errors Michael D Kinney
2021-11-23 21:21 ` [Patch 01/12] ArmPkg: Update " Michael D Kinney
2021-11-24 10:35   ` [edk2-devel] " Sami Mujawar
2021-11-24 11:57   ` Leif Lindholm
2021-11-23 21:21 ` [Patch 02/12] ArmPlatformPkg: " Michael D Kinney
2021-11-24 10:36   ` [edk2-devel] " Sami Mujawar
2021-11-24 11:58   ` Leif Lindholm
2021-12-01 14:33   ` PierreGondois
2021-11-23 21:21 ` [Patch 03/12] ArmVirtPkg: " Michael D Kinney
2021-11-24 10:40   ` Sami Mujawar
2021-11-24 11:58   ` Leif Lindholm
2021-11-23 21:21 ` [Patch 04/12] CryptoPkg: " Michael D Kinney
     [not found]   ` <CO1PR11MB4929B441ED557EE00D2596BCD2639@CO1PR11MB4929.namprd11.prod.outlook.com>
2021-11-27  1:31     ` [edk2-devel] " Yao, Jiewen
2021-11-28  7:33   ` Wang, Jian J
2021-11-23 21:21 ` [Patch 05/12] EmulatorPkg: " Michael D Kinney
2021-11-30  5:05   ` Ni, Ray
2021-11-23 21:21 ` [Patch 06/12] MdeModulePkg: " Michael D Kinney
2021-11-27  1:40   ` 回复: [edk2-devel] " gaoliming
2021-11-23 21:21 ` [Patch 07/12] MdePkg: " Michael D Kinney
2021-11-27  1:42   ` 回复: [edk2-devel] " gaoliming
2021-11-23 21:21 ` [Patch 08/12] SecurityPkg: " Michael D Kinney
2021-11-30  6:03   ` Qi Zhang
2021-11-23 21:21 ` [Patch 09/12] ShellPkg: " Michael D Kinney
2021-11-24  5:41   ` Gao, Zhichao
2021-11-30  5:05   ` Ni, Ray
2021-11-23 21:21 ` [Patch 10/12] StandaloneMmPkg: " Michael D Kinney
2021-11-24 10:55   ` Sami Mujawar
2021-11-24 23:27     ` Michael D Kinney [this message]
2021-11-23 21:21 ` [Patch 11/12] UefiPayloadPkg: " Michael D Kinney
2021-11-29 16:30   ` Guo Dong
2021-11-23 21:21 ` [Patch 12/12] UnitTestFrameworkPkg: " Michael D Kinney
2021-11-27  2:19   ` [EXTERNAL] " Bret Barkelew
2021-11-23 23:28 ` [Patch 00/12] Update Package " Ard Biesheuvel

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=CO1PR11MB4929D21EB5A2B64CD3EEF95ED2619@CO1PR11MB4929.namprd11.prod.outlook.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