Received: by 2002:a25:868d:0:0:0:0:0 with SMTP id z13csp2443376ybk; Mon, 11 May 2020 22:45:15 -0700 (PDT) X-Google-Smtp-Source: ABdhPJx3NhrZaZbbdaIvOnMePQt73S6SmR1nNWxXv1j8eGgwpftkZzYlS9dx/9/RtTlu9bE3jYeQ X-Received: by 2002:a50:d715:: with SMTP id t21mr7518519edi.194.1589262315058; Mon, 11 May 2020 22:45:15 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1589262315; cv=none; d=google.com; s=arc-20160816; b=PdYyPxDucQmmbt131pV/Jrqh7tGp0sgw64xsXA9t7A1XOyz0jApUd4HnNeF/t+bwuV XX1OjR4kuIM4/7UUz9JLy5B41Z7ih8EQIRTt8VNbgsa8pzeUrAoYKBmnpXUDKJW7FI25 IX27C8o+A+rsMDG4mXzyMWbbRcz5UeT78e1i+mm4qmT7wTwHzssUy6yssetOr6LCXxYX ZM4Z2kUrcYgY2Rlm1KBSXn/W2UT1V056N/TLSItzY4DqIShjpaVPoal/sUjjIK04Ytwn pQtP8p1Lf1PCytSLmdQRRkYXsALC4yzbV3Bcwj06gXLQV2cyl+U3c6d1rbDrFN8THFAS Grwg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date :dkim-signature; bh=d3pM/Dyxuk8f8jV5C8y4lxDkycZGVCo+a29+hT7GDn8=; b=K3GWJXPejyZsX9j6TXK7t5d/YYDJx49GFrqE/zIMqxL0iqui1q6FBjT0Sebcm5TAIu vS1H61oThq9ACOEv7dD7HDbMJRSeoOtLmNJnYI0XEo3efX4nTQA66WNfVsKksSbsKqRK 7wLmZSg5rp1ID8gNtwV18c11jhCW03Y0ZIJE8tPLAv9NOjSPYK4fI8rVn3vCwzCBAmd1 ZDEAJgPyMzg6zckDoImWU5Z2Wx6JiiJ4viwMFm7aPrNBaY0BA/BbfZBGWvNuDcapDc7V Jyjq+mo5OE+sxy6G8EMtUckzpFKsoaH4d46tQZqnGBz51AiO9yxvsn5nGbQcpi1zrRpm yABw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=Pwq8HShO; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id k2si7524314edr.528.2020.05.11.22.44.35; Mon, 11 May 2020 22:45:15 -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; dkim=pass header.i=@linaro.org header.s=google header.b=Pwq8HShO; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726287AbgELFll (ORCPT + 99 others); Tue, 12 May 2020 01:41:41 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:40208 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-FAIL-OK-FAIL) by vger.kernel.org with ESMTP id S1725892AbgELFlk (ORCPT ); Tue, 12 May 2020 01:41:40 -0400 Received: from mail-pf1-x443.google.com (mail-pf1-x443.google.com [IPv6:2607:f8b0:4864:20::443]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 9DDFFC061A0C for ; Mon, 11 May 2020 22:41:40 -0700 (PDT) Received: by mail-pf1-x443.google.com with SMTP id w65so5822563pfc.12 for ; Mon, 11 May 2020 22:41:40 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to; bh=d3pM/Dyxuk8f8jV5C8y4lxDkycZGVCo+a29+hT7GDn8=; b=Pwq8HShOoEzwpj3h4Z2GIyav26gGErQQ5WACO+rZuY1f7UHBsSeweImNHvFTmwUu+3 RtPex/zc6nGXKFOSDhiPYBQvoO8wzf3lrrZ4Q0mekaNJs/8CR6xLPZh+wLHp0Gyd9Pvx QRQj8wnuoP0fKCg5vPmAFKsJIziKrif1enlKLHaH1vkudYaKCzVmNlgcree26/ynY7d7 rWZG0Fp9p2lsh3xcVB5/waAsty2XByE5+mW9SrW9SzIXcj10imYgrlhwXa4tJyFg0hh5 rR3XtQtcDHcO+jVEbcqSUd0K55s74l1VokXaBhfFgthdrnHEqTRknjqB21L3NUEKk/vY hCog== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to; bh=d3pM/Dyxuk8f8jV5C8y4lxDkycZGVCo+a29+hT7GDn8=; b=YWzfzDN59TejB/zuPag2apwtSEe1bEU8wGLNPoc7HON88EnnhF/9Oz2uFgmBJ+gtp9 PL/u8gNpL3KESMIn3q2KQONHJHVNxYy4YMD9fujkilpuXhFOqCBO8nBcJXUACKkMLINZ pcuFUHUrhD/ucQlmwsJVZxJgSnALjNbv0hBL4SJD/ZrW40KRGxZwkODdhD08mFAJsNui mHZ38iYOxVyqzshAQ38iyXhOOZbSx0qQwpVhKGUMTBjffNVbz4u15QUiwrIEP4c2amj2 0Vtg1Z0HkftmJ00z960FvCI09A51meI6xBGAkwIpwifrQDvDUq2T0WZYmEaYf9ZhGLVq KIHQ== X-Gm-Message-State: AGi0Puba+SxLhQCIP/5oGc7Ealf3SWGlJvWy7EnOsEezCOs3Xd8uyYoR ZZoAL4xcjq+KWP+aEtXjhe1zRQ== X-Received: by 2002:a62:808d:: with SMTP id j135mr18779432pfd.53.1589262099940; Mon, 11 May 2020 22:41:39 -0700 (PDT) Received: from yoga (104-188-17-28.lightspeed.sndgca.sbcglobal.net. [104.188.17.28]) by smtp.gmail.com with ESMTPSA id h11sm10684616pfo.120.2020.05.11.22.41.38 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 11 May 2020 22:41:39 -0700 (PDT) Date: Mon, 11 May 2020 22:41:37 -0700 From: Bjorn Andersson To: Samuel Zou Cc: agross@kernel.org, joro@8bytes.org, linux-arm-msm@vger.kernel.org, iommu@lists.linux-foundation.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH -next] iommu/msm: Make msm_iommu_lock static Message-ID: <20200512054137.GI1302550@yoga> References: <1589249839-105820-1-git-send-email-zou_wei@huawei.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1589249839-105820-1-git-send-email-zou_wei@huawei.com> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon 11 May 19:17 PDT 2020, Samuel Zou wrote: > 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 > Reviewed-by: Bjorn Andersson Regards, Bjorn > 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 >