From nobody Mon Feb 9 17:41:07 2026 Received: from smtp2.math.uni-bielefeld.de (smtp2.math.uni-bielefeld.de [129.70.45.13]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 48DBE28377 for ; Sun, 4 Aug 2024 14:07:29 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=129.70.45.13 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1722780452; cv=none; b=ZIu3qW8+UcUEXsKuPQRqy1Oqt8P65OSXxeD+QDiG29vCjAjec+d/E24kmI1FPq5RGiGJh78u+JQRPWAlDMCAn0PUdYQROJCz2UApPlAYS1GtbyWisub0slhik97f1/wlXHFhfOk22HpMh8N/ceK6w5MRMb0g8LMnUfD+BkkgkQU= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1722780452; c=relaxed/simple; bh=at9u804XWKg105DvZq8kuM2cMuEa9Th7oiyNnGkRZhQ=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=KYw6V9lkwSUG2Lf0OOlw8FHpyb4C4lr8rAhey7NZIDZJx8yfsQqjLiYObO1YDa7upVQsvTUpwP7aryTtemys691uRqUTHOP5iOEi4eDBUlANOFQsO3Uw8DjNe8DuQMXQKH0z4I/uz/O4aArjILwxgivm0sxR2kMBAs6SlDgGj5U= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=math.uni-bielefeld.de; spf=pass smtp.mailfrom=math.uni-bielefeld.de; dkim=pass (2048-bit key) header.d=math.uni-bielefeld.de header.i=@math.uni-bielefeld.de header.b=G6Lhjg+O; arc=none smtp.client-ip=129.70.45.13 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=math.uni-bielefeld.de Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=math.uni-bielefeld.de Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=math.uni-bielefeld.de header.i=@math.uni-bielefeld.de header.b="G6Lhjg+O" DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=math.uni-bielefeld.de; s=default; t=1722779929; bh=at9u804XWKg105DvZq8kuM2cMuEa9Th7oiyNnGkRZhQ=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=G6Lhjg+OV9MQqksP/lvS31W1wqwAVAyzH64mOHi8k1TYHnr7kr6A0Uf43ZBIpYWWH 2F5ONhHMQcFoVbRkEvBpNRen/gCE1D3p1AR8gAQBNAPF8uw0GpWRNnz7iMJ4xKIzaD fzVYjxWOeJUavESsrK6FSmItq7+a45gkEccdMITzaoUkgliZVhD2vboP3px9JNwa7E BFJkLXyCBiLjavoI1dvdNhgUP8bnyGOuLUjDRI/0x/gjv4ERHiD2jrrZdcmafLqsLd NkX+j44rpLLEwSD/g3cRaEy9Q45dVlJPxb7rrCudDR2ueWs+48zLN2I+fLCWlknCte mQlcBNVsDLktw== Received: from localhost (dslb-088-074-203-146.088.074.pools.vodafone-ip.de [88.74.203.146]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange ECDHE (prime256v1) server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by smtp2.math.uni-bielefeld.de (Postfix) with ESMTPSA id 3A74C20C43; Sun, 4 Aug 2024 15:58:49 +0200 (CEST) From: tjakobi@math.uni-bielefeld.de To: Alex Deucher , =?UTF-8?q?Christian=20K=C3=B6nig?= , "Pan, Xinhui" , David Airlie , Daniel Vetter Cc: Tobias Jakobi , amd-gfx@lists.freedesktop.org, dri-devel@lists.freedesktop.org, linux-kernel@vger.kernel.org Subject: [PATCH 1/3] drm/amd: Make amd_ip_funcs static for SDMA v5.0 Date: Sun, 4 Aug 2024 15:56:27 +0200 Message-ID: <3b29b06f95f051d9b43796105a306a30a1c64347.1722778722.git.tjakobi@math.uni-bielefeld.de> X-Mailer: git-send-email 2.44.2 In-Reply-To: References: Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" From: Tobias Jakobi The struct can be static, as it is only used in this translation unit. Signed-off-by: Tobias Jakobi --- drivers/gpu/drm/amd/amdgpu/sdma_v5_0.c | 2 +- drivers/gpu/drm/amd/amdgpu/sdma_v5_0.h | 1 - 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/drivers/gpu/drm/amd/amdgpu/sdma_v5_0.c b/drivers/gpu/drm/amd/a= mdgpu/sdma_v5_0.c index b7d33d78bce0..846c05332cd8 100644 --- a/drivers/gpu/drm/amd/amdgpu/sdma_v5_0.c +++ b/drivers/gpu/drm/amd/amdgpu/sdma_v5_0.c @@ -1718,7 +1718,7 @@ static void sdma_v5_0_get_clockgating_state(void *han= dle, u64 *flags) *flags |=3D AMD_CG_SUPPORT_SDMA_LS; } =20 -const struct amd_ip_funcs sdma_v5_0_ip_funcs =3D { +static const struct amd_ip_funcs sdma_v5_0_ip_funcs =3D { .name =3D "sdma_v5_0", .early_init =3D sdma_v5_0_early_init, .late_init =3D NULL, diff --git a/drivers/gpu/drm/amd/amdgpu/sdma_v5_0.h b/drivers/gpu/drm/amd/a= mdgpu/sdma_v5_0.h index d4e3c2e696f6..2ab71f21755a 100644 --- a/drivers/gpu/drm/amd/amdgpu/sdma_v5_0.h +++ b/drivers/gpu/drm/amd/amdgpu/sdma_v5_0.h @@ -24,7 +24,6 @@ #ifndef __SDMA_V5_0_H__ #define __SDMA_V5_0_H__ =20 -extern const struct amd_ip_funcs sdma_v5_0_ip_funcs; extern const struct amdgpu_ip_block_version sdma_v5_0_ip_block; =20 #endif /* __SDMA_V5_0_H__ */ --=20 2.44.2