Received: by 2002:a05:6a10:af89:0:0:0:0 with SMTP id iu9csp3715695pxb; Mon, 24 Jan 2022 16:09:29 -0800 (PST) X-Google-Smtp-Source: ABdhPJz5Y7OLYSWrtRqTGYmCuMuu4mgf7plk0B5YLuwzPpu/g9xu24SQ8tJyQNToQS+qUlwFoFOF X-Received: by 2002:a63:8c4c:: with SMTP id q12mr13364693pgn.149.1643069369192; Mon, 24 Jan 2022 16:09:29 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1643069369; cv=none; d=google.com; s=arc-20160816; b=pUPoQjR1QEPRhTeoBxLMCRKJ/gQ+M6FEr+cTj8+YJPY1P6B1MIiuS3cuTH0xZQHk3M GpTgh5eD2tDxdWUjmCaoJI3r/ODt0UsIGYGqYhBfLG3vNfTnwjNzAA+8jmZNORLMa1pg DanDef792dln6zvDI2HPaRBmI7swrWsOAEw+WrmRNDWmXJ7W5K52Q8Upaw12++iFgehr KwO8o94qpiDWbDhTN+9SijqhHWzlELYEMGeVsduJNvwVRW3dhoUPbNvxrZKDk3/9SSJR o2a89ZQOlIZF2mNfMVo6G8H1fNPVkrRwNNF+/L9a633M+4T+eTaDliWb8x5663yo2y5N qrjw== 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 :user-agent:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=i1gdIYWz6Wc/w4zKCD/IeBUSIiGhxy0AARjL4U8Jku0=; b=f33p1hlpyPuCWlauWz+5tRlTVbClJiXw1/Talg/76a6oNXcA5os4YS4i77/2ThjFjb 5WDIucqocuEwQnJyykHRsSlqAT/7ZolTtGuZdt5JkxjIojkoDG0xkj+/D52WpwGYFd6C q6GVbgT0RQUMb2T7gDFkPcB+9jrf9Ttw2mdEUQo3pxpI8Wf6ktmpYHzDIYM9UizjCWMJ P1x7ywuaWj4aGzfEkHm7rQQlKYyy/Zgs7HbymgDl+vmQQdDec8T5Gr5YN5zlkJ4Y28XX k+VByiadorqM1BdpXXPG2dksRkQHYKHdHAZ62YNqQwbcVbudp4woY1Vwus0KqRilyjnK RT1g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=NMJjnUd1; 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=linuxfoundation.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id 70si14276514pgb.73.2022.01.24.16.09.16; Mon, 24 Jan 2022 16:09:29 -0800 (PST) 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=@linuxfoundation.org header.s=korg header.b=NMJjnUd1; 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=linuxfoundation.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2371093AbiAYAG7 (ORCPT + 99 others); Mon, 24 Jan 2022 19:06:59 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:51058 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1847016AbiAXXSP (ORCPT ); Mon, 24 Jan 2022 18:18:15 -0500 Received: from ams.source.kernel.org (ams.source.kernel.org [IPv6:2604:1380:4601:e00::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 07035C0604EB; Mon, 24 Jan 2022 13:25:45 -0800 (PST) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ams.source.kernel.org (Postfix) with ESMTPS id C2B10B81218; Mon, 24 Jan 2022 21:25:43 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id F12A0C340E4; Mon, 24 Jan 2022 21:25:41 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1643059542; bh=yqSwJVXMzPmSYPIZURiBbJ026IA9VE5I3L1uFRkpvjU=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=NMJjnUd1tyn+EP3QLsF7pVs97o2cexlQt3C85OLh4KNb2ObbRpIw6L7RMbK+oqbGC 4AeGa72zy4eNlXJSGcNFepc3ssBLpMmX4hpQNL4XvMImDbNcrTDcjQ0AIlmnctjTLp TvBk7uVNZI6YXYRVPyXbA8yi/Ev1IgVtgIAK1drw= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Isabella Basso , Alex Deucher , Sasha Levin Subject: [PATCH 5.16 0649/1039] drm/amdgpu: fix amdgpu_ras_mca_query_error_status scope Date: Mon, 24 Jan 2022 19:40:38 +0100 Message-Id: <20220124184147.173655735@linuxfoundation.org> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20220124184125.121143506@linuxfoundation.org> References: <20220124184125.121143506@linuxfoundation.org> User-Agent: quilt/0.66 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 From: Isabella Basso [ Upstream commit 929bb8e200412da36aca4b61209ec26283f9c184 ] This commit fixes the compile-time warning below: warning: no previous prototype for ‘amdgpu_ras_mca_query_error_status’ [-Wmissing-prototypes] Changes since v1: - As suggested by Alexander Deucher: 1. Make function static instead of adding prototype. Signed-off-by: Isabella Basso Signed-off-by: Alex Deucher Signed-off-by: Sasha Levin --- drivers/gpu/drm/amd/amdgpu/amdgpu_ras.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_ras.c b/drivers/gpu/drm/amd/amdgpu/amdgpu_ras.c index 08133de21fdd6..26b7a4a0b44b7 100644 --- a/drivers/gpu/drm/amd/amdgpu/amdgpu_ras.c +++ b/drivers/gpu/drm/amd/amdgpu/amdgpu_ras.c @@ -867,9 +867,9 @@ static int amdgpu_ras_enable_all_features(struct amdgpu_device *adev, /* feature ctl end */ -void amdgpu_ras_mca_query_error_status(struct amdgpu_device *adev, - struct ras_common_if *ras_block, - struct ras_err_data *err_data) +static void amdgpu_ras_mca_query_error_status(struct amdgpu_device *adev, + struct ras_common_if *ras_block, + struct ras_err_data *err_data) { switch (ras_block->sub_block_index) { case AMDGPU_RAS_MCA_BLOCK__MP0: -- 2.34.1