From patchwork Thu May 20 12:02:40 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Lee Jones X-Patchwork-Id: 443256 Delivered-To: patch@linaro.org Received: by 2002:a02:7a1b:0:0:0:0:0 with SMTP id a27csp2223531jac; Thu, 20 May 2021 05:03:36 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzeHWLc38RbVkzW4uzzCvQZrdvTroJjZewY7W6h6OVctZkTR3H1q7VQFEJD0l+FMGPpIrTE X-Received: by 2002:a63:3e8c:: with SMTP id l134mr4311230pga.202.1621512216719; Thu, 20 May 2021 05:03:36 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1621512216; cv=none; d=google.com; s=arc-20160816; b=m7vmVJpjUxi4ulVDZxUb1T6KHNnV1janzpx3GfIhDAATzgvJKH21nkzQ0wgFdd1Egc cYvbY2J+H/51NbizleLQM5B31Tcru6xjd9DiP7c5jUISBq8hYdysM3MYTh6odGlUHxv/ 2fW6apNwsKNXdvb6f3hk/KOGJ1R/IFEGGvkMkAKyME43U3Qj3E1mCuvs/nibW/7Q09gX kUuWdiNNf7nAN8m1tS4tMPavVp7JjZBSJ9HRjRjxHu4Fje3XwmjPhBX1w7uSVq1GzTUT Vb9/NkTVCxv+5CE94ovbCtQMpBx0N6DTO6tHP1ENrDyZX/szwNx/8EcxoEv9ct8tKRnR S6uw== 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=zlibc4LyGipvg4obFAlhywPDGkR/RwOwB7qJgTWpEQk=; b=i+rm8/vEyy564qgHbA5SK+9k8NxiMFghBSfMc8k9i+23Es6vEFhelHfePZGgp6qXpi xkTRArBB1ejrCD/QkNLW6h6AOj/Rhqq5A7fvSIZNH9Z+Z9n/VxG8fM4e3eWKDaIWrzIe U+V+Jq9kuZOGotWnCSVw6olpij1TIiIJz9WBg+slayAuw9jwQ8hg5UpCgdDj240aqkCG /jmhk+1+fsGr3M9QwZqviiCToVI/C72K6ciN6fHrsyxnEjMrZGSaBPVP2nsZVO6RyIpX 6PYUSt6nC5JNbtFS1nb/XqZMN8oZELjwgcnI/LUkgQj0ILRRASKld2jKEE4msGqoCseZ 27lA== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@linaro.org header.s=google header.b=UA59QABm; spf=pass (google.com: best guess record for domain of dri-devel-bounces@lists.freedesktop.org designates 2610:10:20:722:a800:ff:fe36:1795 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. [2610:10:20:722:a800:ff:fe36:1795]) by mx.google.com with ESMTPS id 196si3253701pgg.306.2021.05.20.05.03.36 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 20 May 2021 05:03:36 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of dri-devel-bounces@lists.freedesktop.org designates 2610:10:20:722:a800:ff:fe36:1795 as permitted sender) client-ip=2610:10:20:722:a800:ff:fe36:1795; Authentication-Results: mx.google.com; dkim=fail header.i=@linaro.org header.s=google header.b=UA59QABm; spf=pass (google.com: best guess record for domain of dri-devel-bounces@lists.freedesktop.org designates 2610:10:20:722:a800:ff:fe36:1795 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 C1DCE6F411; Thu, 20 May 2021 12:03:34 +0000 (UTC) X-Original-To: dri-devel@lists.freedesktop.org Delivered-To: dri-devel@lists.freedesktop.org Received: from mail-wm1-x329.google.com (mail-wm1-x329.google.com [IPv6:2a00:1450:4864:20::329]) by gabe.freedesktop.org (Postfix) with ESMTPS id 28A506F41C for ; Thu, 20 May 2021 12:03:34 +0000 (UTC) Received: by mail-wm1-x329.google.com with SMTP id 62so7997980wmb.3 for ; Thu, 20 May 2021 05:03:34 -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=zlibc4LyGipvg4obFAlhywPDGkR/RwOwB7qJgTWpEQk=; b=UA59QABmfviBFeZfpaAPoiLqz5qey6xTmF0t9hqA5QLsmKpXnUkVTCnx0qvs0zKJ8C z2bJ3m2Fw2kqMgDcGlAR5byvIHNNEz6vSBKq7OD8aL/kH5wFAaL7lQv3F/Ofen/BzpNu m6x/RTaH8fT5BM81ukjIZ2TODrhhdl9y6fuVJ/wf5dhUZwmo0v4gSn3cxh0XIOpdG59f aFYlwPkIfxVZZWi3DL/vzZCK0Y9G2Xn50Yecd7IskuY7X8P33ypXjiNExPQGdnISLlAS 3j+DHnslT2hE+iZiS305JG439KEM8SnpG0/Mzb4KMi3RNvyxItyN73kDYJJBFipMjXhc BEbA== 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=zlibc4LyGipvg4obFAlhywPDGkR/RwOwB7qJgTWpEQk=; b=b8FYzvT4AZhFGFQphUNh0w4inI41/w+isgIk/4azj64nwH0zwQdoeQi0l76391y6eb uBIn9OdC94qA5B6kswiXPuUEITZAXZxF/KRTzw8gtSIPnrI+wcHTTZU6F3ZS2kQi7+rI ex7p0UeC8HDERRvcj2Cn1kxCvsE7SQNUgpA26F4HU9a41LG+OESjE29HOg79uMDsWVk1 dbIrQvvfp3sV8pbWc+NR/0KycRrzhk9xPMLYYb1tv9pTwB3Prv0po3rkwTXUjLMuFyKO bcgqBKm7CwneitakPom0VRCay2Ye14/CvamvIy8V2DEc3hcgAcXPIr/zGEmqFFj0f/om w1wA== X-Gm-Message-State: AOAM530HcE/AjCcPTAul5lMiyk8Xuj/3xsdxiMnbBsJuTQpSYruk552P 4TbSsaw5xYGGKSQGlN8tspvDYA== X-Received: by 2002:a1c:5582:: with SMTP id j124mr3405666wmb.0.1621512202682; Thu, 20 May 2021 05:03:22 -0700 (PDT) Received: from dell.default ([91.110.221.215]) by smtp.gmail.com with ESMTPSA id j10sm2886332wrt.32.2021.05.20.05.03.21 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 20 May 2021 05:03:22 -0700 (PDT) From: Lee Jones To: lee.jones@linaro.org Subject: [PATCH 30/38] drm/amd/amdgpu/gfx_v9_4_2: Mark functions called by reference as static Date: Thu, 20 May 2021 13:02:40 +0100 Message-Id: <20210520120248.3464013-31-lee.jones@linaro.org> X-Mailer: git-send-email 2.31.1 In-Reply-To: <20210520120248.3464013-1-lee.jones@linaro.org> References: <20210520120248.3464013-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 , linux-kernel@vger.kernel.org, amd-gfx@lists.freedesktop.org, dri-devel@lists.freedesktop.org, Alex Deucher , =?utf-8?q?Christian_K=C3=B6?= =?utf-8?q?nig?= Errors-To: dri-devel-bounces@lists.freedesktop.org Sender: "dri-devel" Fixes the following W=1 kernel build warning(s): drivers/gpu/drm/amd/amdgpu/gfx_v9_4_2.c:1008:5: warning: no previous prototype for ‘gfx_v9_4_2_query_ras_error_count’ [-Wmissing-prototypes] drivers/gpu/drm/amd/amdgpu/gfx_v9_4_2.c:1054:6: warning: no previous prototype for ‘gfx_v9_4_2_reset_ras_error_count’ [-Wmissing-prototypes] drivers/gpu/drm/amd/amdgpu/gfx_v9_4_2.c:1063:5: warning: no previous prototype for ‘gfx_v9_4_2_ras_error_inject’ [-Wmissing-prototypes] drivers/gpu/drm/amd/amdgpu/gfx_v9_4_2.c:1133:6: warning: no previous prototype for ‘gfx_v9_4_2_query_ras_error_status’ [-Wmissing-prototypes] drivers/gpu/drm/amd/amdgpu/gfx_v9_4_2.c:1143:6: warning: no previous prototype for ‘gfx_v9_4_2_reset_ras_error_status’ [-Wmissing-prototypes] drivers/gpu/drm/amd/amdgpu/gfx_v9_4_2.c:1153:6: warning: no previous prototype for ‘gfx_v9_4_2_enable_watchdog_timer’ [-Wmissing-prototypes] Cc: Alex Deucher Cc: "Christian König" Cc: David Airlie Cc: Daniel Vetter Cc: amd-gfx@lists.freedesktop.org Cc: dri-devel@lists.freedesktop.org Signed-off-by: Lee Jones --- drivers/gpu/drm/amd/amdgpu/gfx_v9_4_2.c | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) -- 2.31.1 diff --git a/drivers/gpu/drm/amd/amdgpu/gfx_v9_4_2.c b/drivers/gpu/drm/amd/amdgpu/gfx_v9_4_2.c index dbad9ef002d59..87ec96a18a5dd 100644 --- a/drivers/gpu/drm/amd/amdgpu/gfx_v9_4_2.c +++ b/drivers/gpu/drm/amd/amdgpu/gfx_v9_4_2.c @@ -1641,8 +1641,8 @@ static int gfx_v9_4_2_query_utc_edc_count(struct amdgpu_device *adev, return 0; } -int gfx_v9_4_2_query_ras_error_count(struct amdgpu_device *adev, - void *ras_error_status) +static int gfx_v9_4_2_query_ras_error_count(struct amdgpu_device *adev, + void *ras_error_status) { struct ras_err_data *err_data = (struct ras_err_data *)ras_error_status; uint32_t sec_count = 0, ded_count = 0; @@ -1690,7 +1690,7 @@ static void gfx_v9_4_2_reset_ea_err_status(struct amdgpu_device *adev) mutex_unlock(&adev->grbm_idx_mutex); } -void gfx_v9_4_2_reset_ras_error_count(struct amdgpu_device *adev) +static void gfx_v9_4_2_reset_ras_error_count(struct amdgpu_device *adev) { if (!amdgpu_ras_is_supported(adev, AMDGPU_RAS_BLOCK__GFX)) return; @@ -1699,7 +1699,7 @@ void gfx_v9_4_2_reset_ras_error_count(struct amdgpu_device *adev) gfx_v9_4_2_query_utc_edc_count(adev, NULL, NULL); } -int gfx_v9_4_2_ras_error_inject(struct amdgpu_device *adev, void *inject_if) +static int gfx_v9_4_2_ras_error_inject(struct amdgpu_device *adev, void *inject_if) { struct ras_inject_if *info = (struct ras_inject_if *)inject_if; int ret; @@ -1772,7 +1772,7 @@ static void gfx_v9_4_2_query_utc_err_status(struct amdgpu_device *adev) } } -void gfx_v9_4_2_query_ras_error_status(struct amdgpu_device *adev) +static void gfx_v9_4_2_query_ras_error_status(struct amdgpu_device *adev) { if (!amdgpu_ras_is_supported(adev, AMDGPU_RAS_BLOCK__GFX)) return; @@ -1782,7 +1782,7 @@ void gfx_v9_4_2_query_ras_error_status(struct amdgpu_device *adev) gfx_v9_4_2_query_sq_timeout_status(adev); } -void gfx_v9_4_2_reset_ras_error_status(struct amdgpu_device *adev) +static void gfx_v9_4_2_reset_ras_error_status(struct amdgpu_device *adev) { if (!amdgpu_ras_is_supported(adev, AMDGPU_RAS_BLOCK__GFX)) return; @@ -1792,7 +1792,7 @@ void gfx_v9_4_2_reset_ras_error_status(struct amdgpu_device *adev) gfx_v9_4_2_reset_sq_timeout_status(adev); } -void gfx_v9_4_2_enable_watchdog_timer(struct amdgpu_device *adev) +static void gfx_v9_4_2_enable_watchdog_timer(struct amdgpu_device *adev) { uint32_t i; uint32_t data;