Received: by 2002:a25:868d:0:0:0:0:0 with SMTP id z13csp2344157ybk; Mon, 11 May 2020 19:13:49 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzAJsPupyAj/QnVukE9UtQe/C/t3TjYrshtGdUFQhhoae425qLeEj5lP5KLa5EDvNhAJfoM X-Received: by 2002:a17:906:4dc3:: with SMTP id f3mr3808676ejw.323.1589249629099; Mon, 11 May 2020 19:13:49 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1589249629; cv=none; d=google.com; s=arc-20160816; b=fmRQlLPo21G+bOSxzxzSV7Vb4d9YRsAJ5uwLyDpHGsg4jsoB1ogCl1mUkesq1sUAEX 92BSh/JXWKQpWPbuFcFspUFPAqXG7ea8m8gdbsDPffjwiWtzSNGEej8JhvxPr50zKywB culovgqxL1oZRxU9m2zAqZeDjUV+bwp0ogUoELcRVvC1HVFpwXocaLU0VaLeXRikAFkq O+bdFWerKoBc2ojAPM+NidPQ5o6Ju/GfQuN32ftzhZzfAeZuqIUUqih4Pvoqj6JhDp8T UzIJbyVlTVgWXig08fBj2BA/rn/+0JmQYDoZUNGd1wyCEeuMRZOR2UKdRdtGHwfr1Gl+ EOHA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:message-id:date:subject:cc :to:from; bh=jKzyfT65L760rNkH43M71u8qTRoxUhv5FTD2BWtMyxE=; b=jwPpl3SzKg1ien8QtR0DzArlivW0tzjxgSRdZ+cvYubLvAC4ZR9lYyfl3XMpDHWD22 V8T2NhZHPqWPaO2kgqY/bmayBhlntgcEJU5IHmLElTWdavUPgH4jhqPKPghF/lfu6s3g mLgFOGjiJAnN5FVrhhfzwPcxsmzxAX23tnjqD737FGdDk181+umclRgBXT9w1HJOfB+T ELvSegf5flCwYDjj8jG9F9J3brRry5iLu6Y1x3QJUuqt38guMi1M4RFVzHo3bUHPPS8I bbbwFJfkVjgIaQi1D19oSAt92fUjETG5ARPQOB9WyvbrmmRpZUvrDe9cbgKuwD06L4EA t4/g== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id p63si7404148edb.61.2020.05.11.19.13.26; Mon, 11 May 2020 19:13:49 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728575AbgELCLX (ORCPT + 99 others); Mon, 11 May 2020 22:11:23 -0400 Received: from szxga04-in.huawei.com ([45.249.212.190]:4393 "EHLO huawei.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1727892AbgELCLX (ORCPT ); Mon, 11 May 2020 22:11:23 -0400 Received: from DGGEMS410-HUB.china.huawei.com (unknown [172.30.72.59]) by Forcepoint Email with ESMTP id 90833A0F04202A38486F; Tue, 12 May 2020 10:11:21 +0800 (CST) Received: from linux-lmwb.huawei.com (10.175.103.112) by DGGEMS410-HUB.china.huawei.com (10.3.19.210) with Microsoft SMTP Server id 14.3.487.0; Tue, 12 May 2020 10:11:12 +0800 From: Samuel Zou To: , , CC: , , , Samuel Zou Subject: [PATCH -next] iommu/msm: Make msm_iommu_lock static Date: Tue, 12 May 2020 10:17:19 +0800 Message-ID: <1589249839-105820-1-git-send-email-zou_wei@huawei.com> X-Mailer: git-send-email 2.6.2 MIME-Version: 1.0 Content-Type: text/plain X-Originating-IP: [10.175.103.112] X-CFilter-Loop: Reflected Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Fix the following sparse warning: drivers/iommu/msm_iommu.c:37:1: warning: symbol 'msm_iommu_lock' was not declared. The msm_iommu_lock has only call site within msm_iommu.c It should be static Fixes: 0720d1f052dc ("msm: Add MSM IOMMU support") Reported-by: Hulk Robot Signed-off-by: Samuel Zou --- drivers/iommu/msm_iommu.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/iommu/msm_iommu.c b/drivers/iommu/msm_iommu.c index 10cd4db..3d8a635 100644 --- a/drivers/iommu/msm_iommu.c +++ b/drivers/iommu/msm_iommu.c @@ -34,7 +34,7 @@ __asm__ __volatile__ ( \ /* bitmap of the page sizes currently supported */ #define MSM_IOMMU_PGSIZES (SZ_4K | SZ_64K | SZ_1M | SZ_16M) -DEFINE_SPINLOCK(msm_iommu_lock); +static DEFINE_SPINLOCK(msm_iommu_lock); static LIST_HEAD(qcom_iommu_devices); static struct iommu_ops msm_iommu_ops; -- 2.6.2