From patchwork Tue Nov 6 17:58:23 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Ard Biesheuvel X-Patchwork-Id: 150311 Delivered-To: patch@linaro.org Received: by 2002:a2e:299d:0:0:0:0:0 with SMTP id p29-v6csp4192286ljp; Tue, 6 Nov 2018 09:59:22 -0800 (PST) X-Google-Smtp-Source: AJdET5ceBaizA6PidKJJV79lktI7ojLAFx+dYMPr2sCK5PcHyRAGnHnyrzXRK9vMr/TAyv0O1ox1 X-Received: by 2002:a63:b16:: with SMTP id 22mr24473674pgl.306.1541527162271; Tue, 06 Nov 2018 09:59:22 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1541527162; cv=none; d=google.com; s=arc-20160816; b=PljYHi/+dQ9OwZsMnMTPtQbcjEGvlMZaPNDlSRPObNDsaxAktDg4qm1hPt1E6NUuXL BGOLx90/VVUnhLXqz03f4u8SbdWY2cO5FHyScLFeUx6ddG4sUxeEX680xMlzHiUNamSs 9p9aP5BQhiKnsE98RlKkodffRVar24ESuQ6rjdeVCYRlaUvxf1C1bb1Y/rJ8jGQuEzCZ BNa8uJlzv5uX9yGhpfvOe793mZL8OioxtgRjvzeXQjgrKzu1u7Qpe7TPS3i1lW5GrubM AdMJM/EazAHTlp5rP/XdEadqKgqop9YnhDMegPrcN4CeR5sbjp0fmzGJhnXw1KQlqRld VTCQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:content-transfer-encoding:cc:list-subscribe :list-help:list-post:list-archive:list-unsubscribe:list-id :precedence:subject:mime-version:references:in-reply-to:message-id :date:to:from:dkim-signature:delivered-to; bh=lwlc6NpLMYfr0YVQ7QwssB0zjmiePy72HpXEwAjYoQ0=; b=BVUG58ryy4VnnkUjZmtmpiKZAOHnz28Dn6KvdkNVzi1rQ5iM6IgKOBdHZ9sfh4HiUY 4rWikV8QWZ31Y+J1TGidNvWzn7Y6lIIbspePOSQqpBkIbI5QYkddJAt2iCG/Yk9l5iiF CA5IW25VrE57vJyOa603t1UZpOpvTHmXMdu/iArWIdc2MEqHY6kwCskb/UDXjDrylD+p gDItit+1/2PNzpfGU+qi4r36uFypRnawFcAMTk9tquDds7sEYI+V7905nESCavKU9p/z 9lHcN/5n0pq2iRxnup+TXSsqQg538HYRt46UMHMjRdMK/6FtmdtuNsJRlWTVtv63PB4O OyTQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=neutral (body hash did not verify) header.i=@linaro.org header.s=google header.b=BIxyi1nS; 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 m7-v6si52266048pfi.286.2018.11.06.09.59.22 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 06 Nov 2018 09:59:22 -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=BIxyi1nS; 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 132812118C50C; Tue, 6 Nov 2018 09:59:04 -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=2a00:1450:4864:20::441; helo=mail-wr1-x441.google.com; envelope-from=ard.biesheuvel@linaro.org; receiver=edk2-devel@lists.01.org Received: from mail-wr1-x441.google.com (mail-wr1-x441.google.com [IPv6:2a00:1450:4864:20::441]) (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 AA0972118C4FA for ; Tue, 6 Nov 2018 09:59:02 -0800 (PST) Received: by mail-wr1-x441.google.com with SMTP id 74-v6so14547671wrb.13 for ; Tue, 06 Nov 2018 09:59:02 -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 :mime-version:content-transfer-encoding; bh=hrcCYljH+TbckY78HpCWneipT/OVTaYSEjjVl1xANbk=; b=BIxyi1nSjT49cl5E67SGJ1f6mw07xBTO0suzWjgs03S+q4xUgOfm4Xud1b4A7whhBR i9ue1pggX8AU89RERFfjPv6vnnmZ7olpxVyB4WqnjnaIH7IC86EPWn0Q6ZlaIXeastbf M7bCXiDF1PYOYBGAA+SMNMg+IvUFP7mfw1f+g= 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:mime-version:content-transfer-encoding; bh=hrcCYljH+TbckY78HpCWneipT/OVTaYSEjjVl1xANbk=; b=gtnn2SWptQGFQ9B3ywpZLT/6IhMPLpgn6vPnYhmYY3zrLVHheJ02ClQnxo3UVsIFTI BKVTz6K08mAG5SsS7o+obpOqSOykF4ftN/wPHKYfqJL3Ta3vKFiL3A8WCqnMl7zQ8kb8 q4ynFNzqG8WGox/HGN3BgnTzlHbrUWfv5pZGDVYpnMwT51QCC/Ptclk8EgD/Snd1HU/X 5EjzjjAG2aylBCKR2Tf69aLmGQBnx3+sxZcI0sUqw6G7nrmIc6v6/BqdLBKtxzaip8En ZrAg0WyJI5a3sqoAhpoYRIFeH5TolgtRV58VhofE3DhU0KVouEeqdcKWkl4QJVwblPt6 iJEg== X-Gm-Message-State: AGRZ1gKmj31Z3067UzLLgSFpyA4ygk9wPaArMgi3E8EQG9uBgbTUPiWs 8GdEb1z7GyJro5DC7dxi9DSNG6QRCdw= X-Received: by 2002:adf:a2cc:: with SMTP id t12-v6mr23901226wra.100.1541527141002; Tue, 06 Nov 2018 09:59:01 -0800 (PST) Received: from localhost.localdomain (laubervilliers-657-1-83-120.w92-154.abo.wanadoo.fr. [92.154.90.120]) by smtp.gmail.com with ESMTPSA id 134-v6sm2971522wmp.6.2018.11.06.09.58.59 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 06 Nov 2018 09:59:00 -0800 (PST) From: Ard Biesheuvel To: edk2-devel@lists.01.org Date: Tue, 6 Nov 2018 18:58:23 +0100 Message-Id: <20181106175833.26964-10-ard.biesheuvel@linaro.org> X-Mailer: git-send-email 2.19.1 In-Reply-To: <20181106175833.26964-1-ard.biesheuvel@linaro.org> References: <20181106175833.26964-1-ard.biesheuvel@linaro.org> MIME-Version: 1.0 Subject: [edk2] [PATCH edk2-staging 09/19] IntelUndiPkg/GigUndiDxe: 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: michael.d.kinney@intel.com, eric.jin@intel.com 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/GigUndiDxe/Hii.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) -- 2.19.1 _______________________________________________ edk2-devel mailing list edk2-devel@lists.01.org https://lists.01.org/mailman/listinfo/edk2-devel Reviewed-by: Philippe Mathieu-Daudé Reviewed-by: Ryszard Knop diff --git a/IntelUndiPkg/GigUndiDxe/Hii.c b/IntelUndiPkg/GigUndiDxe/Hii.c index a5d8ae207819..737a59fbbbac 100644 --- a/IntelUndiPkg/GigUndiDxe/Hii.c +++ b/IntelUndiPkg/GigUndiDxe/Hii.c @@ -817,7 +817,7 @@ HiiSetMenuStrings ( Status = ReadPbaString ( &UndiPrivateData->NicInfo, - PBAString8, + (UINT8 *)PBAString8, MAX_PBA_STR_LENGTH ); if (Status == EFI_SUCCESS) {