From 4dee922adcd16d819007179bcf2af0bff7bc9845 Mon Sep 17 00:00:00 2001 From: LuK1337 Date: Thu, 27 May 2021 20:44:42 +0200 Subject: [PATCH] sm8450-common: gpt-utils: Fix build errors. Change-Id: Ie8245d1637e12b5979a8af1b864cc713135b5c95 --- gpt-utils/recovery-ufs-bsg.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/gpt-utils/recovery-ufs-bsg.cpp b/gpt-utils/recovery-ufs-bsg.cpp index 0a2cf11..4249aa6 100644 --- a/gpt-utils/recovery-ufs-bsg.cpp +++ b/gpt-utils/recovery-ufs-bsg.cpp @@ -100,7 +100,7 @@ static int ufs_bsg_ioctl(int fd, struct ufs_bsg_request *req, enum bsg_ioctl_dir dir) { int ret; - struct sg_io_v4 sg_io = {0}; + struct sg_io_v4 sg_io{}; sg_io.guard = 'Q'; sg_io.protocol = BSG_PROTOCOL_SCSI; @@ -155,8 +155,8 @@ static int ufs_query_attr(int fd, __u32 value, __u8 func, __u8 opcode, __u8 idn, __u8 index, __u8 sel) { - struct ufs_bsg_request req = {0}; - struct ufs_bsg_reply rsp = {0}; + struct ufs_bsg_request req{}; + struct ufs_bsg_reply rsp{}; enum bsg_ioctl_dir dir = BSG_IOCTL_DIR_FROM_DEV; int ret = 0; @@ -175,7 +175,7 @@ static int ufs_query_attr(int fd, __u32 value, return ret; } -int32_t set_boot_lun(char *sg_dev,uint8_t lun_id) +int32_t set_boot_lun(char *sg_dev __unused,uint8_t lun_id) { int32_t ret; __u32 boot_lun_id = lun_id;