Received: by 2002:a05:6a10:9848:0:0:0:0 with SMTP id x8csp4059167pxf; Tue, 23 Mar 2021 01:13:50 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyhA0RWx83sEQTYsB+cW0xe7bZ2uxSKTymmQHJQH6P14FOmAWsmRMLIzlpQ5TsTatL5/Wvy X-Received: by 2002:aa7:c9d1:: with SMTP id i17mr3358186edt.46.1616487230364; Tue, 23 Mar 2021 01:13:50 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1616487230; cv=none; d=google.com; s=arc-20160816; b=fTCN28WpVMmw2cOdh+DfF6pvZWo3IZnfVniCTrmIs8pZE3VRzLuwhNWKgMToOHNBYX 4aasrV8G/4cNJ/9kYHtaf5Y3XBiGQvOl7D/xlrie8A9hNEmeauhCiDDu+IsZrjjT6HLp h62Xce/zgQ22m60gdEv7bH8JSWy0lfJrGNshbAwZQmSlB0h3TP3yMdkX2FYumVlzW3oU pskSHvR1EQs+MJWC807Br1At8HtM7362ldBFd146GdCnExUzxUTXPi3tm8mn10/W4aR+ Ecrh7qdhNeLi9cPyMIAVgvlPUabqKQmKPasgiWP/TgVAorDpQPZWntYu5ztXBKbSt2pH f/2w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:message-id:date:subject:cc:to:from; bh=1/zz/d58zNPV2JXIUmq2DroOfgDquvQHAPV6gjnT9SA=; b=eTuoXORdaRmkEyHIkgVzht8uE8BikdGsuQh6NHvC4kiCqre6Gab8KILokqsjg0Mjzc 1+B4S+gNmCJEm1rZZG4UJB97glfIX4sD501zFK5Dvlo3rc7QAS60VtU50OMAfDbMQj8y JOXA/zydAxN4fnFfDm4HXyp3X50BtScVnP14pqYqLrCrH20oJWDLIceYzjOgi7ylmtn2 SaL2Kx5qQbgd8pkPwjN8eqU7/dl8i3mm1xvKcC3+XCi5qkOR/FK71ybWpRh2Wv4xmU7a Nq3xGxlfqBnQeyPRoT1iazts7fOz7lnBDlZdV6ypVNAFwISSOCQqFU3Lryx/R8xLf3CE cjaA== 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=alibaba.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id z13si13200941edd.128.2021.03.23.01.13.27; Tue, 23 Mar 2021 01:13:50 -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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=alibaba.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229452AbhCWIMV (ORCPT + 99 others); Tue, 23 Mar 2021 04:12:21 -0400 Received: from out30-130.freemail.mail.aliyun.com ([115.124.30.130]:49111 "EHLO out30-130.freemail.mail.aliyun.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229448AbhCWILs (ORCPT ); Tue, 23 Mar 2021 04:11:48 -0400 X-Alimail-AntiSpam: AC=PASS;BC=-1|-1;BR=01201311R121e4;CH=green;DM=||false|;DS=||;FP=0|-1|-1|-1|0|-1|-1|-1;HT=e01e04420;MF=jiapeng.chong@linux.alibaba.com;NM=1;PH=DS;RN=7;SR=0;TI=SMTPD_---0UT2qUJD_1616487100; Received: from j63c13417.sqa.eu95.tbsite.net(mailfrom:jiapeng.chong@linux.alibaba.com fp:SMTPD_---0UT2qUJD_1616487100) by smtp.aliyun-inc.com(127.0.0.1); Tue, 23 Mar 2021 16:11:46 +0800 From: Jiapeng Chong To: bskeggs@redhat.com Cc: airlied@linux.ie, daniel@ffwll.ch, dri-devel@lists.freedesktop.org, nouveau@lists.freedesktop.org, linux-kernel@vger.kernel.org, Jiapeng Chong Subject: [PATCH v2] drm/nouveau/mc: make tu102_mc_intr_mask and tu102_mc_intr_rearm static Date: Tue, 23 Mar 2021 16:11:24 +0800 Message-Id: <1616487084-104391-1-git-send-email-jiapeng.chong@linux.alibaba.com> X-Mailer: git-send-email 1.8.3.1 Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Fix the following sparse warning: drivers/gpu/drm/nouveau/nvkm/subdev/mc/tu102.c:74:1: warning: symbol 'tu102_mc_intr_mask' was not declared. Should it be static? drivers/gpu/drm/nouveau/nvkm/subdev/mc/tu102.c:62:1: warning: symbol 'tu102_mc_intr_rearm' was not declared. Should it be static? Reported-by: Abaci Robot Signed-off-by: Jiapeng Chong --- Changes in v2: -Modified the commit message. drivers/gpu/drm/nouveau/nvkm/subdev/mc/tu102.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/gpu/drm/nouveau/nvkm/subdev/mc/tu102.c b/drivers/gpu/drm/nouveau/nvkm/subdev/mc/tu102.c index 58db83e..7cf659cc 100644 --- a/drivers/gpu/drm/nouveau/nvkm/subdev/mc/tu102.c +++ b/drivers/gpu/drm/nouveau/nvkm/subdev/mc/tu102.c @@ -58,7 +58,7 @@ struct tu102_mc { spin_unlock_irqrestore(&mc->lock, flags); } -void +static void tu102_mc_intr_rearm(struct nvkm_mc *base) { struct tu102_mc *mc = tu102_mc(base); @@ -70,7 +70,7 @@ struct tu102_mc { spin_unlock_irqrestore(&mc->lock, flags); } -void +static void tu102_mc_intr_mask(struct nvkm_mc *base, u32 mask, u32 intr) { struct tu102_mc *mc = tu102_mc(base); -- 1.8.3.1