From patchwork Wed May 26 08:47:03 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Lee Jones X-Patchwork-Id: 448160 Delivered-To: patch@linaro.org Received: by 2002:a02:7a1b:0:0:0:0:0 with SMTP id a27csp5017433jac; Wed, 26 May 2021 01:48:33 -0700 (PDT) X-Google-Smtp-Source: ABdhPJz6s/AiN/tytb5VjBGMRyNjHmThhG7x+KJeC926XT6Bt3eY/nbc5jXTjUwERKydkS6pMVck X-Received: by 2002:a63:fd44:: with SMTP id m4mr24301200pgj.396.1622018912859; Wed, 26 May 2021 01:48:32 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1622018912; cv=none; d=google.com; s=arc-20160816; b=mJMxn4aAK5zjaIK6i14nK5cL7w3UVbq8jK1NWHq+hWmhnz318kO/XEeKLxW4kLkDMM Gn8n4xgwTNpDjl9iCyF83QR62z2HBeq43tKW1QzsjHpKA/P0DFT3lHFhpAzGwFUKeKME FIAeM2axexNqJbtp0dI1Z0eixYxUL4fZas9tHkXdz89R8ga8XY0M8ADaM22Y1+3hp9xn C0Vhslk7Obej1KvnA8wdW+ew8S3Z0wOGVyUNbJpOPW9M0ISLOpFDZp40V22vefiMszJM zvGcJ4RYI5oC/CQDLinWu+cPTCsDpLAdGorMZjPdYOafX+1YxR5Fm5DXvFps5q/9kjZE Q30A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:cc:list-subscribe:list-help:list-post:list-archive :list-unsubscribe:list-id:precedence:content-transfer-encoding :mime-version:references:in-reply-to:message-id:date:subject:to:from :dkim-signature:delivered-to; bh=SjYtCEx4Gm+TGSpGlmvvhCGW5wnbP6a4KsRuIEipo4s=; b=R/p9kH1AaO4U2Q+uFoJTIlrFg9Rmvx6Yd5vPoMjNVAuSH/mZhtiObycAOP2PKr39kH N+qd8n7xjG7Iz16ARstzurvvBT6ZDjRQqstkExndjkGIoOGG2YPyQR66Lf6ESqZW1H2T 91+pl4D9iuz9Ac+/Qi1hNmtOuRQOkWj1lzmhS2TezwSDHb3nhBYujLLnM0YR50GUWyJB 3Zwifz/yGZkEXTEmyRQpg652N/fhaSFchKusqkBrza1hICCIk+8RAaB5aLTw/t8ERY4O BxdR3evkQTrYPNpKPRKk3m4cM/eNGxJrBOUBT5F9ylLQaEgoFLcXwxMb+ZScjBsQ70Ec Yc0g== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@linaro.org header.s=google header.b=k1w7aNlL; spf=pass (google.com: best guess record for domain of dri-devel-bounces@lists.freedesktop.org designates 131.252.210.177 as permitted sender) smtp.mailfrom=dri-devel-bounces@lists.freedesktop.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from gabe.freedesktop.org (gabe.freedesktop.org. [131.252.210.177]) by mx.google.com with ESMTPS id w5si11166781pgf.203.2021.05.26.01.48.32 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 26 May 2021 01:48:32 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of dri-devel-bounces@lists.freedesktop.org designates 131.252.210.177 as permitted sender) client-ip=131.252.210.177; Authentication-Results: mx.google.com; dkim=fail header.i=@linaro.org header.s=google header.b=k1w7aNlL; spf=pass (google.com: best guess record for domain of dri-devel-bounces@lists.freedesktop.org designates 131.252.210.177 as permitted sender) smtp.mailfrom=dri-devel-bounces@lists.freedesktop.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id 9055E6EC5A; Wed, 26 May 2021 08:48:23 +0000 (UTC) X-Original-To: dri-devel@lists.freedesktop.org Delivered-To: dri-devel@lists.freedesktop.org Received: from mail-wr1-x433.google.com (mail-wr1-x433.google.com [IPv6:2a00:1450:4864:20::433]) by gabe.freedesktop.org (Postfix) with ESMTPS id E2F006E4C5 for ; Wed, 26 May 2021 08:47:42 +0000 (UTC) Received: by mail-wr1-x433.google.com with SMTP id v12so204308wrq.6 for ; Wed, 26 May 2021 01:47:42 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=SjYtCEx4Gm+TGSpGlmvvhCGW5wnbP6a4KsRuIEipo4s=; b=k1w7aNlLT1e33HjFRfzfE/UNKNo0S/GpjOvyoBjBf/hSBqbU+mHpuVOC4MwqDZJDv0 snC2Kzgy1Bmynda/6vGqWZAcIoOhIL201vTq6tYQVFZD/1G23DST+cA1Bn0EErZVOVWh J+81I50IbJqyFwwd+QKxO+UmcFzA0CQpPxsEmbzJrBnenMZs+9twXLjtaCkJvWf4LXLL HjC+MCrFrmUZNx2KrSyaJHPpyqc+jQiJZ0HlkjWoceJSs5UR2J4Lk4BMmvZSPhCMLLJB eeMSoO4uXccH9L0S4w9Rk9YQ5zJkC5Z/f2nJmK6Kl/ob+2DCmdVDD51nnJdAiYtHcGFO 5z3w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=SjYtCEx4Gm+TGSpGlmvvhCGW5wnbP6a4KsRuIEipo4s=; b=ns9vtMYpguCqjuml3rC8zFzsY3v3bagddOizW2WVJplIkPKSfjXO+KvgSl8GXLkmuV RoL2Y3cri5YHIjstJlHrdPftQ9angJpBF9cedUuZmO5MRJtQ6ZQr87w3wcdlJhysPvjP 8izEjmgHFnvSCoSJ64DLQeqVzfc+m023IRkHB/XLlOBNhEqJfCVWMcnNo7dXQMqhH0oq cjGT27//qRWjkpWtAzvWOMguqFCsjChLP1B9H5QV23dkTbk1jVK2SLvEYQYS/3FERJzQ 7qjMWcjAno/wW4NZgT+Ze7R8/0L6DKLXy5NyDyhRt3KPvT2rNFPM8ZTSINzlHYZMjMiQ RvHw== X-Gm-Message-State: AOAM533fAC5uFj+t7RBWM94S6sACWMkoLgw5dWmH2URqt0MXXAM2Ne4z ySOhPxgCuB9MFkaHS77/dzyjpQ== X-Received: by 2002:adf:f9d0:: with SMTP id w16mr32450663wrr.336.1622018861604; Wed, 26 May 2021 01:47:41 -0700 (PDT) Received: from dell.default ([91.110.221.223]) by smtp.gmail.com with ESMTPSA id l18sm18911918wrt.97.2021.05.26.01.47.40 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 26 May 2021 01:47:41 -0700 (PDT) From: Lee Jones To: lee.jones@linaro.org Subject: [PATCH 11/34] drm/nouveau/nvkm/subdev/mc/tu102: Make functions called by reference static Date: Wed, 26 May 2021 09:47:03 +0100 Message-Id: <20210526084726.552052-12-lee.jones@linaro.org> X-Mailer: git-send-email 2.31.1 In-Reply-To: <20210526084726.552052-1-lee.jones@linaro.org> References: <20210526084726.552052-1-lee.jones@linaro.org> MIME-Version: 1.0 X-BeenThere: dri-devel@lists.freedesktop.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Direct Rendering Infrastructure - Development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: David Airlie , nouveau@lists.freedesktop.org, Alistair Popple , linux-kernel@vger.kernel.org, dri-devel@lists.freedesktop.org, Ben Skeggs Errors-To: dri-devel-bounces@lists.freedesktop.org Sender: "dri-devel" Fixes the following W=1 kernel build warning(s): drivers/gpu/drm/nouveau/nvkm/subdev/mc/tu102.c:50:1: warning: no previous prototype for ‘tu102_mc_intr_unarm’ [-Wmissing-prototypes] drivers/gpu/drm/nouveau/nvkm/subdev/mc/tu102.c:62:1: warning: no previous prototype for ‘tu102_mc_intr_rearm’ [-Wmissing-prototypes] drivers/gpu/drm/nouveau/nvkm/subdev/mc/tu102.c:74:1: warning: no previous prototype for ‘tu102_mc_intr_mask’ [-Wmissing-prototypes] Cc: Ben Skeggs Cc: David Airlie Cc: Daniel Vetter Cc: Alistair Popple Cc: dri-devel@lists.freedesktop.org Cc: nouveau@lists.freedesktop.org Signed-off-by: Lee Jones --- drivers/gpu/drm/nouveau/nvkm/subdev/mc/tu102.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) -- 2.31.1 Reviewed-by: Karol Herbst diff --git a/drivers/gpu/drm/nouveau/nvkm/subdev/mc/tu102.c b/drivers/gpu/drm/nouveau/nvkm/subdev/mc/tu102.c index 58db83ebadc5f..a96084b34a788 100644 --- a/drivers/gpu/drm/nouveau/nvkm/subdev/mc/tu102.c +++ b/drivers/gpu/drm/nouveau/nvkm/subdev/mc/tu102.c @@ -46,7 +46,7 @@ tu102_mc_intr_update(struct tu102_mc *mc) nvkm_wr32(device, 0xb81610, 0x6); } -void +static void tu102_mc_intr_unarm(struct nvkm_mc *base) { struct tu102_mc *mc = tu102_mc(base); @@ -58,7 +58,7 @@ tu102_mc_intr_unarm(struct nvkm_mc *base) 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 @@ tu102_mc_intr_rearm(struct nvkm_mc *base) 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);