Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp5218134imu; Tue, 13 Nov 2018 03:10:07 -0800 (PST) X-Google-Smtp-Source: AJdET5ewaEC43tb95NOrhIutSQ0c+b7SRPlr337pWLe94GDdpVxAeLGbM1CsXRnExdm70FeuF+MW X-Received: by 2002:a62:7687:: with SMTP id r129mr2412998pfc.17.1542107407861; Tue, 13 Nov 2018 03:10:07 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1542107407; cv=none; d=google.com; s=arc-20160816; b=uvm7qGC2GyTJvGiiGlAp2rH8ZZVs4HA94To3BgGwtKQFGwWIK5bHEDG9QRYz8jmuId Y7FyP3nGA8jBGFSlkbXkU63Ppx3Tu/OVPpWlB7jnn4ryh5QoMWBrpCH2JOzxCmubFX4S LboPVWYiH8SPFtQwx3KrWLHSuxG0TY96ZIP15qXMR/3s458seI/3xpGLqfp/+2UgVlvK NeXNKq9P8q4NISBhGP5vATW6O2wc9n9Y6n7FcBdIDbjY5/CDRIMso4mlGF6h+Ylumb6q gV9GTztQCp5Skmpt2opjMscJ8cA93HdNx+A8oJcbnLgUyTWKEMfPfJa44bZy1mVl5SEo WtXQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:cc:to:subject :message-id:date:from:in-reply-to:references:mime-version :dkim-signature; bh=4YJFATsFVNa+JpUMbBsVkqVbvYHE+WeYf5fsB5ihjU0=; b=y4VrwuWT98vFCOshQuTOJsIVUVnF2F5YITGtweyj7WJW5/MYMUmpaUb8uk0rsHeP6p e0MGssk6S7so6JLNM1Ht1sxwBJlf6ZraGWZQ1nMPU7GveU9jyUP2mTOXHfzz/ar/L/86 1Tssz/DnLDrhk7hgWW6A2XxKkXGyjr/rvUyNuqfFdfFeN92CRjNrtMNMh6n0WL2dcj4T TeXjZ+K3oB5twQusMlphec0h0wSP8IyvMy5iNe6XGzyzjdWVdvYJrxtA6V72x1Ty4aE5 LDTzDLL/Lckc6wfAcKkc5T87FY6P5bU7mT/IONSK7DbavcWCkjUXP0f4rAUYLZDdxb+E Ex2g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=U9TbVBp3; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 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. [209.132.180.67]) by mx.google.com with ESMTP id z5-v6si20088426pln.42.2018.11.13.03.09.44; Tue, 13 Nov 2018 03:10:07 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=U9TbVBp3; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 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 S1732402AbeKMVG6 (ORCPT + 99 others); Tue, 13 Nov 2018 16:06:58 -0500 Received: from mail-ot1-f50.google.com ([209.85.210.50]:46355 "EHLO mail-ot1-f50.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726581AbeKMVG6 (ORCPT ); Tue, 13 Nov 2018 16:06:58 -0500 Received: by mail-ot1-f50.google.com with SMTP id w25so10192121otm.13 for ; Tue, 13 Nov 2018 03:09:22 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc:content-transfer-encoding; bh=4YJFATsFVNa+JpUMbBsVkqVbvYHE+WeYf5fsB5ihjU0=; b=U9TbVBp3bCixNFBXNewLHkOBMRW9mCJFsiRfuelHeeykbl13KRVEK+6jbvjQDf0w9t 4Og89Cn347syfzbPBM8Qpx3F4I+sexcm+XFxOhPJhi6UPK9zNyW2n3Wa9XpPVxR6Yb2d 3N/gH6X9b/tw6ZJZs4Zr1b3Lj5ki/A+65CWYs= 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=4YJFATsFVNa+JpUMbBsVkqVbvYHE+WeYf5fsB5ihjU0=; b=pGvQEEKDuzKQqs4ptj56iJ4SI92/lEV7e17VRaYuvhomwgg2A+AfMaEWEdjqWuoTkX LiKaclOStG55ZjBAwafxNA98t+WBNLKLHa8d1IMsl1kQIIINeMoQe797U6HmV34r6l+S YLz7BnqaE+PaufWWDTNp22Oej7RnVyTUAkPWBjs0+0LYhrm5PYynZgJe1C6dXIUWbtAz Ns7IlAWz5yYJebk82tqzWewJpteWvnhTe7AWL6IuFI6D3CfsFc+JeiVcvtBgcr52rDOU 7xzoAWAbrvDgzJJuh3T2POXtf6atbRbrnGWTmieeYFtTRymkKCfa0ulxJxVBIyOXdm+M UvGA== X-Gm-Message-State: AGRZ1gJ8bJwUjvHdLJy46SQaKKl5aH4ecSUKpmhe6NPEKO4Tt3R8iVM8 8cwoGsmYzdi+EFXCYvk9T9ouQvk2No3TvgRlbq/kcg== X-Received: by 2002:a9d:26a1:: with SMTP id l30mr2679124otb.344.1542107361527; Tue, 13 Nov 2018 03:09:21 -0800 (PST) MIME-Version: 1.0 References: <1541818660-37168-1-git-send-email-yuehaibing@huawei.com> In-Reply-To: <1541818660-37168-1-git-send-email-yuehaibing@huawei.com> From: Benjamin Gaignard Date: Tue, 13 Nov 2018 12:09:10 +0100 Message-ID: Subject: Re: [PATCH -next] drm/sti: remove set but not used variable 'priv' To: yuehaibing@huawei.com Cc: Vincent Abriou , David Airlie , ML dri-devel , Linux Kernel Mailing List , kernel-janitors@vger.kernel.org Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Le sam. 10 nov. 2018 =C3=A0 03:48, YueHaibing a =C3= =A9crit : > > Fixes gcc '-Wunused-but-set-variable' warning: > > drivers/gpu/drm/sti/sti_crtc.c: In function 'sti_crtc_vblank_cb': > drivers/gpu/drm/sti/sti_crtc.c:255:22: warning: > variable 'priv' set but not used [-Wunused-but-set-variable] > > It never used since introduction in > 9e1f05b28009 ("drm/sti: rename files and functions") > > Signed-off-by: YueHaibing Applied on drm-misc-next. Thanks, Benjamin > --- > drivers/gpu/drm/sti/sti_crtc.c | 2 -- > 1 file changed, 2 deletions(-) > > diff --git a/drivers/gpu/drm/sti/sti_crtc.c b/drivers/gpu/drm/sti/sti_crt= c.c > index 61c2379..ed76e52e 100644 > --- a/drivers/gpu/drm/sti/sti_crtc.c > +++ b/drivers/gpu/drm/sti/sti_crtc.c > @@ -252,10 +252,8 @@ int sti_crtc_vblank_cb(struct notifier_block *nb, > struct sti_compositor *compo; > struct drm_crtc *crtc =3D data; > struct sti_mixer *mixer; > - struct sti_private *priv; > unsigned int pipe; > > - priv =3D crtc->dev->dev_private; > pipe =3D drm_crtc_index(crtc); > compo =3D container_of(nb, struct sti_compositor, vtg_vblank_nb[p= ipe]); > mixer =3D compo->mixer[pipe]; > > >