From: "Dandan Bi" <dandan.bi@intel.com>
To: "devel@edk2.groups.io" <devel@edk2.groups.io>,
"Kubacki, Michael A" <michael.a.kubacki@intel.com>
Cc: "Chaganty, Rangasai V" <rangasai.v.chaganty@intel.com>,
"Gao, Liming" <liming.gao@intel.com>
Subject: Re: [edk2-devel] [edk2-platforms][PATCH V1 1/1] AdvancedFeaturePkg/Ipmi: Fix X64 GCC Build Failures
Date: Mon, 23 Sep 2019 01:28:59 +0000 [thread overview]
Message-ID: <3C0D5C461C9E904E8F62152F6274C0BB40C5E6F9@SHSMSX104.ccr.corp.intel.com> (raw)
In-Reply-To: <20190919175419.23204-1-michael.a.kubacki@intel.com>
Reviewed-by: Dandan Bi <dandan.bi@intel.com>
Thanks,
Dandan
> -----Original Message-----
> From: devel@edk2.groups.io [mailto:devel@edk2.groups.io] On Behalf Of
> Kubacki, Michael A
> Sent: Friday, September 20, 2019 1:54 AM
> To: devel@edk2.groups.io
> Cc: Bi, Dandan <dandan.bi@intel.com>; Chaganty, Rangasai V
> <rangasai.v.chaganty@intel.com>; Gao, Liming <liming.gao@intel.com>
> Subject: [edk2-devel] [edk2-platforms][PATCH V1 1/1]
> AdvancedFeaturePkg/Ipmi: Fix X64 GCC Build Failures
>
> REF:https://bugzilla.tianocore.org/show_bug.cgi?id=2204
>
> These build failures can be reproduced simply by building the
> AdvancedFeaturePkg.dsc file in GCC5 for X64 architecture. To build the whole
> package DSC (not pull individual features into other packages), set the
> WORKSPACE variable to the edk2 directory in the workspace as is done by
> executing edksetup.sh then create the PACKAGES_PATH variable and add
> the Platform/Intel and Silicon/Intel directories to the variable value. Then
> start the build of AdvancedFeaturePkg.dsc:
> 'build -p AdvancedFeaturePkg/AdvancedFeaturePkg.dsc -a X64'
>
> This change adds EFIAPI to the following function declarations so they are
> consistent with the declaration for module entry points.
> * BmcElog.c - InitializeBmcElogLayer ()
> * FrbPei.c - InitializeFrbPei ()
> * IpmiFru.c - InitializeFru ()
>
> All future contributions to AdvancedFeaturePkg must successfully build in
> GCC after this change.
>
> Cc: Dandan Bi <dandan.bi@intel.com>
> Cc: Sai Chaganty <rangasai.v.chaganty@intel.com>
> Cc: Liming Gao <liming.gao@intel.com>
> Signed-off-by: Michael Kubacki <michael.a.kubacki@intel.com>
> ---
> Platform/Intel/AdvancedFeaturePkg/Ipmi/BmcElog/BmcElog.c | 3 ++-
> Platform/Intel/AdvancedFeaturePkg/Ipmi/Frb/FrbPei.c | 3 ++-
> Platform/Intel/AdvancedFeaturePkg/Ipmi/IpmiFru/IpmiFru.c | 3 ++-
> 3 files changed, 6 insertions(+), 3 deletions(-)
>
> diff --git a/Platform/Intel/AdvancedFeaturePkg/Ipmi/BmcElog/BmcElog.c
> b/Platform/Intel/AdvancedFeaturePkg/Ipmi/BmcElog/BmcElog.c
> index e214f1a18b..a6d075b19c 100644
> --- a/Platform/Intel/AdvancedFeaturePkg/Ipmi/BmcElog/BmcElog.c
> +++ b/Platform/Intel/AdvancedFeaturePkg/Ipmi/BmcElog/BmcElog.c
> @@ -1,7 +1,7 @@
> /** @file
> BMC Event Log functions.
>
> -Copyright (c) 2018, Intel Corporation. All rights reserved.<BR>
> +Copyright (c) 2018 - 2019, Intel Corporation. All rights reserved.<BR>
> SPDX-License-Identifier: BSD-2-Clause-Patent
>
> **/
> @@ -171,6 +171,7 @@ Returns:
> }
>
> EFI_STATUS
> +EFIAPI
> InitializeBmcElogLayer (
> IN EFI_HANDLE ImageHandle,
> IN EFI_SYSTEM_TABLE *SystemTable
> diff --git a/Platform/Intel/AdvancedFeaturePkg/Ipmi/Frb/FrbPei.c
> b/Platform/Intel/AdvancedFeaturePkg/Ipmi/Frb/FrbPei.c
> index 962cd7cc9b..5d33df0103 100644
> --- a/Platform/Intel/AdvancedFeaturePkg/Ipmi/Frb/FrbPei.c
> +++ b/Platform/Intel/AdvancedFeaturePkg/Ipmi/Frb/FrbPei.c
> @@ -1,7 +1,7 @@
> /** @file
> IPMI FRB PEIM.
>
> -Copyright (c) 2018, Intel Corporation. All rights reserved.<BR>
> +Copyright (c) 2018 - 2019, Intel Corporation. All rights reserved.<BR>
> SPDX-License-Identifier: BSD-2-Clause-Patent
>
> **/
> @@ -51,6 +51,7 @@ SetWatchDogTimer (
> }
>
> EFI_STATUS
> +EFIAPI
> InitializeFrbPei (
> IN EFI_PEI_FILE_HANDLE FileHandle,
> IN CONST EFI_PEI_SERVICES **PeiServices
> diff --git a/Platform/Intel/AdvancedFeaturePkg/Ipmi/IpmiFru/IpmiFru.c
> b/Platform/Intel/AdvancedFeaturePkg/Ipmi/IpmiFru/IpmiFru.c
> index 663983fd68..58e1fb4d7e 100644
> --- a/Platform/Intel/AdvancedFeaturePkg/Ipmi/IpmiFru/IpmiFru.c
> +++ b/Platform/Intel/AdvancedFeaturePkg/Ipmi/IpmiFru/IpmiFru.c
> @@ -1,7 +1,7 @@
> /** @file
> IPMI FRU Driver.
>
> -Copyright (c) 2018, Intel Corporation. All rights reserved.<BR>
> +Copyright (c) 2018 - 2019, Intel Corporation. All rights reserved.<BR>
> SPDX-License-Identifier: BSD-2-Clause-Patent
>
> **/
> @@ -15,6 +15,7 @@ SPDX-License-Identifier: BSD-2-Clause-Patent #include
> <IndustryStandard/Ipmi.h>
>
> EFI_STATUS
> +EFIAPI
> InitializeFru (
> IN EFI_HANDLE ImageHandle,
> IN EFI_SYSTEM_TABLE *SystemTable
> --
> 2.16.2.windows.1
>
>
>
prev parent reply other threads:[~2019-09-23 1:29 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2019-09-19 17:54 [edk2-platforms][PATCH V1 1/1] AdvancedFeaturePkg/Ipmi: Fix X64 GCC Build Failures Kubacki, Michael A
2019-09-19 21:45 ` Chaganty, Rangasai V
2019-09-23 1:28 ` Dandan Bi [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=3C0D5C461C9E904E8F62152F6274C0BB40C5E6F9@SHSMSX104.ccr.corp.intel.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