From patchwork Thu Nov 15 02:33:53 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ard Biesheuvel X-Patchwork-Id: 151157 Delivered-To: patch@linaro.org Received: by 2002:a2e:299d:0:0:0:0:0 with SMTP id p29-v6csp6454261ljp; Wed, 14 Nov 2018 18:35:33 -0800 (PST) X-Google-Smtp-Source: AJdET5edJVy2cQk82l7CwaDvpnVRF8VQo08NxIQWBYnBCQ8BCPexy9nEFFS6LXCiKnr/pbDfJlfm X-Received: by 2002:aa7:86d3:: with SMTP id h19-v6mr4480605pfo.225.1542249333221; Wed, 14 Nov 2018 18:35:33 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1542249333; cv=none; d=google.com; s=arc-20160816; b=n5y8gKpJ//ulshyCn390bAZp2oEw+peJoNveugwKvMWKPGa6TTTCjTrDI5H/lyFfpF eJzCcLO3aJPykqly4lWVQdZLQOCYt+VGdKye/R/I7JaEbmbf/RmaGXY6skXAF7WEwheS px6lgklYNZc75hzH8hy/etnlsjbsOKP3LD2Slc2Pj6chBEBoEJu7hdyAaxY+msa87ZLz 921JoYIZvAcGxIJyu5Tg4j9t7bsUw4nVmUMg1ohJfz5HhljTvIe5ud5M4LRFx91Cf6So mxEfDQxw6hK3Y0xack4s7LqOnVBRj1t5VxlLCcTiYw9avuLHd08uhL/7nurTunxB2bs0 UuSA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:content-transfer-encoding:mime-version:cc :list-subscribe:list-help:list-post:list-archive:list-unsubscribe :list-id:precedence:subject:references:in-reply-to:message-id:date :to:from:dkim-signature:delivered-to; bh=KjUhe1LGNcZp9RIyciffxfJaeBUo+5XlLRNe0OCHG8g=; b=aYWDzg4x0Oo91QlzcFkHdlwFP/hE46qqiJ0urFXIOFhdid0TnwySKhPHXcx2m4PrFt FjWZiU5EuxjWWYL8wyGdxLxpUbhltJEGf5Zfk1xkgWEGQ0SCO5UtE+8hN+DD5OE+NMkG wYke34bk1QFtoAHysZRlq+ITFfpEs4qMh06At/4qEW6pfq4jCWRdtBYEtTISZhaHMoxZ kRY9nCk/hKeJVIZa+ASWgBJsc/V+y1MFSfXvuffBDdGuuwW6pmzK+rzKDlK0n70sBEEg 16cS5uh9gXnK9jJAIry1sFTpjNXZ6GTVsUqeHnXunI4LLPG1Kg+U6OKzty/3xyu7zv7W d1IA== ARC-Authentication-Results: i=1; mx.google.com; dkim=neutral (body hash did not verify) header.i=@linaro.org header.s=google header.b=b2hsqn2N; spf=pass (google.com: best guess record for domain of edk2-devel-bounces@lists.01.org designates 198.145.21.10 as permitted sender) smtp.mailfrom=edk2-devel-bounces@lists.01.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from ml01.01.org (ml01.01.org. [198.145.21.10]) by mx.google.com with ESMTPS id h189-v6si8041647pfc.98.2018.11.14.18.35.32 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 14 Nov 2018 18:35:33 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of edk2-devel-bounces@lists.01.org designates 198.145.21.10 as permitted sender) client-ip=198.145.21.10; Authentication-Results: mx.google.com; dkim=neutral (body hash did not verify) header.i=@linaro.org header.s=google header.b=b2hsqn2N; spf=pass (google.com: best guess record for domain of edk2-devel-bounces@lists.01.org designates 198.145.21.10 as permitted sender) smtp.mailfrom=edk2-devel-bounces@lists.01.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: from [127.0.0.1] (localhost [IPv6:::1]) by ml01.01.org (Postfix) with ESMTP id AAA3421191750; Wed, 14 Nov 2018 18:34:27 -0800 (PST) X-Original-To: edk2-devel@lists.01.org Delivered-To: edk2-devel@lists.01.org Received-SPF: Pass (sender SPF authorized) identity=mailfrom; client-ip=2607:f8b0:4864:20::443; helo=mail-pf1-x443.google.com; envelope-from=ard.biesheuvel@linaro.org; receiver=edk2-devel@lists.01.org Received: from mail-pf1-x443.google.com (mail-pf1-x443.google.com [IPv6:2607:f8b0:4864:20::443]) (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 AEA7C2119174B for ; Wed, 14 Nov 2018 18:34:25 -0800 (PST) Received: by mail-pf1-x443.google.com with SMTP id e22-v6so8891811pfn.8 for ; Wed, 14 Nov 2018 18:34:25 -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=0IorxIYjadZ4Li2CjTz2X7oFgFQWcxWOd0aU1nkc8ps=; b=b2hsqn2Nn3NIElASyd2jpsSz1cj2U3hDx6cDAUTg4GRsWiX38kLDM1+3u+Uvel8wM3 mffsu/NPvyo7kp7qpV+Kmn+eof6z6DInVGSEN+AUb6grh68vZ9nv6gWCeXUl3BKNIx7W oskSTraZ/nOeQmPl4SieT6+rp6zk67YEAmPWY= 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=0IorxIYjadZ4Li2CjTz2X7oFgFQWcxWOd0aU1nkc8ps=; b=p5pLrUbGP/z3YP8+R1/vpWVO7CBpCnaFGRQXpJWTXdHLnbfwardAeR8rwpaqbbO4DX 4PDa6UxoLceCR9mIazyB83v8YpMU8scwfyDetMAtxo/UY5eP+e+8memfB9LmxQ1bvpfD n5GcyqNbZymBjgMThaZ2xeZhTTLbgK0d/QWvzB+Hc1Zk3F2L+8ez5L1Qa/t1k4XU5F0P JIICrQt9s8OgAEbB98k/UAeC11cMXkBcVLx+6reL/i9NvxTGotdAWRhG3PUv0qGdnId/ AB5gLYxI1DI+/hGP6+qRn7rxK3zX1yNbISdYh13zA+P0dgWcVMnKCJvyHR/4qARoV+qN j+wg== X-Gm-Message-State: AGRZ1gKmlGdz7vWgVNCuStWxSsxGBn2SR/yKYffE035tQObaZ5wcWaUY 0iUV1IDiMvOrANWt8R7IIoa4R8IXXnsb7Q== X-Received: by 2002:a63:920a:: with SMTP id o10mr4001965pgd.141.1542249265114; Wed, 14 Nov 2018 18:34:25 -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.24 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 14 Nov 2018 18:34:24 -0800 (PST) From: Ard Biesheuvel To: edk2-devel@lists.01.org Date: Wed, 14 Nov 2018 18:33:53 -0800 Message-Id: <20181115023353.20159-21-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: [edk2] [PATCH edk2-staging 20/20] IntelUndiPkg/XGigUndiDxe: avoid unused var warnings for ERROR_REPORTn() 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: , Cc: kamil.kacperski@intel.com, eric.jin@intel.com, pawel.orlowski@intel.com, michael.d.kinney@intel.com, harry.l.hsiung@intel.com MIME-Version: 1.0 Errors-To: edk2-devel-bounces@lists.01.org Sender: "edk2-devel" We hit unused variable warnings since the various ERROR_REPORTn() macros resolve to nothing. So instead, map them to the macros that were created to prevent these warnings. Contributed-under: TianoCore Contribution Agreement 1.1 Signed-off-by: Ard Biesheuvel --- IntelUndiPkg/XGigUndiDxe/ixgbe_osdep.h | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) -- 2.17.1 _______________________________________________ edk2-devel mailing list edk2-devel@lists.01.org https://lists.01.org/mailman/listinfo/edk2-devel diff --git a/IntelUndiPkg/XGigUndiDxe/ixgbe_osdep.h b/IntelUndiPkg/XGigUndiDxe/ixgbe_osdep.h index aa3b3543cb79..02eb6fe7f67b 100644 --- a/IntelUndiPkg/XGigUndiDxe/ixgbe_osdep.h +++ b/IntelUndiPkg/XGigUndiDxe/ixgbe_osdep.h @@ -451,7 +451,7 @@ typedef BOOLEAN boolean_t; @retval None **/ -#define ERROR_REPORT(S,A) +#define ERROR_REPORT(S,A) UNREFERENCED_1PARAMETER(A) /** ERROR_REPORT1 wrapper macro for shared code, blank here @@ -461,7 +461,7 @@ typedef BOOLEAN boolean_t; @retval None **/ -#define ERROR_REPORT1(S,A) +#define ERROR_REPORT1(S,A) UNREFERENCED_1PARAMETER(A) /** ERROR_REPORT2 wrapper macro for shared code, blank here @@ -472,7 +472,7 @@ typedef BOOLEAN boolean_t; @retval None **/ -#define ERROR_REPORT2(S,A,B) +#define ERROR_REPORT2(S,A,B) UNREFERENCED_2PARAMETER(A,B) /** ERROR_REPORT3 wrapper macro for shared code, blank here @@ -484,7 +484,7 @@ typedef BOOLEAN boolean_t; @retval None **/ -#define ERROR_REPORT3(S,A,B,C) +#define ERROR_REPORT3(S,A,B,C) UNREFERENCED_3PARAMETER(A,B,C) /** Macro for word conversion from CPU native to Big Endian