From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received-SPF: Pass (sender SPF authorized) identity=mailfrom; client-ip=2607:f8b0:4864:20::442; helo=mail-pf1-x442.google.com; envelope-from=ard.biesheuvel@linaro.org; receiver=edk2-devel@lists.01.org Received: from mail-pf1-x442.google.com (mail-pf1-x442.google.com [IPv6:2607:f8b0:4864:20::442]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by ml01.01.org (Postfix) with ESMTPS id 031A821191722 for ; Wed, 14 Nov 2018 18:34:13 -0800 (PST) Received: by mail-pf1-x442.google.com with SMTP id 64so4423668pfr.9 for ; Wed, 14 Nov 2018 18:34:12 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=KsEhS3ptJ5jiVnef+5MF6ImG/AsH5XIEwtJ6e65SX9c=; b=Kp/GH0Yt9fIIHjfewvnDP5tc2G1URiji79ZHtfomjZXnJcRO7yhPzHx8K9tZgI4Aq2 22F7ce9T2UCxeCq5ZMk5JuKsMnngY5hkGmEhe4vQwQedw0Me24arztHS1P9aItgFjsFe tJZ35fscgHVkG73PecGo+8Bk7QLV2TWpaBX+0= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=KsEhS3ptJ5jiVnef+5MF6ImG/AsH5XIEwtJ6e65SX9c=; b=htOQxs6e8bmEoPRnaEpLs4mCUrJC0u5+Tr6tTi8JURp0BbSq5yr1EjGX51F4+DbwYB n8G2YiZbCwQglzO3TWfJWcl2tvRzFsCK/OjfU8ngI137rWZl14FRciOgGxr1T2rjakSC VLarSP3wyOoAuvRLdk5IJwxfdmw6q22Ao2oLInK+GFmhfFuHjb6mtZISQFeIjjszmBQc ZTd1L4sez1B2fwMsD4AkjfTQu6vWlJgFoUY7ipKl3hqdnMkAAgeX+ioejy6mls9pOZrp hS5h1lMPmPkQz7Tr+IvctfDv42O1xx+573MMbC2FcTdPaUxVo9a1fo4DlEQPrBQIc2gz JNtQ== X-Gm-Message-State: AGRZ1gIB6fwR2DUBhUbOYwrgaON1Q8HEmuVlCtMddYzvbHyeaos1U4+4 +3G2NxP2nwBgJyO1DAHLidYyfTWBihnoTw== X-Google-Smtp-Source: AJdET5c/VQY3BtrDUeGOY7/K1KdYqX5wv0trVTfH90vUc3wAxj3dFy5HBqlCfPIG/tltTllwiETGIg== X-Received: by 2002:a63:2d46:: with SMTP id t67mr4215538pgt.140.1542249252448; Wed, 14 Nov 2018 18:34:12 -0800 (PST) Received: from mba13.psav.com ([64.114.255.97]) by smtp.gmail.com with ESMTPSA id v185-v6sm27323393pfv.48.2018.11.14.18.34.11 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 14 Nov 2018 18:34:11 -0800 (PST) From: Ard Biesheuvel To: edk2-devel@lists.01.org Cc: leif.lindholm@linaro.org, maciej.rabeda@intel.com, kamil.kacperski@intel.com, pawel.orlowski@intel.com, philmd@redhat.com, michael.d.kinney@intel.com, harry.l.hsiung@intel.com, eric.jin@intel.com, Ard Biesheuvel Date: Wed, 14 Nov 2018 18:33:42 -0800 Message-Id: <20181115023353.20159-10-ard.biesheuvel@linaro.org> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20181115023353.20159-1-ard.biesheuvel@linaro.org> References: <20181115023353.20159-1-ard.biesheuvel@linaro.org> Subject: [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: Thu, 15 Nov 2018 02:34:13 -0000 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 0x1100 -- 2.17.1