Received: by 2002:a05:6a10:2785:0:0:0:0 with SMTP id ia5csp25458pxb; Tue, 12 Jan 2021 18:53:45 -0800 (PST) X-Google-Smtp-Source: ABdhPJzp4EQyn7QDfdxIQaXQLe/+nTnFKPiDadIGc3iLfSdvl3vpXh+o8sba8awQCc7nxU1+NtD1 X-Received: by 2002:a17:906:6a45:: with SMTP id n5mr1337063ejs.514.1610506425645; Tue, 12 Jan 2021 18:53:45 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1610506425; cv=none; d=google.com; s=arc-20160816; b=T9wldvYEG7uUPfAYjxf5LoqInyELfinrslxnMdlXDr0EvjK3oLeNy8ekVJeUot13sA UXWvX9qrqqiSep3sD6XuECWSbR8uIfXc1g1cW2taZqumX4lQd5wabboZxV2d2IBVq8or IH6WOPb8931rTPZBqKpx4epFnCyhDvuu1aMMf+gHdKEd6AI1xFABfROh57n1NI4nnbPS lzDAUpvrHoS2pG/1tmb/7kRyIwT/02bE03uFstAcYWE/rpunsKakOn57KLVIw9gKcdqr BJzWUlCzXjY7v1aW7/ga05WZsBNsGD4ejhAlIbFrscblGH34b4+2vXmwCFgPDFyAajOA RAHA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:cc:to:subject :message-id:date:from:in-reply-to:references:mime-version :dkim-signature; bh=bjYKw/mZXSGXW12duexWo6SJ7uate8q8HNfOvYGKdLs=; b=zHXjN2mTCNpRGGnN2nFJFvr387DDlku/MFRPGjtwZso78DnWcP97KU/5TqIySjEJWa b5Ji1lrOw8hd0vA7Op3dhNcvCABriUdOeXUQ3ru6CkENWx0KK9Rag1qcRayZJFJuTdEH zrVx88PoH8sM+DtZCA0eC2jVZn3QgyoxArM/DlNqmB54CQqHwVKdNCd3LbqNDdk9AvpN PGm00XNmSlBs2XLBFfg6au9c2qO5mFFAg78P62tKSZEknwZRsUYBoL6iNAxmNsxqbPn5 QkwYWbELXvFIXmXUWKDZtO2hRS+mCF02KupwYB7Ox4cOG3ERuQRs4k1NbVVCPH1eEMxS 5Vyg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b="RdI/j+Zn"; 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=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id i3si297305ejk.273.2021.01.12.18.53.22; Tue, 12 Jan 2021 18:53:45 -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=@gmail.com header.s=20161025 header.b="RdI/j+Zn"; 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=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2389337AbhALV6S (ORCPT + 99 others); Tue, 12 Jan 2021 16:58:18 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:49590 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2389203AbhALV6M (ORCPT ); Tue, 12 Jan 2021 16:58:12 -0500 Received: from mail-oi1-x22b.google.com (mail-oi1-x22b.google.com [IPv6:2607:f8b0:4864:20::22b]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 4FE4DC061575 for ; Tue, 12 Jan 2021 13:57:32 -0800 (PST) Received: by mail-oi1-x22b.google.com with SMTP id q205so3952775oig.13 for ; Tue, 12 Jan 2021 13:57:32 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc:content-transfer-encoding; bh=bjYKw/mZXSGXW12duexWo6SJ7uate8q8HNfOvYGKdLs=; b=RdI/j+ZnCNl5us/umshUsZYsQ+OQFfIORN89cxi0qvxFbW11Z6RR4LIf3fCI7GVmKF 7hdMNGS9EpFB9rqJHo6so/WD4x47hwwEAiOXBvN/q5ccHvthFZKKvL1Bek1gwVOb8/o9 pCw7m7/aEIxXsDHS5l350wxxM4YB5i6MlwjrhPaYVusbiOTwquPNrpyOEwnaqjWsoF52 WqsFoZhd+U2PWGje8dLnNMEvPneZCHJL088h29w5GR9fq0/Fhs/5Kjj7uhyC3+C5u93a hagDLr3jgBL1oDc/llXArfzRm+mdl+kmnHZwqjMpqiq92S+DSO5vtjg08es6WUN5aOt0 nPQw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc:content-transfer-encoding; bh=bjYKw/mZXSGXW12duexWo6SJ7uate8q8HNfOvYGKdLs=; b=n03/ebm8b6TWEJ66dX9FghIStX8NulzdcobRwwsXWxTCPWljX0qgqGoQ8Wcu6eyJev GHQmdIzszbvlfBeHcHEjzF03Ppi0ooFzbQE5y3iQlGt8hYkzuDkBiiDUG+WnuBIIrJqE EPi/ofoAyecQquigwisuhwtH6AX/IEeTsTKCcTrLjNhZLIbGtRfdDkyU5B/5zdmcL13p Wjt5Gvqb3VqhfOolz+MS8+VZWHmWQvT3qqMPZUfQ2guMgpTgdogGkXGPfKexeFK4/2hq StZfGTszsVJUFd4cdSOgNC8rzvKibUAvkl6i6+ll2wJoexlVdzrTerotTAyGV4GOGqok 2bgw== X-Gm-Message-State: AOAM530nP8+39C4Is8rjPMCIP08JUTQJr4BAUajGDiiP/TlvMOBQ4M/S Zvy2q9xzs+7jDjPtoZevGmVCtlAdHu2iS6ipOfk= X-Received: by 2002:aca:6202:: with SMTP id w2mr725916oib.5.1610488651798; Tue, 12 Jan 2021 13:57:31 -0800 (PST) MIME-Version: 1.0 References: <20210111191926.3688443-1-lee.jones@linaro.org> <20210111191926.3688443-2-lee.jones@linaro.org> In-Reply-To: <20210111191926.3688443-2-lee.jones@linaro.org> From: Alex Deucher Date: Tue, 12 Jan 2021 16:57:20 -0500 Message-ID: Subject: Re: [PATCH 01/40] drm/amd/display/dc/dce/dce_aux: Mark 'dce_aux_transfer_raw' as __maybe_unused To: Lee Jones Cc: Leo Li , LKML , amd-gfx list , David Airlie , Maling list - DRI developers , Alex Deucher , =?UTF-8?Q?Christian_K=C3=B6nig?= Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, Jan 11, 2021 at 2:19 PM Lee Jones wrote: > > Fixes the following W=3D1 kernel build warning(s): > > drivers/gpu/drm/amd/amdgpu/../display/dc/dce/dce_aux.c: In function =E2= =80=98dce_aux_transfer_raw=E2=80=99: > drivers/gpu/drm/amd/amdgpu/../display/dc/dce/dce_aux.c:579:7: warning: v= ariable =E2=80=98bytes_replied=E2=80=99 set but not used [-Wunused-but-set-= variable] > > Cc: Harry Wentland > Cc: Leo Li > Cc: Alex Deucher > Cc: "Christian K=C3=B6nig" > Cc: David Airlie > Cc: Daniel Vetter > Cc: amd-gfx@lists.freedesktop.org > Cc: dri-devel@lists.freedesktop.org > Signed-off-by: Lee Jones Applied. Thanks! Alex > --- > 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/d= rm/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 =3D get_channel_status(aux_engine, &returned_by= tes); > > if (*operation_result =3D=3D AUX_CHANNEL_OPERATION_SUCCEEDED) { > - int bytes_replied =3D 0; > + int __maybe_unused bytes_replied =3D 0; > bytes_replied =3D read_channel_reply(aux_engine, payload-= >length, > payload->data, payload->reply, > &status); > -- > 2.25.1 > > _______________________________________________ > dri-devel mailing list > dri-devel@lists.freedesktop.org > https://lists.freedesktop.org/mailman/listinfo/dri-devel