IB/mlx5: Delete locally redefined variable
Subsystems (2)
PATCH 1/1 IB/mlx5: Delete locally redefined variable
From: Leon Romanovsky <leonro-VPRAkNaXOzVWk0Htik3J/[email protected]>
Fix the following sparse warning:drivers/infiniband/hw/mlx5/main.c:1061:29: warning: symbol 'pfn' shadows an earlier onedrivers/infiniband/hw/mlx5/main.c:1030:21: originally declared here
--- drivers/infiniband/hw/mlx5/main.c | 4 ---- 1 file changed, 4 deletions(-)
drivers/infiniband/hw/mlx5/main.c +0 -4
@@ -1057,9 +1057,6 @@ static int mlx5_ib_mmap(struct ib_ucontext *ibcontext, struct vm_area_struct *vmreturn -ENOSYS ;case MLX5_IB_MMAP_CORE_CLOCK : - { -phys_addr_t pfn; -if (vma->vm_end - vma->vm_start !=PAGE_SIZE )return -EINVAL ;
@@ -1082,7 +1079,6 @@ static int mlx5_ib_mmap(struct ib_ucontext *ibcontext, struct vm_area_struct *vm vma->vm_start, (unsigned long long)pfn << PAGE_SHIFT);break ; - }default :return -EINVAL ;
Signature · 6 lines
1.7.12.4 -- To unsubscribe from this list: send the line "unsubscribe linux-rdma" in the body of a message to [email protected] More majordomo info at http://vger.kernel.org/majordomo-info.html
A message that is not in the archive (sent off-list or not yet received): 1453194684-1549-1-git-send-email-leon-2ukJVAZIZ/[email protected]
Doug Ledford
AppliedQuoted 29 lines · Leon Romanovsky
From: Leon Romanovsky <leonro-VPRAkNaXOzVWk0Htik3J/[email protected]>
Fix the following sparse warning:
drivers/infiniband/hw/mlx5/main.c:1061:29: warning: symbol 'pfn' shadows an earlier onedrivers/infiniband/hw/mlx5/main.c:1030:21: originally declared hereFixes d69e3bcf7976 ('IB/mlx5: Mmap the HCA's core clock register to user-space')--- drivers/infiniband/hw/mlx5/main.c | 4 ---- 1 file changed, 4 deletions(-)drivers/infiniband/hw/mlx5/main.c +0
-3@@ -1057,9 +1057,6 @@ static int mlx5_ib_mmap(struct ib_ucontext *ibcontext, struct vm_area_struct *vmreturn -ENOSYS ;case MLX5_IB_MMAP_CORE_CLOCK : - { -phys_addr_t pfn; -if (vma->vm_end - vma->vm_start !=PAGE_SIZE )return -EINVAL ;
drivers/infiniband/hw/mlx5/main.c static int mlx5_ib_mmap(struct ib_ucontext *ibcontext, struct vm_area_struct *vm · line 1084
Quoted 7 lines
drivers/infiniband/hw/mlx5/main.c +0
-1@@ -1082,7 +1079,6 @@ static int mlx5_ib_mmap(struct ib_ucontext *ibcontext, struct vm_area_struct *vm vma->vm_start, (unsigned long long)pfn << PAGE_SHIFT);break ; - }default :return -EINVAL ;
Thanks, applied.
Signature · 2 lines
Doug Ledford <[email protected]> GPG KeyID: 0E572FDD