From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received-SPF: None (no SPF record) identity=mailfrom; client-ip=134.134.136.24; helo=mga09.intel.com; envelope-from=ryszard.knop@linux.intel.com; receiver=edk2-devel@lists.01.org Received: from mga09.intel.com (mga09.intel.com [134.134.136.24]) (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 5701521BADAB6 for ; Wed, 30 Jan 2019 08:06:56 -0800 (PST) X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from orsmga007.jf.intel.com ([10.7.209.58]) by orsmga102.jf.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 30 Jan 2019 08:06:55 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.56,541,1539673200"; d="scan'208";a="111064811" Received: from linux.intel.com ([10.54.29.200]) by orsmga007.jf.intel.com with ESMTP; 30 Jan 2019 08:06:55 -0800 Received: from torii (torii.igk.intel.com [10.102.24.20]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by linux.intel.com (Postfix) with ESMTPS id 0D1CA580297; Wed, 30 Jan 2019 08:06:53 -0800 (PST) Message-ID: From: Ryszard Knop To: Ard Biesheuvel , edk2-devel@lists.01.org Cc: kamil.kacperski@intel.com, eric.jin@intel.com, pawel.orlowski@intel.com, michael.d.kinney@intel.com, harry.l.hsiung@intel.com Date: Wed, 30 Jan 2019 17:06:51 +0100 In-Reply-To: <20181115023353.20159-10-ard.biesheuvel@linaro.org> References: <20181115023353.20159-1-ard.biesheuvel@linaro.org> <20181115023353.20159-10-ard.biesheuvel@linaro.org> Organization: Intel Corporation User-Agent: Evolution 3.30.4 Mime-Version: 1.0 Subject: Re: [PATCH edk2-staging 09/20] IntelUndiPkg/XGigUndiDxe: fix incorrect use of CPP token pasting X-BeenThere: edk2-devel@lists.01.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: EDK II Development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 30 Jan 2019 16:06:56 -0000 X-List-Received-Date: Wed, 30 Jan 2019 16:06:56 -0000 X-List-Received-Date: Wed, 30 Jan 2019 16:06:56 -0000 X-List-Received-Date: Wed, 30 Jan 2019 16:06:56 -0000 X-List-Received-Date: Wed, 30 Jan 2019 16:06:56 -0000 X-List-Received-Date: Wed, 30 Jan 2019 16:06:56 -0000 X-List-Received-Date: Wed, 30 Jan 2019 16:06:56 -0000 X-List-Received-Date: Wed, 30 Jan 2019 16:06:56 -0000 X-List-Received-Date: Wed, 30 Jan 2019 16:06:56 -0000 X-List-Received-Date: Wed, 30 Jan 2019 16:06:56 -0000 X-List-Received-Date: Wed, 30 Jan 2019 16:06:56 -0000 X-List-Received-Date: Wed, 30 Jan 2019 16:06:56 -0000 X-List-Received-Date: Wed, 30 Jan 2019 16:06:56 -0000 X-List-Received-Date: Wed, 30 Jan 2019 16:06:56 -0000 X-List-Received-Date: Wed, 30 Jan 2019 16:06:56 -0000 X-List-Received-Date: Wed, 30 Jan 2019 16:06:56 -0000 X-List-Received-Date: Wed, 30 Jan 2019 16:06:56 -0000 X-List-Received-Date: Wed, 30 Jan 2019 16:06:56 -0000 X-List-Received-Date: Wed, 30 Jan 2019 16:06:56 -0000 X-List-Received-Date: Wed, 30 Jan 2019 16:06:56 -0000 X-List-Received-Date: Wed, 30 Jan 2019 16:06:56 -0000 X-List-Received-Date: Wed, 30 Jan 2019 16:06:56 -0000 X-List-Received-Date: Wed, 30 Jan 2019 16:06:56 -0000 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 7bit Reviewed-by: Ryszard Knop On Wed, 2018-11-14 at 18:33 -0800, ard.biesheuvela wrote: > The ## CPP token pasting operator is used to paste *tokens*, which > is not the same thing as pasting arbitrary macro arguments. Since a > token cannot contain . or ) characters in the first place, using > the ## operator here is wrong and unnecessary, so just remove it. > > Contributed-under: TianoCore Contribution Agreement 1.1 > Signed-off-by: Ard Biesheuvel > --- > IntelUndiPkg/XGigUndiDxe/NVDataStruc.h | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/IntelUndiPkg/XGigUndiDxe/NVDataStruc.h > b/IntelUndiPkg/XGigUndiDxe/NVDataStruc.h > index 63dd841277ab..c78d26da7869 100644 > --- a/IntelUndiPkg/XGigUndiDxe/NVDataStruc.h > +++ b/IntelUndiPkg/XGigUndiDxe/NVDataStruc.h > @@ -113,7 +113,7 @@ typedef struct { > > @return Width of given field is returned > **/ > -#define UNDI_CONFIG_WIDTH(Field) sizeof (UndiPrivateData- > >Configuration. ## Field ## ) > +#define UNDI_CONFIG_WIDTH(Field) sizeof (UndiPrivateData- > >Configuration.Field) > > // General parameters > #define QUESTION_ID_EFI_DRIVER_VER 0x11 > 00