From patchwork Fri Nov 13 13:49:00 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Lee Jones X-Patchwork-Id: 324285 Delivered-To: patch@linaro.org Received: by 2002:a05:6e02:5ce:0:0:0:0 with SMTP id l14csp1212579ils; Fri, 13 Nov 2020 05:49:52 -0800 (PST) X-Google-Smtp-Source: ABdhPJyAYWH7JKk4jKDgR+TnXzh3bKdCuVvK8IjTx3eUkdoenWEGdTgAfv1x0HhFIB5diUd9IGw6 X-Received: by 2002:a63:210f:: with SMTP id h15mr2232842pgh.365.1605275392027; Fri, 13 Nov 2020 05:49:52 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1605275392; cv=none; d=google.com; s=arc-20160816; b=RqzJ2CjafQkaauhvT64SbQZJnl09xCyv/J1UYwsVBRuvtG251Wj7HZp/DTacat+YSM s27jmdKdtR5bCRFlOysyCPZSbU0DSEcv8ELqxY5dAsT6Uk+T/daEqITvAzpVDL9+L3y4 sQ/Yu8IWhvEEnF9vecLrKQ7gbvU+KQUuGZn48wS+yzCjgroI9qEc6n40oCSLgyQgwQvv WQYhWwLKYFRyQij1Gg1wFjXLMQArQJexz54aTLSMoyidcq6KZarXCHCrnkS0VjqFR+Cl 7R/8z6QgikZ8HgnCgk7+/mv+AoEGqSsCa5etXiK3v9kVwCYklp3thajBN7qdhTqgVXnA vm5g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:content-transfer-encoding:cc:list-subscribe :list-help:list-post:list-archive:list-unsubscribe:list-id :precedence:mime-version:references:in-reply-to:message-id:date :subject:to:from:dkim-signature:delivered-to; bh=DV0WkTok7m2tlboZTsJNrdsJQVlUlfbZIyMY7dbMoUY=; b=ZHMW6k+YXFSsqN+dAtZvL8jVd/iToSSYQyAtHMb545/CjF2e0Pvq/OunXlHd/bhcfD yxvyDE4SGuEl4K61L4F+f0wrIWHrkDCmhUCbI5IpCdOMogLs9ImpKQjtP5UpXK0RntHf ZGYQyRWtWh1sIzxd1Ty1EKkPEdBZQVQ9mLieIyw4PH/lcCsG88LmUiFJwEOpf2R79PPs yfsByRuaQA8jnDExGgi9YMk7WhPm8d3EYal6LAnOeyWCIcJ5exhFVfBJU7PDbQaGx/z9 K26X2he6R0KG16RrKgfg52WltdqwcQPV19so3sLj2cjAn9lc1xkHOltbiJ41r9yKMs/H C+SQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=neutral (body hash did not verify) header.i=@linaro.org header.s=google header.b=it1slg7e; spf=pass (google.com: best guess record for domain of dri-devel-bounces@lists.freedesktop.org designates 2610:10:20:722:a800:ff:fe36:1795 as permitted sender) smtp.mailfrom=dri-devel-bounces@lists.freedesktop.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from gabe.freedesktop.org (gabe.freedesktop.org. [2610:10:20:722:a800:ff:fe36:1795]) by mx.google.com with ESMTPS id 2si3848874pgy.254.2020.11.13.05.49.51 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 13 Nov 2020 05:49:52 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of dri-devel-bounces@lists.freedesktop.org designates 2610:10:20:722:a800:ff:fe36:1795 as permitted sender) client-ip=2610:10:20:722:a800:ff:fe36:1795; Authentication-Results: mx.google.com; dkim=neutral (body hash did not verify) header.i=@linaro.org header.s=google header.b=it1slg7e; spf=pass (google.com: best guess record for domain of dri-devel-bounces@lists.freedesktop.org designates 2610:10:20:722:a800:ff:fe36:1795 as permitted sender) smtp.mailfrom=dri-devel-bounces@lists.freedesktop.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id 2CB526E500; Fri, 13 Nov 2020 13:49:48 +0000 (UTC) X-Original-To: dri-devel@lists.freedesktop.org Delivered-To: dri-devel@lists.freedesktop.org Received: from mail-wr1-x442.google.com (mail-wr1-x442.google.com [IPv6:2a00:1450:4864:20::442]) by gabe.freedesktop.org (Postfix) with ESMTPS id A2B156E500 for ; Fri, 13 Nov 2020 13:49:46 +0000 (UTC) Received: by mail-wr1-x442.google.com with SMTP id b6so9992288wrt.4 for ; Fri, 13 Nov 2020 05:49:46 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=UkvWdURTsPkEdVDzyHJ8FYZlYEKq+y0hj/4CtFCIFp4=; b=it1slg7eKp4pW5KEZ7vtYMFSfeU183JFhubZH/qEBglZ8gc2voRRHBhujz3X936q5b +GVVysYWqybRxo9yD89WDkhMwxfHo+LuchKiHgoHcQ2gJXPV/7HRRVeubA2tSXQLAMfG mC6diUMtNPUA5UQGKuOoJO6KrBaduJmWWbiEgMT+hiqY2Kw+zDp5BYifY7RIm46ASjr0 SWkmDqmf5q9w1Tto3DKwzzdWjTRTdYhNAqyfztmrvvWgN7II9jiaKHa4vOBjygqNu3PK EILFa43AKAy6VL+b1aQ7cXSAeiKoyOthV07rLPzm+JcX2NASAGhGdm8fWoR7AP6OFQk+ rkfQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=UkvWdURTsPkEdVDzyHJ8FYZlYEKq+y0hj/4CtFCIFp4=; b=q3hOmvn9Rn7hCi9Is+ADBDK+Hc1NH2DsIv9wwILqbxloM3Tl52YrzI050lwY1O2qOl iD+wd0haOqH6RaFt1FXiXMRIpIKZRibfgfNrWxGbr0yFI9Awu2+Cx/bUS1ryH5lJZHgC VkqQSUEEWYG3eG3o92f86K3iqsBLq0rrisOoRiKhEuXvtgUG/mAeHTs8ivAlQdU0O57F Rn6QTEL8mJBCCzw0BEXLwlpoqyVSxyrXv6lBJsn7gmJL7o18w6mjERYZSxD4uaZjQcfg e3IowdCLk8ACL3d0oDr9JkVHATkLrXBfKKOohbuHvBwAS29YDiFuELh491eRW2DWG0SY bbcg== X-Gm-Message-State: AOAM530chak7Flfl+GGW6hKG9D5nk9RPA2D7QX1QrGtZGI9HUGC7z5J7 2RBJM2SsGjwFlnQShTWVLnwmPMp5cCQnMK2P X-Received: by 2002:adf:f852:: with SMTP id d18mr3463400wrq.232.1605275385374; Fri, 13 Nov 2020 05:49:45 -0800 (PST) Received: from dell.default ([91.110.221.159]) by smtp.gmail.com with ESMTPSA id t11sm4561614wrm.8.2020.11.13.05.49.44 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 13 Nov 2020 05:49:44 -0800 (PST) From: Lee Jones To: lee.jones@linaro.org Subject: [PATCH 02/40] drm/amd/display/dc/core/dc_link_dp: Move DP_VGA_LVDS_CONVERTER_ID_{2, 3} to where they're used Date: Fri, 13 Nov 2020 13:49:00 +0000 Message-Id: <20201113134938.4004947-3-lee.jones@linaro.org> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20201113134938.4004947-1-lee.jones@linaro.org> References: <20201113134938.4004947-1-lee.jones@linaro.org> MIME-Version: 1.0 X-BeenThere: dri-devel@lists.freedesktop.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Direct Rendering Infrastructure - Development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Leo Li , linux-kernel@vger.kernel.org, amd-gfx@lists.freedesktop.org, David Airlie , dri-devel@lists.freedesktop.org, Alex Deucher , =?utf-8?q?Christian_K=C3=B6nig?= Errors-To: dri-devel-bounces@lists.freedesktop.org Sender: "dri-devel" This patch fixes >200 warnings. Fixes the following W=1 kernel build warning(s): drivers/gpu/drm/amd/amdgpu/../display/include/ddc_service_types.h:123:22: warning: ‘DP_VGA_LVDS_CONVERTER_ID_3’ defined but not used [-Wunused-const-variable=] 123 | static const uint8_t DP_VGA_LVDS_CONVERTER_ID_3[] = "dnomlA"; | ^~~~~~~~~~~~~~~~~~~~~~~~~~ drivers/gpu/drm/amd/amdgpu/../display/include/ddc_service_types.h:121:22: warning: ‘DP_VGA_LVDS_CONVERTER_ID_2’ defined but not used [-Wunused-const-variable=] 121 | static const uint8_t DP_VGA_LVDS_CONVERTER_ID_2[] = "sivarT"; NB: Repeated ~100 times - snipped for brevity Cc: Harry Wentland Cc: Leo Li Cc: Alex Deucher Cc: "Christian König" 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/dc/core/dc_link_dp.c | 5 +++++ drivers/gpu/drm/amd/display/include/ddc_service_types.h | 4 ---- 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/drivers/gpu/drm/amd/display/dc/core/dc_link_dp.c b/drivers/gpu/drm/amd/display/dc/core/dc_link_dp.c index 6c60c1fdebdc1..f2023d2b53234 100644 --- a/drivers/gpu/drm/amd/display/dc/core/dc_link_dp.c +++ b/drivers/gpu/drm/amd/display/dc/core/dc_link_dp.c @@ -15,6 +15,11 @@ #include "dc_dmub_srv.h" #include "dce/dmub_hw_lock_mgr.h" +/*Travis*/ +static const uint8_t DP_VGA_LVDS_CONVERTER_ID_2[] = "sivarT"; +/*Nutmeg*/ +static const uint8_t DP_VGA_LVDS_CONVERTER_ID_3[] = "dnomlA"; + #define DC_LOGGER \ link->ctx->logger #define DC_TRACE_LEVEL_MESSAGE(...) /* do nothing */ diff --git a/drivers/gpu/drm/amd/display/include/ddc_service_types.h b/drivers/gpu/drm/amd/display/include/ddc_service_types.h index c9be899cd25cd..b453ce5a9bfdb 100644 --- a/drivers/gpu/drm/amd/display/include/ddc_service_types.h +++ b/drivers/gpu/drm/amd/display/include/ddc_service_types.h @@ -117,10 +117,6 @@ struct av_sync_data { uint8_t aud_del_ins3;/* DPCD 0002Dh */ }; -/*Travis*/ -static const uint8_t DP_VGA_LVDS_CONVERTER_ID_2[] = "sivarT"; -/*Nutmeg*/ -static const uint8_t DP_VGA_LVDS_CONVERTER_ID_3[] = "dnomlA"; /*DP to Dual link DVI converter*/ static const uint8_t DP_DVI_CONVERTER_ID_4[] = "m2DVIa"; static const uint8_t DP_DVI_CONVERTER_ID_5[] = "3393N2";