Received: by 2002:a05:6a10:af89:0:0:0:0 with SMTP id iu9csp3386441pxb; Mon, 17 Jan 2022 19:18:04 -0800 (PST) X-Google-Smtp-Source: ABdhPJzynMiS0Rzfp3xkCxdKc9vlJ57fnjBKEZN1gHJmaMkcIS1/ZnuNvyeciknOu+gS+AIR6l9t X-Received: by 2002:a63:d417:: with SMTP id a23mr5732536pgh.297.1642475884227; Mon, 17 Jan 2022 19:18:04 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1642475884; cv=none; d=google.com; s=arc-20160816; b=pHTa+4noCceV8gyewo1eBVOlile/20QVPqx4gmKkMzmN2z+P5p9bj5ZXLzC/TmMggf FaUA2zw6HZXzsh+ybsw2BkQh6LTWk5BBvRDQNV3TEaLXvY1rABOymNm79Ch1LkAYOaaO YPxPZ7ZxP+2EZRaaiQLwCE4n/y/VJJzmBwvLvdYJOQfBYpR4hFyffx92zMV2hUSx/gJh GXAogjtN3kH86xR4rM34GSikfJchgAkn9Bk+5dCO/21VmddqZsP98vtJBupRV42FLxOc V2QDAs/PzCKucgl8ZSGYR+cNZ0Ya0/m7GNU/Sp0NObKZfWS4tk7svLV25/4hsYhZM+SO QhGg== 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=i1gdIYWz6Wc/w4zKCD/IeBUSIiGhxy0AARjL4U8Jku0=; b=xwnJbbT58WxzLSU7fC19FXvePRNRuPFvTTgxFxEPUsSFDh5uj5eseso3MvqFwtVxAS BBiHLwGmpvib2QkrUWqr2s3CBvBftG3552K4PLsySLQS75XjGAhHJp7QvBXqsRyTDPBH GKGGFBRC7VfhILbjJJAIG+LHtstL0m2GSFo0QWkKMEGizLgaCutOAtIINEQLFKv3+Xdb +iDy+hnfIn8N4rVzaJYgTCu4VrwCr4ExO7VBNq9a+DFNr9E7VZxRM5j2By/XNvFO+ey5 8OHf2LnZjVxAMl75+616lT/LCpPH56nHUin9BmVPN7u6DpofmohCv4cI670mtd+Udyhc HhLA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b="lDBz/6Mv"; 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=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id q5si17834801pfj.253.2022.01.17.19.17.51; Mon, 17 Jan 2022 19:18:04 -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=@kernel.org header.s=k20201202 header.b="lDBz/6Mv"; 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=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S245599AbiARC2R (ORCPT + 99 others); Mon, 17 Jan 2022 21:28:17 -0500 Received: from dfw.source.kernel.org ([139.178.84.217]:43186 "EHLO dfw.source.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S245589AbiARC0J (ORCPT ); Mon, 17 Jan 2022 21:26:09 -0500 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 dfw.source.kernel.org (Postfix) with ESMTPS id 2690260C95; Tue, 18 Jan 2022 02:26:09 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id D2CABC36AE3; Tue, 18 Jan 2022 02:26:06 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1642472768; bh=yqSwJVXMzPmSYPIZURiBbJ026IA9VE5I3L1uFRkpvjU=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=lDBz/6MvTvAoJF2vOspQ0CZY325ZVQaeEpqUewId82kG27GRrpcq7l2O0qPH93t/k SWvHLvKABmDNNI391ghVeCuD3PnLCKU0sT2sEMNBq7/neSgynYbFybxINlswu8VYmG YhBlbXn//cPNE+CNxXDVKLpFYNsQlAi2JFcbXkkBrHhklnv48MXgbenhfglCukELmQ JXcCNGBN08AbqrDrCTAsY5HNxbZdHsqbJ1mnb9CC7JbM9aamX+bsHRmWdM5GznSJSB ZYIdFvP3h7lh6pUbVjqiFZNG7ZvUBo1hrpLPbttxc754X5sfKrQCDcT/Qre6YZi2At DCfKs+s6fN6xA== From: Sasha Levin To: linux-kernel@vger.kernel.org, stable@vger.kernel.org Cc: Isabella Basso , Alex Deucher , Sasha Levin , christian.koenig@amd.com, Xinhui.Pan@amd.com, airlied@linux.ie, daniel@ffwll.ch, Hawking.Zhang@amd.com, john.clements@amd.com, luben.tuikov@amd.com, Dennis.Li@amd.com, Stanley.Yang@amd.com, mukul.joshi@amd.com, nirmoy.das@amd.com, amd-gfx@lists.freedesktop.org, dri-devel@lists.freedesktop.org Subject: [PATCH AUTOSEL 5.16 131/217] drm/amdgpu: fix amdgpu_ras_mca_query_error_status scope Date: Mon, 17 Jan 2022 21:18:14 -0500 Message-Id: <20220118021940.1942199-131-sashal@kernel.org> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20220118021940.1942199-1-sashal@kernel.org> References: <20220118021940.1942199-1-sashal@kernel.org> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 X-stable: review X-Patchwork-Hint: Ignore 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