From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.133.124]) by mx.groups.io with SMTP id smtpd.web10.8062.1635948068500235850 for ; Wed, 03 Nov 2021 07:01:08 -0700 Authentication-Results: mx.groups.io; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=W3YZg97o; spf=pass (domain: redhat.com, ip: 170.10.133.124, mailfrom: philmd@redhat.com) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1635948066; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=6qs5Y2OBTybZMnWqM9PgamBQesR6rzr8s6An1R//gMM=; b=W3YZg97o+LM940k3Yjr88kybM9fD3k6SDiyYMl9oNgy07WMrzPVx2fXVMBbDCLAFKyaUVn lhoA2KH1xi1CmHHoPHstC4azJMzQDhDk3xKOkEw/W5QTAb6c2kW222iYa+PjnHGhpPiZOe AvsXti7Cc1EgGbFMJIlNLWgd2kz6bJs= Received: from mail-wm1-f70.google.com (mail-wm1-f70.google.com [209.85.128.70]) (Using TLS) by relay.mimecast.com with ESMTP id us-mta-306-_k1x8MruM5-WrmiBQEQ-sw-1; Wed, 03 Nov 2021 10:01:05 -0400 X-MC-Unique: _k1x8MruM5-WrmiBQEQ-sw-1 Received: by mail-wm1-f70.google.com with SMTP id j193-20020a1c23ca000000b003306ae8bfb7so1097190wmj.7 for ; Wed, 03 Nov 2021 07:01:05 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:message-id:date:mime-version:user-agent:subject :content-language:to:cc:references:from:in-reply-to :content-transfer-encoding; bh=6qs5Y2OBTybZMnWqM9PgamBQesR6rzr8s6An1R//gMM=; b=cAfUig1dvt+DXa7cP5Q9J/f7MiQkwAvDyjQ0Ru8Q8qMCFth8QQQ7ZtGnapy1j3sm26 PKX9JHMjseSsoMXZ05s3Ezug7UG2dnjRkaJy79hAqyiKWaGi2G2OV2ALEQkd5YvUqIPF doWZBqEiKpdJI4sGbDoTvZedj8tthiL+cmRlghzIFOAViHkU5eXgtHpX4sCKN824gTC/ ic5TLKKM3MDwXakh4f27WX1GVY9caR7b1Fnno03F+stmYm+4XhlQaPcWJno8zuB/GiIW dqJ+FRmcI/6ci7uPHc+oxMGP0zUro6HBJeF8Ep6PTLKYx9iw7YUCORXEkMWGWHHStD+x nhPQ== X-Gm-Message-State: AOAM533tglbF+JlCx0q1GFsBS+bvRpIZk6usBGn2g5yvHESdDfjVzUB6 P7sg2FdBDJlQqXPv5t+yX/Fy7OojyrXyd6Aa4LNg/aZFwQgFiSkajLexktLMFuTyt2EuKb+usCk m3b8zt2stHco7nap/jjk9ZWtVviGsQH1qEA4v14qhXMmB15GDdk/tCTMMg3w9C5s= X-Received: by 2002:a05:600c:4ece:: with SMTP id g14mr15848929wmq.95.1635948064298; Wed, 03 Nov 2021 07:01:04 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzTVMGppfZWJ1ORWKFjpxBpE8Pfj7PtTJ8jjHkVgdMygbTUTC2d/t9Hx3ILrTWqWqMfjsL08Q== X-Received: by 2002:a05:600c:4ece:: with SMTP id g14mr15848889wmq.95.1635948064016; Wed, 03 Nov 2021 07:01:04 -0700 (PDT) Return-Path: Received: from [192.168.1.36] (62.red-83-57-168.dynamicip.rima-tde.net. [83.57.168.62]) by smtp.gmail.com with ESMTPSA id r1sm6135127wmr.36.2021.11.03.07.01.03 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Wed, 03 Nov 2021 07:01:03 -0700 (PDT) Message-ID: Date: Wed, 3 Nov 2021 15:01:01 +0100 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Thunderbird/91.2.0 Subject: Re: [edk2-devel] [Patch 6/6] MdeModulePkg/Variable/RuntimeDxeUnitTest: Fix 32-bit GCC builds To: devel@edk2.groups.io, michael.d.kinney@intel.com Cc: Hao A Wu , Liming Gao , Bret Barkelew References: <20211103030542.1529-1-michael.d.kinney@intel.com> <20211103030542.1529-7-michael.d.kinney@intel.com> From: =?UTF-8?B?UGhpbGlwcGUgTWF0aGlldS1EYXVkw6k=?= In-Reply-To: <20211103030542.1529-7-michael.d.kinney@intel.com> Authentication-Results: relay.mimecast.com; auth=pass smtp.auth=CUSA124A263 smtp.mailfrom=philmd@redhat.com X-Mimecast-Spam-Score: 0 X-Mimecast-Originator: redhat.com Content-Language: en-US Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit On 11/3/21 04:05, Michael D Kinney wrote: > When using will_return() on a pointer value, it must be > cast to UINTN to be compatible with 32-bit GCC builds. > This uses the same approach in samples provided in the > UnitTestFramworkPkg when passing pointer values to > UT_ASSERT_EQUAL(). > > Cc: Hao A Wu > Cc: Liming Gao > Cc: Bret Barkelew > Signed-off-by: Michael D Kinney > --- > .../RuntimeDxeUnitTest/VariableLockRequestToLockUnitTest.c | 6 +++--- > 1 file changed, 3 insertions(+), 3 deletions(-) Reviewed-by: Philippe Mathieu-Daude