From nobody Thu Dec 18 12:35:43 2025 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 7BE67C77B61 for ; Mon, 1 May 2023 14:32:30 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232476AbjEAOc1 (ORCPT ); Mon, 1 May 2023 10:32:27 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:44976 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229556AbjEAOcZ (ORCPT ); Mon, 1 May 2023 10:32:25 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [139.178.84.217]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 68448134 for ; Mon, 1 May 2023 07:32:24 -0700 (PDT) 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 F413860E33 for ; Mon, 1 May 2023 14:32:23 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 52335C433EF; Mon, 1 May 2023 14:32:19 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1682951543; bh=rszZaRt349rSKpXDtTUZKWMXkHmt5IGp9/2/HR6rRyo=; h=From:To:Cc:Subject:Date:From; b=p+8PyNo7PFE8jPejPTz6PdMaOMifB56eMcoqYWkzRafBVBPIq6ueWOSOcti27tEan 0+X4BCVjwv6ajyGGhXqgMJqi+LfhrrGDt372wsBk9Gq/0OiRhkUuTnLxgIcnPiwT+m +9REaBkA3YYdFd3pdOITw7qyNiqjYvVZkADZ/hANf+5NMFceiZWekLkDhpw/RL7z+E tM3FYFzyZBtDjKnrOdPeNqgXn5kIKdG2gKdWQvlYra1Ckm5C3fF08HWo09UVh356i7 LbUEgvFT+/1/eY9sU/bI+tc0i51tpj05fwGdRlosrNK1koDNcV8rERdJJ8bIhAsjzh 9bW0neZkTfifA== From: Arnd Bergmann To: Harry Wentland , Leo Li , Rodrigo Siqueira , Alex Deucher , =?UTF-8?q?Christian=20K=C3=B6nig?= Cc: Arnd Bergmann , kernel test robot , "Pan, Xinhui" , David Airlie , Daniel Vetter , Qingqing Zhuo , Aurabindo Pillai , Hans de Goede , Hersen Wu , Stylon Wang , Wenchieh Chien , Alex Hung , amd-gfx@lists.freedesktop.org, dri-devel@lists.freedesktop.org, linux-kernel@vger.kernel.org Subject: [PATCH] drm/amd/display: mark amdgpu_dm_connector_funcs_force static Date: Mon, 1 May 2023 16:31:53 +0200 Message-Id: <20230501143213.1571373-1-arnd@kernel.org> X-Mailer: git-send-email 2.39.2 MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Type: text/plain; charset="utf-8" From: Arnd Bergmann A global function without a header prototype has made it into linux-next during the merge window: drivers/gpu/drm/amd/amdgpu/../display/amdgpu_dm/amdgpu_dm.c:6339:6: error: = no previous prototype for 'amdgpu_dm_connector_funcs_force' [-Werror=3Dmiss= ing-prototypes] Mark the function static instead, as there are no other callers outside this file. Fixes: 0ba4a784a145 ("drm/amd/display: implement force function in amdgpu_d= m_connector_funcs") Reported-by: kernel test robot Link: https://lore.kernel.org/oe-kbuild-all/202304251640.JClqTim9-lkp@intel= .com/ Signed-off-by: Arnd Bergmann --- This was previously reported by a bot for the drm-next tree but remains broken in linux-next-20230428. Sending it out as I needed this fix for my local builds. --- drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c b/drivers/gp= u/drm/amd/display/amdgpu_dm/amdgpu_dm.c index 3647d21d688f..2bbb2988942d 100644 --- a/drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c +++ b/drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c @@ -6336,7 +6336,7 @@ amdgpu_dm_connector_late_register(struct drm_connecto= r *connector) return 0; } =20 -void amdgpu_dm_connector_funcs_force(struct drm_connector *connector) +static void amdgpu_dm_connector_funcs_force(struct drm_connector *connecto= r) { struct amdgpu_dm_connector *aconnector =3D to_amdgpu_dm_connector(connect= or); struct dc_link *dc_link =3D aconnector->dc_link; --=20 2.39.2