sm8450-common: gpt-utils: Fix build errors.
Change-Id: Ie8245d1637e12b5979a8af1b864cc713135b5c95
This commit is contained in:
		@@ -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;
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user