From patchwork Mon Jan 11 19:18:47 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Lee Jones X-Patchwork-Id: 360535 Delivered-To: patch@linaro.org Received: by 2002:a02:85a7:0:0:0:0:0 with SMTP id d36csp3139217jai; Mon, 11 Jan 2021 11:19:40 -0800 (PST) X-Google-Smtp-Source: ABdhPJw/CQqm7bIm5W8JHpFOW71+lv8TECTk5qAyOLn36u0GRz1luDrs1bCZa473sm0gfj/btYz9 X-Received: by 2002:aa7:95aa:0:b029:1ad:d810:42be with SMTP id a10-20020aa795aa0000b02901add81042bemr819699pfk.51.1610392779900; Mon, 11 Jan 2021 11:19:39 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1610392779; cv=none; d=google.com; s=arc-20160816; b=OygwJh3/MHlyRAklXdjbCL7cDOWMLNu9oQmAB4tCrZ8f2u05HUU4nFjgsKuSMndPn1 DQlmR8zDSdIlI/Rc9FuDiWILkgwB645nWoOsJ/TiBRDRFPSod6WCPgN5VeFQqESXLTpO wkc8NtacxZm6YXKUw53DszJZXg0ByP2B0/WEJ2vTYsU4X4Iw6x813ePcXY8gify22e/5 F9poGqty+kVOjK8rH8W4rrWQYUoIYsajDzk1eBjZhOgC8xtbWWBCB99wBP9D7HoGeI+3 6cpHywX7LUTg1S+cVfY1dDhVQaeT+B/Z8hB4O0zMIK0mxmwCmFZ+9H4FW4PYV93JrIg9 1NhQ== 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=sMW/n+ZC6wYDlbEwrjTm0s/RuVFp5/IRLVQA3ic5kX0=; b=ZWR4HzKuBO+lVTS6zPfoQogpt6yWj/Ugxq3D7q9kPnUGaejDCNEOzmnLNEDL0JeWpD mHJyB00MQsogp80b0bXPR+2mDKVVJGEffaZyGm2RgXMrs3y4PcGPRGH0nIfGZumH+bBB U7xD3wUDMtZ8wGmFqC3UMtVijn6A1ktZMdFzNraIWGgaMO4iXCVc7mmvAs8PHos3Dgmj Pq55t9rIFpJsau5Wg/nBbNtCbydIsyFe4bElJ5BbZCXBTX95TCg6Nbnrhq/ktFItTXzR wrqaqnSSsOHXpAOwcIlAVwLxDLfr5t/dY3JRvq08t3MP7oVFaJmjh8c2Uyl1VJFhp1tX 0Ulg== ARC-Authentication-Results: i=1; mx.google.com; dkim=neutral (body hash did not verify) header.i=@linaro.org header.s=google header.b=FHGS3Yz4; 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 q22si348814pgv.476.2021.01.11.11.19.39 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 11 Jan 2021 11:19:39 -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=FHGS3Yz4; 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 F302E89DC1; Mon, 11 Jan 2021 19:19:33 +0000 (UTC) X-Original-To: dri-devel@lists.freedesktop.org Delivered-To: dri-devel@lists.freedesktop.org Received: from mail-wr1-x430.google.com (mail-wr1-x430.google.com [IPv6:2a00:1450:4864:20::430]) by gabe.freedesktop.org (Postfix) with ESMTPS id 1FE4E89DC7 for ; Mon, 11 Jan 2021 19:19:33 +0000 (UTC) Received: by mail-wr1-x430.google.com with SMTP id c5so928677wrp.6 for ; Mon, 11 Jan 2021 11:19:33 -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=RuOitA3aMnrp8CglwtShTzzn7jDAI9y/ji+mu/BKLpU=; b=FHGS3Yz4+1uqLaYb51IUybjr25DwHxn1LcCJZAw4g9amf/enmcfg+DhtQu8GqokZvd bDFkCeC4jt80rWilLOaSekS/ChX6BJgQBMXV0oKw57dzcusfRhsmLBxSqlDnqxm+FW32 pHB7qQWTfaCxgNNQIM25xK+ga20o2fgDYfu5ed5Mz0vmCd8ZxWEwo/tVRYMUgkx841kE RAqQLZd4dmSTHYAEVuJMgSnOCJI8bCU9jORkq7sogYyYD2+mw/h7s51KSuIWtIf31tVm BamR5VUzQNm9cTnCJkfVSUD3oGWvdBUFwKe3yWpLxI6pv9zC4enlxSoaogztlqTzEf8Z jcEA== 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=RuOitA3aMnrp8CglwtShTzzn7jDAI9y/ji+mu/BKLpU=; b=XoW51gcgqXgOXIZ+WYgh8pLoL1t3P5Gsct4GFDP8jQpsvjsBtnLf/g1T8eRYiAEBFR Ho95xMvR6X8YbGfT3aR4Ob63yXQ7ST7sCdTrgHZGFx5t47/kQVoQrf7Tr5o3YYvGBN7d w92p8z27bTa5BsA3UyLSOtSEHTmmgydkzaEtLIWQlS0Om9hLi4LhiK/XywPvDOX0egmA /J6TFKKywh3Cor8Hzsf5IBDhZi3V3ZZ4umkxpT3pEdTTlaxnqp9wofiQVhTAUYHL3Ip5 YLcyxTGcztRESrMJ8VM7b3b2g4mVpfYvn3ShSdhGHcUfC0RPWecaFFVKJD7CxPrTadt/ XzhQ== X-Gm-Message-State: AOAM5328L9JpGC+Q4REG3Hztr1nYlLO0LAI4doAl4KwW2mLvFqaZhPe/ qF4CvMD/H/Zgy6HumIoF7NnBIg== X-Received: by 2002:adf:c454:: with SMTP id a20mr594473wrg.314.1610392771765; Mon, 11 Jan 2021 11:19:31 -0800 (PST) Received: from dell.default ([91.110.221.229]) by smtp.gmail.com with ESMTPSA id n3sm778090wrw.61.2021.01.11.11.19.30 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 11 Jan 2021 11:19:31 -0800 (PST) From: Lee Jones To: lee.jones@linaro.org Subject: [PATCH 01/40] drm/amd/display/dc/dce/dce_aux: Mark 'dce_aux_transfer_raw' as __maybe_unused Date: Mon, 11 Jan 2021 19:18:47 +0000 Message-Id: <20210111191926.3688443-2-lee.jones@linaro.org> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20210111191926.3688443-1-lee.jones@linaro.org> References: <20210111191926.3688443-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" Fixes the following W=1 kernel build warning(s): drivers/gpu/drm/amd/amdgpu/../display/dc/dce/dce_aux.c: In function ‘dce_aux_transfer_raw’: drivers/gpu/drm/amd/amdgpu/../display/dc/dce/dce_aux.c:579:7: warning: variable ‘bytes_replied’ set but not used [-Wunused-but-set-variable] 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/dce/dce_aux.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/gpu/drm/amd/display/dc/dce/dce_aux.c b/drivers/gpu/drm/amd/display/dc/dce/dce_aux.c index 3204292a5aeae..d51b5fe91287d 100644 --- a/drivers/gpu/drm/amd/display/dc/dce/dce_aux.c +++ b/drivers/gpu/drm/amd/display/dc/dce/dce_aux.c @@ -576,7 +576,7 @@ int dce_aux_transfer_raw(struct ddc_service *ddc, *operation_result = get_channel_status(aux_engine, &returned_bytes); if (*operation_result == AUX_CHANNEL_OPERATION_SUCCEEDED) { - int bytes_replied = 0; + int __maybe_unused bytes_replied = 0; bytes_replied = read_channel_reply(aux_engine, payload->length, payload->data, payload->reply, &status);