Received: by 2002:a05:6a10:206:0:0:0:0 with SMTP id 6csp703285pxj; Thu, 20 May 2021 20:30:40 -0700 (PDT) X-Google-Smtp-Source: ABdhPJw6yn/aZCSc0pyHuHIUnTZT93RzmZkje3qXDqCHwRHCxdohbE/ZZfDWwfmLlSTxkl2gHlc8 X-Received: by 2002:a05:6e02:1204:: with SMTP id a4mr10080244ilq.158.1621567840449; Thu, 20 May 2021 20:30:40 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1621567840; cv=none; d=google.com; s=arc-20160816; b=HAAX3cvCI+a1I9mbCzX0xmspgE4OWVLyGogfNQfg33IPTS5UITFLEP+VFvvL0BKtXr VfXJbFiarGL9yKavSWj5WytDr9gamHB6M+z70PHd+d+6gQtlpUHB8jzo01+IA0QcI9D3 0VO0eQLEdSIU2efvr8O4QuuWGkvmr+FCJxJOdwCM4IhfmEo4vhFdUzOBQsJ5rlGV0uFQ FW4nX0WmGTJAtEBv/80nlfGznWx4P9IxvzVRBVvjCLN5qTLkqpCc7SUdPPXPRIiM8tlZ B5T8eMEjb5JxepWDiEf1ZMdrnRogd4DJY2ZoPSFbsRMgm1p0hGJXTw+Cfak4LDR86V2a 3ynQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=zlibc4LyGipvg4obFAlhywPDGkR/RwOwB7qJgTWpEQk=; b=W917KTxGRk15CuhW1wnAXooGvUwbbSIP0chq1mZrWTjoGLw5vR4pP1k12CDWxXv2VB PNpcFbcLx9QtglY3Pm7NAKq/UWysMvQNKTid9UpLrBeSkaysBgx/DYU0/YoupspgHEDf 1UqlKPjZNsFKIeqrJSusdL2EmMwRXKcxWiYVt7pFDJzaE1VE1DB/h0VMRqgY9vvV35hB H60jF7rVQNT1fNsxhaKAjRS33V72UOZl/CYID/Z2DhnNu/Nag+p2ZzHfOhgmvGj6CWWm oQbQ8i1/w8Vwl76Z64+2CbtDC1tFjrPb1BrnLIELwTI85wZzlG9LZ1bkkvzxRuaF8Qbq m36A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=UA59QABm; 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 u3si4065761iof.8.2021.05.20.20.30.27; Thu, 20 May 2021 20:30:40 -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=UA59QABm; 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 S242360AbhETMqi (ORCPT + 99 others); Thu, 20 May 2021 08:46:38 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:58780 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S242771AbhETMoQ (ORCPT ); Thu, 20 May 2021 08:44:16 -0400 Received: from mail-wm1-x32a.google.com (mail-wm1-x32a.google.com [IPv6:2a00:1450:4864:20::32a]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 1CAD8C069140 for ; Thu, 20 May 2021 05:03:34 -0700 (PDT) Received: by mail-wm1-x32a.google.com with SMTP id z130so9026205wmg.2 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=kYS11Yj8BUFtloB6GP0HEMF9ZQTwtBG2F08/mwj1hwSC+AdxUroLUQ5mCEQEQhPeXa JKGdlU2C6DzE52oVYM9W9+93GfJcAcpssBY8lbNheUMwRBlFYVcVmAvr0SDV7y5qz6Hu tSJ47MoTfjLA9XyMXCsm1L/XLqZ79AosUtU/K15XdKUhgohB9Cx4Oj3abj1QiTTcP50n XZf8o/U+Pu97IItAYUkfRqwa/UA5DfHSGDfEsgevd5/lrvFaW42Cm7mnk5w6vUnL1PAb l1s9Pnfhb68am8MsjTiOtFERGYKttsdDgVwfXeUOgzgl17XSD3nGwAftkOx1hlzt3hwP yckw== X-Gm-Message-State: AOAM530dJWsENBSUA89zIwAH7aCpNNKjHcZ7EJe4L+FAZG2SPGJzHynm Owtlyp4wPl2oDj7t4j/mTohiSA== 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 Cc: linux-kernel@vger.kernel.org, Alex Deucher , =?UTF-8?q?Christian=20K=C3=B6nig?= , David Airlie , Daniel Vetter , amd-gfx@lists.freedesktop.org, dri-devel@lists.freedesktop.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 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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(-) 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; -- 2.31.1