From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mga01.intel.com (mga01.intel.com [192.55.52.88]) (using TLSv1 with cipher CAMELLIA256-SHA (256/256 bits)) (No client certificate requested) by ml01.01.org (Postfix) with ESMTPS id 67AE51A1E43 for ; Wed, 26 Oct 2016 19:31:13 -0700 (PDT) Received: from fmsmga004.fm.intel.com ([10.253.24.48]) by fmsmga101.fm.intel.com with ESMTP; 26 Oct 2016 19:31:13 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.31,404,1473145200"; d="scan'208";a="184333227" Received: from fmsmsx106.amr.corp.intel.com ([10.18.124.204]) by fmsmga004.fm.intel.com with ESMTP; 26 Oct 2016 19:31:13 -0700 Received: from fmsmsx116.amr.corp.intel.com (10.18.116.20) by FMSMSX106.amr.corp.intel.com (10.18.124.204) with Microsoft SMTP Server (TLS) id 14.3.248.2; Wed, 26 Oct 2016 19:31:12 -0700 Received: from shsmsx104.ccr.corp.intel.com (10.239.4.70) by fmsmsx116.amr.corp.intel.com (10.18.116.20) with Microsoft SMTP Server (TLS) id 14.3.248.2; Wed, 26 Oct 2016 19:31:12 -0700 Received: from shsmsx103.ccr.corp.intel.com ([169.254.4.139]) by SHSMSX104.ccr.corp.intel.com ([169.254.5.209]) with mapi id 14.03.0248.002; Thu, 27 Oct 2016 10:31:10 +0800 From: "Wu, Jiaxin" To: Laszlo Ersek , edk2-devel-01 CC: "Fu, Siyuan" Thread-Topic: [PATCH 07/47] NetworkPkg/IpsecConfig: remove module-local ARRAY_SIZE macro Thread-Index: AQHSL7vzJZ1zOabnqk2+y0o0aHFN/aC7lNbQ Date: Thu, 27 Oct 2016 02:31:09 +0000 Message-ID: <895558F6EA4E3B41AC93A00D163B72741389F557@SHSMSX103.ccr.corp.intel.com> References: <20161026190504.9888-1-lersek@redhat.com> <20161026190504.9888-8-lersek@redhat.com> In-Reply-To: <20161026190504.9888-8-lersek@redhat.com> Accept-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-titus-metadata-40: eyJDYXRlZ29yeUxhYmVscyI6IiIsIk1ldGFkYXRhIjp7Im5zIjoiaHR0cDpcL1wvd3d3LnRpdHVzLmNvbVwvbnNcL0ludGVsMyIsImlkIjoiY2Y3ZmQ1NWItMDI3ZC00NWExLTlmMWYtZjMzN2E3MGQ4MTI2IiwicHJvcHMiOlt7Im4iOiJDVFBDbGFzc2lmaWNhdGlvbiIsInZhbHMiOlt7InZhbHVlIjoiQ1RQX0lDIn1dfV19LCJTdWJqZWN0TGFiZWxzIjpbXSwiVE1DVmVyc2lvbiI6IjE1LjkuNi42IiwiVHJ1c3RlZExhYmVsSGFzaCI6IjdCVGF6WldvdFNYRWZkMExZXC9lTkVTM3F6elZ4QlBRSkNKVllhUGZzZjg4PSJ9 x-ctpclassification: CTP_IC x-originating-ip: [10.239.127.40] MIME-Version: 1.0 Subject: Re: [PATCH 07/47] NetworkPkg/IpsecConfig: remove module-local ARRAY_SIZE macro X-BeenThere: edk2-devel@lists.01.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: EDK II Development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 27 Oct 2016 02:31:13 -0000 Content-Language: en-US Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable Reviewed-By: Wu Jiaxin Best Regards! Jiaxin > -----Original Message----- > From: Laszlo Ersek [mailto:lersek@redhat.com] > Sent: Thursday, October 27, 2016 3:04 AM > To: edk2-devel-01 > Cc: Wu, Jiaxin ; Fu, Siyuan > Subject: [PATCH 07/47] NetworkPkg/IpsecConfig: remove module-local > ARRAY_SIZE macro >=20 > Rely on the central macro definition from "MdePkg/Include/Base.h" instead= . >=20 > Cc: Jiaxin Wu > Cc: Siyuan Fu > Contributed-under: TianoCore Contribution Agreement 1.0 > Signed-off-by: Laszlo Ersek > --- > NetworkPkg/Application/IpsecConfig/IpSecConfig.h | 4 ---- > 1 file changed, 4 deletions(-) >=20 > diff --git a/NetworkPkg/Application/IpsecConfig/IpSecConfig.h > b/NetworkPkg/Application/IpsecConfig/IpSecConfig.h > index 79a436a7b3b2..95bb6961136d 100644 > --- a/NetworkPkg/Application/IpsecConfig/IpSecConfig.h > +++ b/NetworkPkg/Application/IpsecConfig/IpSecConfig.h > @@ -27,10 +27,6 @@ >=20 > #include >=20 > -#ifndef ARRAY_SIZE > -#define ARRAY_SIZE(x) (sizeof(x) / sizeof(x[0])) -#endif > - > #define IPSECCONFIG_STATUS_NAME L"IpSecStatus" >=20 > #define BIT(x) (UINT32) (1 << (x)) > -- > 2.9.2 >=20