From patchwork Mon May 1 14:31:53 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Arnd Bergmann X-Patchwork-Id: 89049 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:b0ea:0:b0:3b6:4342:cba0 with SMTP id b10csp2740255vqo; Mon, 1 May 2023 07:36:38 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ5Pet6n5gAQn59ULqd0h8aaXhPct3jURO8OGCXzbTQI32UOM3QMwQKqVUMeS1LjENfLIyoB X-Received: by 2002:a05:6a20:8e22:b0:f0:5d4:c4a with SMTP id y34-20020a056a208e2200b000f005d40c4amr8888373pzj.8.1682951798043; Mon, 01 May 2023 07:36:38 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1682951798; cv=none; d=google.com; s=arc-20160816; b=cagcFIPXNueZgBHgkAlLUvKDiLczRARocYEAHach8fyOwirzTS9oST2bavN5QUmpet Yf+KF0T7Bz3t50/x1E2JkUWq53ALPYNieQvEHhfkVg2QkEF1MuFglpRXqJ9FJtW31unA Q3ltfXxXsZvTaeDtE8Ts3d99arAKLgQ26S6YZnG5pT4yX82HkMQJiTLnzQOaeGx/NF1i tEvpG9zjpXNNvGQ3w1RTZDrwLo6N0q/btTdvb9B26DhOo6CemKJ+XIo5Dzl1+0rhxkDX YgTwrDZqxUELOJovwCJAJ09VYrF1ONyZzXRLyNkOtoUASTotixcCvxa7NyVOE5FV13TZ 2a2Q== 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 Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id j13-20020a63cf0d000000b0050fa9bc63cbsi28402377pgg.432.2023.05.01.07.36.22; Mon, 01 May 2023 07:36:38 -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 S232433AbjEAOc1 (ORCPT + 99 others); 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_K=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 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 X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1764702864585670785?= X-GMAIL-MSGID: =?utf-8?q?1764702864585670785?= 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;