From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-lf1-f41.google.com (mail-lf1-f41.google.com [209.85.167.41]) by mx.groups.io with SMTP id smtpd.web10.39909.1658232641880989845 for ; Tue, 19 Jul 2022 05:10:42 -0700 Authentication-Results: mx.groups.io; dkim=pass header.i=@gmail.com header.s=20210112 header.b=etmtW5v0; spf=pass (domain: gmail.com, ip: 209.85.167.41, mailfrom: savvamtr@gmail.com) Received: by mail-lf1-f41.google.com with SMTP id t1so24368335lft.8 for ; Tue, 19 Jul 2022 05:10:41 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=N4unlrjTOdMR/06Sp8ZMihtV765vjmROvkAP/O4sRSQ=; b=etmtW5v0lVJmd4HxPonMSkVzz9fcnHJbN4AdDwC8WAxLod4tiBoe+DAj/9lV95FlCT YS5hA8wztVBduRIrRlho4DbtuRTawzSn7Dm1drUUUB2A3y7d2eixYJmRhxG2+kziTahz awNQbiyiqA/PGG9njs1G492+odSsjp4REl4X7E20TlnVEtj7YvIm43FxIfnrY66ULZK+ YF88T0PpDdCPnZOi29XnafFUYAZ6KTEKOkbR+XqCIG08yZ9TRDtRsMNyVprLyyJNyG9L LtAy1v1j87jKPFn/Qt7FWFmRUd/ZSZQZRb+XG3miFV76tY9R9+ZcLscwVgIufXNTp7e1 1a1w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=N4unlrjTOdMR/06Sp8ZMihtV765vjmROvkAP/O4sRSQ=; b=oJRkgQHDW/NNVQWCdRRn/eHY5FBzcy62NkmA5EgxsswpDI23Zwe5YenuhEVvHYQU4X NyFY5jiWv8JEeanmmV+gGloQtWO6uhXI6UqDSqxu/b1GsMb7QrViVPkXCRyKHYgLBnNR nz6LQFKtjm+5ZnZ7bvmQTm7z+602sdmvKJzisAGyIR79jb66AmYu+tXj+TptoA1jvn73 ajfVfUraeDcW6sLxT9BOcTXcpqxYk74n4ZRBJwmFWCpcRQggrKF18x/yu6EMMUGLQXA1 OIswweGY6FJojCSOK1VZwyiCUhUbtxnd3w20k7qAgSyzmLbIZuBhXtsAh0er75Gfmx5v kpKA== X-Gm-Message-State: AJIora/+0UK0SgOWbdfYU+oW6bL7zoXaLsjawrTj8aGYKq6HIQTX14t0 W6QMmjlq5LPaTpd07gxYUCGLQfefRafNOyx8sFc= X-Google-Smtp-Source: AGRyM1vHy05Zp6fHo8qhFH+1gCMtd+bejBWhefJr1Smaa3hLlp27K3QSWIi7Ai6lW91Y7s6vXxiR+Q== X-Received: by 2002:ac2:4d92:0:b0:486:5abb:de57 with SMTP id g18-20020ac24d92000000b004865abbde57mr16731499lfe.502.1658232639873; Tue, 19 Jul 2022 05:10:39 -0700 (PDT) Return-Path: Received: from localhost.localdomain ([207.180.219.167]) by smtp.gmail.com with ESMTPSA id z20-20020a2eb534000000b0025d6ecbc897sm2668245ljm.46.2022.07.19.05.10.38 (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Tue, 19 Jul 2022 05:10:39 -0700 (PDT) From: "Savva Mitrofanov" To: devel@edk2.groups.io Cc: =?UTF-8?q?Marvin=20H=C3=A4user?= , Pedro Falcato , Vitaly Cheptsov Subject: [edk2-platforms][PATCH 05/10] Ext4Pkg: Fix compiler warnings Date: Tue, 19 Jul 2022 18:10:11 +0600 Message-Id: <20220719121016.29380-6-savvamtr@gmail.com> X-Mailer: git-send-email 2.37.0 In-Reply-To: <20220719121016.29380-1-savvamtr@gmail.com> References: <20220719121016.29380-1-savvamtr@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Initialize all fields in gExt4BindingProtocol. Fix comparison of integer expressions of different signedness. Cc: Marvin H=C3=A4user Cc: Pedro Falcato Cc: Vitaly Cheptsov Signed-off-by: Savva Mitrofanov --- Features/Ext4Pkg/Ext4Dxe/Ext4Disk.h | 2 +- Features/Ext4Pkg/Ext4Dxe/Ext4Dxe.c | 10 ++++++---- 2 files changed, 7 insertions(+), 5 deletions(-) diff --git a/Features/Ext4Pkg/Ext4Dxe/Ext4Disk.h b/Features/Ext4Pkg/Ext4Dxe= /Ext4Disk.h index 3aef6f0e5bb4..7a19d2f79d53 100644 --- a/Features/Ext4Pkg/Ext4Dxe/Ext4Disk.h +++ b/Features/Ext4Pkg/Ext4Dxe/Ext4Disk.h @@ -338,7 +338,7 @@ STATIC_ASSERT ( #define EXT4_TIND_BLOCK 14=0D #define EXT4_NR_BLOCKS 15=0D =0D -#define EXT4_GOOD_OLD_INODE_SIZE 128=0D +#define EXT4_GOOD_OLD_INODE_SIZE 128U=0D =0D typedef struct _Ext4_I_OSD2_Linux {=0D UINT16 l_i_blocks_high;=0D diff --git a/Features/Ext4Pkg/Ext4Dxe/Ext4Dxe.c b/Features/Ext4Pkg/Ext4Dxe/= Ext4Dxe.c index 43b9340d3956..2a4f5a7bd0ef 100644 --- a/Features/Ext4Pkg/Ext4Dxe/Ext4Dxe.c +++ b/Features/Ext4Pkg/Ext4Dxe/Ext4Dxe.c @@ -260,10 +260,12 @@ Ext4Stop ( =0D EFI_DRIVER_BINDING_PROTOCOL gExt4BindingProtocol =3D=0D {=0D - Ext4IsBindingSupported,=0D - Ext4Bind,=0D - Ext4Stop,=0D - EXT4_DRIVER_VERSION=0D + .Supported =3D Ext4IsBindingSupported,=0D + .Start =3D Ext4Bind,=0D + .Stop =3D Ext4Stop,=0D + .Version =3D EXT4_DRIVER_VERSION,=0D + .ImageHandle =3D NULL,=0D + .DriverBindingHandle =3D NULL=0D };=0D =0D /**=0D --=20 2.37.0