Received: by 2002:a05:6a10:2785:0:0:0:0 with SMTP id ia5csp2507031pxb; Mon, 11 Jan 2021 11:22:49 -0800 (PST) X-Google-Smtp-Source: ABdhPJyWxt3KDCUmzPnztnQKvMO5/5QuZp8huX39OCP9aGsa4gyXPzmoDH3Edv6LhyOJTSArqVYl X-Received: by 2002:a50:9dc9:: with SMTP id l9mr626736edk.377.1610392968938; Mon, 11 Jan 2021 11:22:48 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1610392968; cv=none; d=google.com; s=arc-20160816; b=vMxZ75BunLl5NOUajiQcA0t2He7jdjFibzN8zX9qAunfsCdGWRsvG0HiIBN/CDxWo5 37b+mkYELj6v2nGw4UatguqOXihXvFONUNakQFOF+A7fjbQUr7CaoDr8weYAFgkv/EM6 GrP35rUJ3JpdRf8PaHvbW6BijC4qXZK4+C9Fmg7rU5lJBzE13CxJVRHYX3R+gt0pNDpE PEGT9G3Jv3Fm2H1U+Xcyi4sIt71GcAYTnnADPgWrPWsqKzs6idNx9MjusjpJa69cFTcI IkECw8GLxqISwTzHPJ4eQ/Glc+1HRj0Pp9Thd6ZOAiWKW+Sn0bnAjecHHjqofeC4wpNO JkMg== 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=RuOitA3aMnrp8CglwtShTzzn7jDAI9y/ji+mu/BKLpU=; b=MihibHj3i0wXm/a0Se67VsHgQOSq3t13lqUfAAzvqIL/l+lmaueNT7RbZoiEvcVdHz 3PC3ScqCAFFTWBsM0sseDvjjgVuK4ixpwtzJZi8E15EFzLmgw1rOUFHDZ+jaOGobKVN7 JGMjPkpI6Oga0DEfeTeSwLbO1+T4WgHeQJE4LsLIxmA00yPDo81nzDaHkmc0aAq01veV fL6H3ogn6BFJsi5ClEMBPnWlTk/AwvelJcEvNVtM/YG+B3t81Oy4SPzotBF59FVbqyu8 mP219CjRTKvjGO7WYg2ynULqg9598t7UuzIrar/uJkXLaHAOGYh64zlS7SNZVrlnXBdv gURg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=FHGS3Yz4; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id y4si136028eju.331.2021.01.11.11.22.25; Mon, 11 Jan 2021 11:22:48 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=FHGS3Yz4; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2390839AbhAKTUO (ORCPT + 99 others); Mon, 11 Jan 2021 14:20:14 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:43830 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729848AbhAKTUN (ORCPT ); Mon, 11 Jan 2021 14:20:13 -0500 Received: from mail-wr1-x435.google.com (mail-wr1-x435.google.com [IPv6:2a00:1450:4864:20::435]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 2C4F8C061795 for ; Mon, 11 Jan 2021 11:19:33 -0800 (PST) Received: by mail-wr1-x435.google.com with SMTP id t16so948572wra.3 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=mv+fO0HpD6hzjBiMyTyzcNpiRUMs2QDnILpdkSYHJDv9MGEEFPAYfMk0klNOVpPcRy emphobKXGtK4Hu/SI9swca301iB1m0FeTwylb28bcmySGbbbjyjl/KOK0LpvrpfVNpMZ gVz1BkoYw4Kg1TNufiak6iF3hXRgyGglsCpVuCpT1kJlUUEYpAqz7miAAliK44fPRjpW zErIMZZpIek5q4qmDII7KY4AH5L+H3UUNtA/OOwXp6ABHVJaAly1y9UMt6Q92aCmRenv nWr4DBU5g0cM7rwuAqxsFxU6dRjOtb3xj0rmCI8lbiSqbwFCCSaErIYevnkTb37SGBju 0Hpw== X-Gm-Message-State: AOAM533+zwf03HNtdDG6VeaqioHRzCjSA9l4JocKakKdacFeO2jV/rJO 5EVMsMDmycI3d/+sTuM2/b70FQ== 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 Cc: linux-kernel@vger.kernel.org, Harry Wentland , Leo Li , Alex Deucher , =?UTF-8?q?Christian=20K=C3=B6nig?= , David Airlie , Daniel Vetter , amd-gfx@lists.freedesktop.org, dri-devel@lists.freedesktop.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 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit 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/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); -- 2.25.1