Received: by 2002:a05:6358:9144:b0:117:f937:c515 with SMTP id r4csp5557108rwr; Mon, 1 May 2023 07:36:42 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ73xHuofXzPYFI52EdK/lb9JrPJShs1bTegcnxQzHt5oXMqM3k0RL+rfQqLy80H0YB/IvPn X-Received: by 2002:a17:902:f68b:b0:1a2:58f1:5e1d with SMTP id l11-20020a170902f68b00b001a258f15e1dmr17323979plg.36.1682951802106; Mon, 01 May 2023 07:36:42 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1682951802; cv=none; d=google.com; s=arc-20160816; b=mqX4dMa8iEuc3BQaSypLe71jLtX4b/azYBs5QLYaDpghnRshiwmpiK1r222Vd7XzWb ldLHGLZawIRMpv9VxhUMw5WZTgY87H6gB2EFHsjWxGYTSRzWhCzaCMOFFNuRhfnUvM0v l14dC+T1r4tjLEiT1ufwdnxZwD1M9EBBNRRMkoRtUkziecyxqJ2MmwauhpnBmjIYdxW5 s2MK7fxR88bfv+pR7qSh2pcpf3NgMdQl27DxUCfcqxxW9b/XPhqv7A5PC90nOm2WDKS5 ZwJhGe0nG7rzEhbVUt42k2VNK+cliLJbOT3D7NbTcLwPd8QRMZe3n27wIGF5Mhp30pY6 U4jw== 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 :message-id:date:subject:cc:to:from:dkim-signature; bh=0S0HsUoHyOc4K/1gGmeHOEvKwhc6tUKlOes+TfcMelI=; b=qOaR6KIoCHabh+9sJ8PF62uWNvVXRdE/b2n5x/CZvv3zwC3FbxZddArA7hnpxg9aLX IVWiGiH1kFU2ei9iuuEzctfgS7ha1bMMtPmlXrw8W2+RomxSsI7Ki7tks9oK0XXGImdC BFO/97CWkQtL7nMQnWbKQBELu88TpCIsQ3toQB9HlKKYYlyH/D+gq003pyMcEWYHFCnO z9HnQKF2Su+wbc9UGInBseFI2ZbifBHTweHrJU4y7odVuqock9eq5Mfe2WkbuLP/pGKS 87gE4qrfHlBcbUt5CA5iCFu77hNxPfbZ+cPhNDBIxyjpyLwdvPv8uiYdHWM5mT4uMq3E SwsQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=p+8PyNo7; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 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 out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id e8-20020a170903240800b001a1be5ca65asi28269508plo.528.2023.05.01.07.36.04; Mon, 01 May 2023 07:36:42 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=p+8PyNo7; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 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 S232422AbjEAOc0 (ORCPT + 99 others); Mon, 1 May 2023 10:32:26 -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: 8bit X-Spam-Status: No, score=-7.3 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_HI, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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=missing-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_dm_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/gpu/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_connector *connector) return 0; } -void amdgpu_dm_connector_funcs_force(struct drm_connector *connector) +static void amdgpu_dm_connector_funcs_force(struct drm_connector *connector) { struct amdgpu_dm_connector *aconnector = to_amdgpu_dm_connector(connector); struct dc_link *dc_link = aconnector->dc_link; -- 2.39.2