Received: by 2002:a05:6a10:206:0:0:0:0 with SMTP id 6csp269235pxj; Wed, 26 May 2021 22:52:07 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzfeBiNcMC+8FRGM2sgoCFVWVG4AD+d+A33G336wsaXBL0ap0rDP0EIg7x8CQZ1RWMQX/h6 X-Received: by 2002:a17:906:640c:: with SMTP id d12mr1997793ejm.70.1622094727514; Wed, 26 May 2021 22:52:07 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1622094727; cv=none; d=google.com; s=arc-20160816; b=JeiXNQejmqNzb7zFyRHflmpxHcCyEVydhLqclx/9F6YMRxndC5hmV5fcCFxa5uF4jD Cbsq4qlWXqYq634Iffv1OGxxgfcWqAwbj0tfJKfGtnWuIlI4CVsJFKVKC4gUWsLNZ+Zf aZjmVwx82XmGRTYfmoGdr0AvJmeoG/SYd806SSnNxudr38BKDQ3O5r+Q+TbXS6HxmAfN 6J+6HUUGWFEsWgW4NQv2M8TWoIUpnLOnBWaTUTy9HlpSUXd8dQG0orCiUp5zT04JExdQ plVmYTHE4SctTX177wxc+tsdac3SZYCowILKooJ302uRLgyMuSG4mpLVUIoYR0SLToka 5raw== 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=an1polfQn6vieJpzgSqPdiPhq14M4oUVqX/Ylf5ziPs=; b=mXxx9zm8nblJcK7kP/iiqlMc7XbE+qEKx+jALzpMHHPj0wMPPtIEVQBUznbiUl3MfN MekZhTeKR247Ps18hefN5lX/EHxCJaZIkyIl81aCbEOUViHtseorxCqfGqvzLaMMx/TF r9O9fvAnN3oUVhxuQJL/RSMMQ1BlsaDI46u9bK4HFdij3hFw4Hg3ip1poKQAedFfbVSu 1oCGG2cQwd2MDN9Lwd10qOQ4fWuvcJfQl6eppPoc1fvIfFEBG3kF2D6DmWIZx5OV5m3i 46Z6+BOk/LAR21zIkl3nMSmvtlyNH1ymmZREqRyvPnTG7OYdrXL0zyTUs59+9vtWL+te ceLA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=iLjcXPx4; 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 by20si1273378ejb.660.2021.05.26.22.51.41; Wed, 26 May 2021 22:52:07 -0700 (PDT) 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=iLjcXPx4; 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 S234279AbhE0DB4 (ORCPT + 99 others); Wed, 26 May 2021 23:01:56 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:33042 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234169AbhE0DB4 (ORCPT ); Wed, 26 May 2021 23:01:56 -0400 Received: from mail-pl1-x634.google.com (mail-pl1-x634.google.com [IPv6:2607:f8b0:4864:20::634]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 9B0E3C061574; Wed, 26 May 2021 20:00:23 -0700 (PDT) Received: by mail-pl1-x634.google.com with SMTP id v12so1614525plo.10; Wed, 26 May 2021 20:00:23 -0700 (PDT) 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=an1polfQn6vieJpzgSqPdiPhq14M4oUVqX/Ylf5ziPs=; b=iLjcXPx4lqRNQzS3ska24bUU8Af/ko9/sGGaMUI2RpAPp4UphYKVzdDipO9Y6M1GkE dIeKh+Wbu7M0IJYH4YV7hRR2J2e+cpmie5MkvOZ6QXhbCNK8ozlr+ebLG9RAR3TZbFNY cqNFjJ22qsdDqQiBjJ4TrxeCjDN1GBfAqbGW2h8AsSMI7dp224h6CLRbild7A5zbTnwH ylEixnDV4NgDPWuBJDtBszWouxoysKzlIsbdbAXvfvDfFwPq3e3C6eFF0Q8gxmraFcp9 XNWPwPB5nD4EkajG5bZMVM0b7TJgRdNN7ecydStYCcYAIoQVKl5hIrMS05Wg7CDmgVg/ gu5w== 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=an1polfQn6vieJpzgSqPdiPhq14M4oUVqX/Ylf5ziPs=; b=g2SR7ECloq5f2xAprQUdn2zDqqiPXOYYjpTShEHITYM540UTaQdf/bPaYUMR7wREx1 74Zz4hREdhueicRcoWZ26i8j5xspHruM+O7yIZO9x8aYz8DxaWGq8yc5OLt65oXeibAG gtsCXzmKwQ/Le82eaqH95LvLwapbr5+LEbxwOtiMo/+WqNaN50f3m6wWEqR0A3tUlAio gxpcdpHm3g3MrvgLaJQzLkjLU+hXD/U+s0detdTZxJm7Bp/Ewc+wc7hgybJrM/O3u6Jg qtRJgpK/fX1v/6VdpDX8jzox6IFaskF1DKs+TH0KanIx54bTMPwveDsFL9am399Ggj5w /Asg== X-Gm-Message-State: AOAM530SHngXpFRYZnLnp4OKeVf8qGxbr8fn0n+v6gikCI/GLwkbINed n17BjJTN6wHAtzZhYV7xIctLdNcLJI55aeKov/ZlcWMjdu4= X-Received: by 2002:a17:90a:bd08:: with SMTP id y8mr7132190pjr.8.1622084423104; Wed, 26 May 2021 20:00:23 -0700 (PDT) MIME-Version: 1.0 References: <20210521041633.GA1747@raspberrypi> In-Reply-To: <20210521041633.GA1747@raspberrypi> From: Austin Kim Date: Thu, 27 May 2021 12:00:12 +0900 Message-ID: Subject: Re: [PATCH] drm/msm/dpu: remove unused variable cmd_enc To: robdclark@gmail.com, sean@poorly.run, airlied@linux.ie, Daniel Vetter , angelogioacchino.delregno@somainline.org, dmitry.baryshkov@linaro.org Cc: linux-arm-msm@vger.kernel.org, dri-devel@lists.freedesktop.org, freedreno@lists.freedesktop.org, linux-kernel@vger.kernel.org, =?UTF-8?B?6rmA64+Z7ZiE?= Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 2021=EB=85=84 5=EC=9B=94 21=EC=9D=BC (=EA=B8=88) =EC=98=A4=ED=9B=84 1:16, A= ustin Kim =EB=8B=98=EC=9D=B4 =EC=9E=91=EC=84=B1: > > After the call to to_dpu_encoder_phys_cmd() is made, > 'cmd_enc' is not used. Where to_dpu_encoder_phys_cmd() is simply replaced= with > container_of(x, struct dpu_encoder_phys_cmd, base) by compiler. > > So it had better remove W=3D1 kernel build warning(s): > > drivers/gpu/drm/msm/disp/dpu1/dpu_encoder_phys_cmd.c: In function > =E2=80=98dpu_encoder_phys_cmd_wait_for_commit_done=E2=80=99: > drivers/gpu/drm/msm/disp/dpu1/dpu_encoder_phys_cmd.c:688:31: warning: > variable =E2=80=98cmd_enc=E2=80=99 set but not used > > Signed-off-by: Austin Kim > --- > drivers/gpu/drm/msm/disp/dpu1/dpu_encoder_phys_cmd.c | 4 ---- > 1 file changed, 4 deletions(-) > > diff --git a/drivers/gpu/drm/msm/disp/dpu1/dpu_encoder_phys_cmd.c b/drive= rs/gpu/drm/msm/disp/dpu1/dpu_encoder_phys_cmd.c > index b2be39b9144e..088900841bf8 100644 > --- a/drivers/gpu/drm/msm/disp/dpu1/dpu_encoder_phys_cmd.c > +++ b/drivers/gpu/drm/msm/disp/dpu1/dpu_encoder_phys_cmd.c > @@ -685,10 +685,6 @@ static int dpu_encoder_phys_cmd_wait_for_tx_complete= ( > static int dpu_encoder_phys_cmd_wait_for_commit_done( > struct dpu_encoder_phys *phys_enc) > { > - struct dpu_encoder_phys_cmd *cmd_enc; > - > - cmd_enc =3D to_dpu_encoder_phys_cmd(phys_enc); > - > /* only required for master controller */ > if (!dpu_encoder_phys_cmd_is_master(phys_enc)) > return 0; > -- > 2.20.1 > If you are available, would you please review this patch. BR, Austin Kim