From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received-SPF: Pass (sender SPF authorized) identity=mailfrom; client-ip=134.134.136.20; helo=mga02.intel.com; envelope-from=liming.gao@intel.com; receiver=edk2-devel@lists.01.org Received: from mga02.intel.com (mga02.intel.com [134.134.136.20]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ml01.01.org (Postfix) with ESMTPS id AA2D2224511BD for ; Thu, 1 Mar 2018 03:48:25 -0800 (PST) X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from orsmga005.jf.intel.com ([10.7.209.41]) by orsmga101.jf.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 01 Mar 2018 03:54:33 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.47,408,1515484800"; d="scan'208";a="204707269" Received: from fmsmsx104.amr.corp.intel.com ([10.18.124.202]) by orsmga005.jf.intel.com with ESMTP; 01 Mar 2018 03:54:33 -0800 Received: from shsmsx103.ccr.corp.intel.com (10.239.4.69) by fmsmsx104.amr.corp.intel.com (10.18.124.202) with Microsoft SMTP Server (TLS) id 14.3.319.2; Thu, 1 Mar 2018 03:54:32 -0800 Received: from shsmsx104.ccr.corp.intel.com ([169.254.5.125]) by SHSMSX103.ccr.corp.intel.com ([169.254.4.116]) with mapi id 14.03.0319.002; Thu, 1 Mar 2018 19:54:31 +0800 From: "Gao, Liming" To: "Zhu, Yonghong" , "edk2-devel@lists.01.org" Thread-Topic: [edk2] [Patch] BaseTools: update DNS_DEVICE_PATH/URI_DEVICE_PATH definition Thread-Index: AQHTsTW+g4xiOFyztUiJ/l52sPkZDaO7RatQ Date: Thu, 1 Mar 2018 11:54:30 +0000 Message-ID: <4A89E2EF3DFEDB4C8BFDE51014F606A14E1D5954@SHSMSX104.ccr.corp.intel.com> References: <1519892227-12196-1-git-send-email-yonghong.zhu@intel.com> In-Reply-To: <1519892227-12196-1-git-send-email-yonghong.zhu@intel.com> Accept-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: dlp-product: dlpe-windows dlp-version: 11.0.0.116 dlp-reaction: no-action x-originating-ip: [10.239.127.40] MIME-Version: 1.0 Subject: Re: [Patch] BaseTools: update DNS_DEVICE_PATH/URI_DEVICE_PATH definition X-BeenThere: edk2-devel@lists.01.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: EDK II Development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 01 Mar 2018 11:48:26 -0000 Content-Language: en-US Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable Reviewed-by: Liming Gao > -----Original Message----- > From: edk2-devel [mailto:edk2-devel-bounces@lists.01.org] On Behalf Of Yo= nghong Zhu > Sent: Thursday, March 1, 2018 4:17 PM > To: edk2-devel@lists.01.org > Subject: [edk2] [Patch] BaseTools: update DNS_DEVICE_PATH/URI_DEVICE_PATH= definition >=20 > Update this two definition to align with MdePkg. >=20 > Contributed-under: TianoCore Contribution Agreement 1.1 > Signed-off-by: Yonghong Zhu > --- > BaseTools/Source/C/Include/Protocol/DevicePath.h | 13 ++++++++++--- > 1 file changed, 10 insertions(+), 3 deletions(-) >=20 > diff --git a/BaseTools/Source/C/Include/Protocol/DevicePath.h b/BaseTools= /Source/C/Include/Protocol/DevicePath.h > index a5d8eea..68bb37e 100644 > --- a/BaseTools/Source/C/Include/Protocol/DevicePath.h > +++ b/BaseTools/Source/C/Include/Protocol/DevicePath.h > @@ -3,11 +3,11 @@ >=20 > The device path represents a programmatic path to a device, > from a software point of view. The path must persist from boot to boot= , so > it can not contain things like PCI bus numbers that change from boot t= o boot. >=20 > -Copyright (c) 2017, Intel Corporation. All rights reserved.
> +Copyright (c) 2017 - 2018, Intel Corporation. All rights reserved.
> This program and the accompanying materials are licensed and made availa= ble under > the terms and conditions of the BSD License that accompanies this distri= bution. > The full text of the license may be found at > http://opensource.org/licenses/bsd-license.php. >=20 > @@ -36,10 +36,17 @@ WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EI= THER EXPRESS OR IMPLIED. > /// > #define DEVICE_PATH_PROTOCOL EFI_DEVICE_PATH_PROTOCOL_GUID >=20 > #pragma pack(1) >=20 > +#if defined(_MSC_EXTENSIONS) > +// > +// Disable warning when last field of data structure is a zero sized arr= ay. > +// > +#pragma warning ( disable : 4200 ) > +#endif > + > /** > This protocol can be used on any device handle to obtain generic path/= location > information concerning the physical device or logical device. If the h= andle does > not logically map to a physical device, the handle may not necessarily= support > the device path protocol. The device path describes the location of th= e device > @@ -828,11 +835,11 @@ typedef struct { > /// > UINT8 IsIPv6; > /// > /// Instance of the DNS server address. > /// > - EFI_IP_ADDRESS DnsServerIp[1024]; > + EFI_IP_ADDRESS DnsServerIp[]; > } DNS_DEVICE_PATH; >=20 > /// > /// Uniform Resource Identifiers (URI) Device Path SubType > /// > @@ -840,11 +847,11 @@ typedef struct { > typedef struct { > EFI_DEVICE_PATH_PROTOCOL Header; > /// > /// Instance of the URI pursuant to RFC 3986. > /// > - CHAR8 Uri[1024]; > + CHAR8 Uri[]; > } URI_DEVICE_PATH; >=20 > /// > /// Universal Flash Storage (UFS) Device Path SubType. > /// > -- > 2.6.1.windows.1 >=20 > _______________________________________________ > edk2-devel mailing list > edk2-devel@lists.01.org > https://lists.01.org/mailman/listinfo/edk2-devel