From patchwork Thu Nov 15 02:33:39 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ard Biesheuvel X-Patchwork-Id: 151143 Delivered-To: patch@linaro.org Received: by 2002:a2e:299d:0:0:0:0:0 with SMTP id p29-v6csp6453531ljp; Wed, 14 Nov 2018 18:34:26 -0800 (PST) X-Google-Smtp-Source: AJdET5cQEjvvvMHEOekKg0wyEz8fD0W9N6BAjA4EO68Um0mx6ngAQhdIi9kGhK8l9TMoeoplQ5tc X-Received: by 2002:a24:89c6:: with SMTP id s189-v6mr4745870itd.96.1542249266275; Wed, 14 Nov 2018 18:34:26 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1542249266; cv=none; d=google.com; s=arc-20160816; b=AhYdJe6ni+uXX1LGTokDqL/x2g/3oT/qj55ekhqQEE2FdXpTRkVn6CUZ36HCh3mTix S+d7pga1gWC1+lOUOdO45cOFGpUwP1OQFXohkRm2oXZbSHh3KxwT5jolGAamwCFyf3YU k3BmFcR1c8WnG3DDFAsI8OcWIxMoNUiuPrI5E8K8itdS62RErPVIUL1rEL8+b8lqtqtV xJe913w0LFkLb8j2jwkQQ++ze55g72z5eQkt+MpZVt6Kvr6Mrg6+ZI1ETy7uLK0J537e OPlrRmXzwcddf/LxUVrCte8wW8gxKxE68G39sKpzvwGMoYZ9sv0oLgxUAgbCgv/pdAeT 2s5g== 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=3GbMX8dV+5rpIRWajjjq/3uc/YNsTAibAHT/43aeRw0=; b=jHg8mi1OZAQAdRgk5/mKSjt2tz4ymZXzNJmvj3p/HWPviZQcIRBeYY78ogkkDL2Fm9 NYTLlViVxbVrWcXeeXkapQBxfH7ZeU/RJ8F72aO4p1y1BkdrB/Ns82jAJRo3RB8F6aAl eNo+I6fOY8lhcEJwXdughKTZKIYUBxsEhJdY6eZbI7yNNlUZ41RKS0mOLXjlD8oYIC60 dG+hPKCIEkeWcmVXkWRq96yBrKm7ecdS5D5WtLiifLTk1Ae/Yr0mjOVFgRFkK4OefBJx c+16ynNKy+AtcUq5T5Pwqgfbf399/8DEAarI22a/G9TE75iUCcmjnQy0zoY1K5vmrLnB wHDQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=neutral (body hash did not verify) header.i=@linaro.org header.s=google header.b=bAbXNtUR; spf=pass (google.com: best guess record for domain of edk2-devel-bounces@lists.01.org designates 2001:19d0:306:5::1 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. [2001:19d0:306:5::1]) by mx.google.com with ESMTPS id z5-v6si14095322ite.0.2018.11.14.18.34.25 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 14 Nov 2018 18:34:26 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of edk2-devel-bounces@lists.01.org designates 2001:19d0:306:5::1 as permitted sender) client-ip=2001:19d0:306:5::1; Authentication-Results: mx.google.com; dkim=neutral (body hash did not verify) header.i=@linaro.org header.s=google header.b=bAbXNtUR; spf=pass (google.com: best guess record for domain of edk2-devel-bounces@lists.01.org designates 2001:19d0:306:5::1 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 0AA6521191721; Wed, 14 Nov 2018 18:34:11 -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::644; helo=mail-pl1-x644.google.com; envelope-from=ard.biesheuvel@linaro.org; receiver=edk2-devel@lists.01.org Received: from mail-pl1-x644.google.com (mail-pl1-x644.google.com [IPv6:2607:f8b0:4864:20::644]) (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 209322194D3B3 for ; Wed, 14 Nov 2018 18:34:09 -0800 (PST) Received: by mail-pl1-x644.google.com with SMTP id x21-v6so5999096pln.9 for ; Wed, 14 Nov 2018 18:34:09 -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=m/0sore4yQgOyZWlHCmFdl4sf7YbaRyTikzCX+ndiBY=; b=bAbXNtURdLtv4u3IyinyNO83rEnK6hvNdx8MI/FeJbJQIgM3VbPbk+O/Gh5srVX+Wb LcxseKw2AsWOAMEBSWAZ8fQZNuHamgQPMAWizCFelUb8S99KFwduXTobstrvuAq8Gm4o 7wLiTDcP3EYgUqIHOoImOzZzx12+bMBLCV4o0= 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=m/0sore4yQgOyZWlHCmFdl4sf7YbaRyTikzCX+ndiBY=; b=ZkJqM/M5sbclA2Z43WIKXt8Kf6DUFLb6x2sh7ArfkQpL/ynMeE/Kq+rC4TW3ELSEGI fKd2JvETW4YkggdF0vcg4gFMMGehUPmgsXtBoI7K5NS4+OdR5iyPkbtujcWflsXZ7O9o xW/xnr1Wc86xy6JfCYry/80owox2UGH5Xq/kM4SWoATEfzsv8FlxsnYM/bhCxQfUD3rk DZJ6QwcwINLoJm3I/yjc/c8RY0LBCjhBQzHvQai98HfOexFeKOrRRkGvvCB46uGBARNU R///WU99tK2dPlANucnX9V1D75Zc2LquJKWqN/+qc1EmC+xwM5s2pXYCwoHSfiUFVGCO r+dA== X-Gm-Message-State: AGRZ1gK8cVhCopPeha6ztQQj9Gp4fREXKm/zLJZ+NCVsuZk85J0B8Cd2 LEd++5yhfaIG8x58Sis66yAXuGtkrIGviA== X-Received: by 2002:a17:902:b181:: with SMTP id s1-v6mr4525764plr.51.1542249248634; Wed, 14 Nov 2018 18:34:08 -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.07 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 14 Nov 2018 18:34:07 -0800 (PST) From: Ard Biesheuvel To: edk2-devel@lists.01.org Date: Wed, 14 Nov 2018 18:33:39 -0800 Message-Id: <20181115023353.20159-7-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 06/20] IntelUndiPkg/XGigUndiDxe: add missing UINT8* cast 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" UINT8 and CHAR8 are not the same underlying type on all architectures, so add an explicit cast where necessary. Contributed-under: TianoCore Contribution Agreement 1.1 Signed-off-by: Ard Biesheuvel --- IntelUndiPkg/XGigUndiDxe/Hii.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) -- 2.17.1 _______________________________________________ edk2-devel mailing list edk2-devel@lists.01.org https://lists.01.org/mailman/listinfo/edk2-devel Reviewed-by: Ryszard Knop diff --git a/IntelUndiPkg/XGigUndiDxe/Hii.c b/IntelUndiPkg/XGigUndiDxe/Hii.c index 3ad7d61e493d..3170580487d5 100644 --- a/IntelUndiPkg/XGigUndiDxe/Hii.c +++ b/IntelUndiPkg/XGigUndiDxe/Hii.c @@ -782,7 +782,7 @@ HiiSetMenuStrings ( Status = ReadPbaString ( &UndiPrivateData->NicInfo, - PBAString8, + (UINT8 *)PBAString8, MAX_PBA_STR_LENGTH ); if (Status == EFI_SUCCESS) {