Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp1757435rwd; Fri, 9 Jun 2023 01:28:55 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ5mrRA47L8sRNMzG22QQkZ1r89BQN3WabMSbWkRg7a7zGnYYelHc/kpmHes05XApwJvCUCg X-Received: by 2002:a17:902:da89:b0:1a9:8d57:6d6c with SMTP id j9-20020a170902da8900b001a98d576d6cmr463374plx.24.1686299335493; Fri, 09 Jun 2023 01:28:55 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1686299335; cv=none; d=google.com; s=arc-20160816; b=YGMA/Bf+4KJtoSuR/xdkoP0gSGIJ72kxvpeKr36+UwHtvHoj+SCcr10ohM9td7AhVh oVgqW01BYbEVv7ObE10qY63Kb7f2YATdYuHRdI0dfZUghDuUt5+BecJbgsPk/pnT7Z/0 wqphRRXAvvretc4j3EojStaJGaztWcgovG/e3QBvmRZN0BzOhw1OmQirtOJVYOFtqVxL 4aE7d8j1ACwRjhTbpkQ9PGike9MHOC93gB0XULNSwW9fd3NUeg7mjhXnCfgRRzWie2X9 OxU5GIpr+Yl9w4qFMBSfmNOhVizDrFzx8nsW2tr7fKRVeINV0Upem52sva6EOBfC95+V 7MiA== 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=OkpJKqJvGixFHWqoMOlnWF9k1hk1pNB24ipteSsU46E=; b=vBDBE2Q5ZCuNu5S8ftLL+h1LkdJtV4dM138x+Ic/M3V2lcbv/QW8XBB6hfecwYBbhw L7pjAuxSpLwDHGHpHFkFKlEulK4raXP3FS2Afn1LoQykmztrTJwN2+rKi/MWGFHE9liE cOIRD074oB0i47sYyeFur8qim3cg8wuM7od5zKlI033/OAbq1/pJG6fsduGun15cte1T bTKCh8H4p+VHl+FXsZPZ//bsTg0GZL34LOIONHOEOqsYRZD5TJx1ARu47rI5lFZYIV51 7duXnD6KGmboBQCtulF7tjqmZnUeDEQQtCPZJczfIbBKnJ/uvtG+0PSfr3r3I3nEmcY5 cVBQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=FuaGGFFh; 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 m6-20020a170902f64600b001b04baaba84si2401209plg.9.2023.06.09.01.28.43; Fri, 09 Jun 2023 01:28:55 -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=FuaGGFFh; 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 S240552AbjFIIUc (ORCPT + 99 others); Fri, 9 Jun 2023 04:20:32 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:52610 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S240607AbjFIITy (ORCPT ); Fri, 9 Jun 2023 04:19:54 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [IPv6:2604:1380:4641:c500::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id DFF6E4239 for ; Fri, 9 Jun 2023 01:18:29 -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 61B6065475 for ; Fri, 9 Jun 2023 08:18:12 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 57533C433D2; Fri, 9 Jun 2023 08:18:09 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1686298691; bh=JQMSPk6Esn3HF09tEI5gTO9Bp3csrLebEN1TA8aw3hA=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=FuaGGFFhE+FKDHibH1exVF9bWGYx2VplRPwgxg8cwjZSA3a8VRO5E97HRRmLRALMf hTUhXUoUN4glvY4T064Kr3kCVfPPqyymyrPHLj51P2KfHeWh3tekVsKDH5zQ2hhfab tj+Bs9nUCyFMYTJrmpLsgl8l6SLvBcCB9mYlGDPXbw4NHjkpkLNkXgwyqAqWnjRfIG NuRnsfrACW4bsgBlP2DKYTEuVn4htX8UnIW6Sguz3yO112dTFVOiy31sOOUPaxp44F lRrLZgQs2zVmIcfGeunkJITTMOzczDMBiYqDjUHefdh2gT+93Hj0dKVU0Nh29ulMGl lI392FVaDus3g== From: Lee Jones To: lee@kernel.org Cc: linux-kernel@vger.kernel.org, Harry Wentland , Leo Li , Rodrigo Siqueira , Alex Deucher , =?UTF-8?q?Christian=20K=C3=B6nig?= , "Pan, Xinhui" , David Airlie , Daniel Vetter , amd-gfx@lists.freedesktop.org, dri-devel@lists.freedesktop.org Subject: [RESEND 11/15] drm/amd/display/amdgpu_dm/amdgpu_dm_helpers: Move SYNAPTICS_DEVICE_ID into CONFIG_DRM_AMD_DC_DCN ifdef Date: Fri, 9 Jun 2023 09:17:14 +0100 Message-ID: <20230609081732.3842341-12-lee@kernel.org> X-Mailer: git-send-email 2.41.0.162.gfafddb0af9-goog In-Reply-To: <20230609081732.3842341-1-lee@kernel.org> References: <20230609081732.3842341-1-lee@kernel.org> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-4.4 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_MED, 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 Fixes the following W=1 kernel build warning(s): drivers/gpu/drm/amd/amdgpu/../display/amdgpu_dm/amdgpu_dm_helpers.c:48:22: warning: ‘SYNAPTICS_DEVICE_ID’ defined but not used [-Wunused-const-variable=] Cc: Harry Wentland Cc: Leo Li Cc: Rodrigo Siqueira Cc: Alex Deucher Cc: "Christian König" Cc: "Pan, Xinhui" Cc: David Airlie Cc: Daniel Vetter Cc: amd-gfx@lists.freedesktop.org Cc: dri-devel@lists.freedesktop.org Signed-off-by: Lee Jones --- drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm_helpers.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm_helpers.c b/drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm_helpers.c index 09e056a647087..cd20cfc049969 100644 --- a/drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm_helpers.c +++ b/drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm_helpers.c @@ -44,9 +44,6 @@ #include "dm_helpers.h" #include "ddc_service_types.h" -/* MST Dock */ -static const uint8_t SYNAPTICS_DEVICE_ID[] = "SYNA"; - /* dm_helpers_parse_edid_caps * * Parse edid caps @@ -702,6 +699,9 @@ static void apply_synaptics_fifo_reset_wa(struct drm_dp_aux *aux) DC_LOG_DC("Done apply_synaptics_fifo_reset_wa\n"); } +/* MST Dock */ +static const uint8_t SYNAPTICS_DEVICE_ID[] = "SYNA"; + static uint8_t write_dsc_enable_synaptics_non_virtual_dpcd_mst( struct drm_dp_aux *aux, const struct dc_stream_state *stream, -- 2.41.0.162.gfafddb0af9-goog