Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp6001633imu; Mon, 21 Jan 2019 01:13:08 -0800 (PST) X-Google-Smtp-Source: ALg8bN5sUEnJj5Q1hlqkwa1VxGV4G0bIq4FYPWKlcj+B6E2pursAa9MkFcJJsGIovweNQgFVeC45 X-Received: by 2002:a63:d904:: with SMTP id r4mr27506512pgg.207.1548061988918; Mon, 21 Jan 2019 01:13:08 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1548061988; cv=none; d=google.com; s=arc-20160816; b=uY2rvRnwuKR0Ofok7y3LiKoG5zOtmcWLbQEo3n0e0kpIF29sa/mPpBJOVspqvpqY70 ymfBw7nEtyJ+Xt7M0hrI5Dsqv3e2U1vpLWGSloHY9wRjVjbrLXa24tR4uePJW04rIkQm f3QM3cPgGmQ5a7fTX9BWO9yLQzzl0XkqMr9ty9FalP1HG8lrt35mEym7MAElCytN7IKw r94Sz7qdhQiuosXuLGnvQMLSQ4RT5dD0GtwH5VN3dPzXRysQmCZwsC2sY06/GbGAxyT9 S0aP5nBgReXJTFH32GlTzFsNHS3V4TgN9blfxs0W9zR1+mYu5qGK/zT74pipwpQ530S/ Sleg== 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=MbxvX/AkJ3wQ59hS4IMAvv/9UKU2g7OluU2n+zsp7MY=; b=XIB40S7+KNUs8CGOXJP/BF+MLRgaGrGWQ6QIhn5Ko5kVpRA72v29TD5epOZFngWuaM ugusNMo3We/WxZlBNyZDmOvLZqtutDZ0M+7mVJpxe11vwAkzFsQoF1BR2zWVr8xLWr+R FAZblHhu4wLBpYgiO3WQrDvxc5PLFpt6yIUhW4do36My6HlblqRgrP4dbt75K2M9Rlo9 KTj8ZHNR4mJZ1azpamxOHI1K9pd+5NmKLGICAMyyrybFWsL7nqpv6JyHWhgAkXOCgVPH Pc0u5+ayZypyFPb2CJohYGuCYn/Royy8dpqlzDBceDW7uJSgSLRkOae8nnJgmmQexkA7 v7RQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=fBbfxhS1; 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 q4si12185234pfq.56.2019.01.21.01.12.53; Mon, 21 Jan 2019 01:13:08 -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=fBbfxhS1; 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 S1726192AbfAUJJw (ORCPT + 99 others); Mon, 21 Jan 2019 04:09:52 -0500 Received: from mail-oi1-f196.google.com ([209.85.167.196]:33606 "EHLO mail-oi1-f196.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725993AbfAUJJv (ORCPT ); Mon, 21 Jan 2019 04:09:51 -0500 Received: by mail-oi1-f196.google.com with SMTP id c206so14012975oib.0 for ; Mon, 21 Jan 2019 01:09:51 -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=MbxvX/AkJ3wQ59hS4IMAvv/9UKU2g7OluU2n+zsp7MY=; b=fBbfxhS1gG2iO5wnoOR9EILcuAAHPLx5n3A2TE+QsXVm8IBa9G3/m0Quez8GRWyvTf i6P07S59zzTO4kYQRZvU1B54rGyrUUzr83hYDW+tr2RfJKIMQRqgxaC20DybPwAYKcKM fKKnhcD8QoH2owgnU3q/r2vm5gpmbebQ7voDw= 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=MbxvX/AkJ3wQ59hS4IMAvv/9UKU2g7OluU2n+zsp7MY=; b=XmOvfMJszfBWVoIj0o+N130zlHukNjjLD7ztNTxND1IWjCu+KRlYd9nHyPqo7HlrNN N/Wn2K9pHMipMo0s000KR0zq+8VptCjogbrMawAJE50vb2c6fqa13Mob/JCes8UE7bdR Zg4dWY1eDb3He6CLQgneXnq5THbMaeGxO/Rf21sMgHary0wzQFewMzV9sB2U9rEc+hek BIUtTtwhjzvQInE+zlg9bXfu+9NSoxmWRQVr73umMZ+Ryc/Sh/pMG1SXsuAUhM6B+MfS UQHOuGTBG10k0N9GLh/i2Wg9usCVx9BrfYG1TwKTCcX2oEbc8+wGZ80L1jXLIAzNbQDo jI/w== X-Gm-Message-State: AJcUukf/LYQXMWLHDZO+fVEKLvW5jRg5Ga36q9AlL2acVCsot/94KS51 vaHPtvrB3Mf9w4rIZI8Dhu969heuQI329qcIpTIznw== X-Received: by 2002:aca:f103:: with SMTP id p3mr4949822oih.94.1548061790765; Mon, 21 Jan 2019 01:09:50 -0800 (PST) MIME-Version: 1.0 References: <1538131180-34108-1-git-send-email-yuehaibing@huawei.com> <1548059241-148022-1-git-send-email-yuehaibing@huawei.com> In-Reply-To: <1548059241-148022-1-git-send-email-yuehaibing@huawei.com> From: Benjamin Gaignard Date: Mon, 21 Jan 2019 10:09:39 +0100 Message-ID: Subject: Re: [PATCH -next] drm/stm: ltdc: remove set but not used variable 'src_h' To: YueHaibing Cc: Yannick Fertre , Philippe Cornu , Vincent Abriou , David Airlie , Daniel Vetter , Maxime Coquelin , Alexandre Torgue , ML dri-devel , linux-stm32@st-md-mailman.stormreply.com, Linux ARM , 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 lun. 21 janv. 2019 =C3=A0 09:21, YueHaibing a = =C3=A9crit : > > Fixes gcc '-Wunused-but-set-variable' warning: > > drivers/gpu/drm/stm/ltdc.c: In function 'ltdc_plane_atomic_check': > drivers/gpu/drm/stm/ltdc.c:694:13: warning: > variable 'src_y' set but not used [-Wunused-but-set-variable] > u32 src_x, src_y, src_w, src_h; > ^ > ^ > drivers/gpu/drm/stm/ltdc.c:694:6: warning: > variable 'src_x' set but not used [-Wunused-but-set-variable] > u32 src_x, src_y, src_w, src_h; > ^ > > Signed-off-by: YueHaibing Applied on drm-misc-next, Thanks, Benjamin > --- > drivers/gpu/drm/stm/ltdc.c | 4 +--- > 1 file changed, 1 insertion(+), 3 deletions(-) > > diff --git a/drivers/gpu/drm/stm/ltdc.c b/drivers/gpu/drm/stm/ltdc.c > index 61dd661..a91e041 100644 > --- a/drivers/gpu/drm/stm/ltdc.c > +++ b/drivers/gpu/drm/stm/ltdc.c > @@ -691,7 +691,7 @@ static int ltdc_plane_atomic_check(struct drm_plane *= plane, > struct drm_plane_state *state) > { > struct drm_framebuffer *fb =3D state->fb; > - u32 src_x, src_y, src_w, src_h; > + u32 src_w, src_h; > > DRM_DEBUG_DRIVER("\n"); > > @@ -699,8 +699,6 @@ static int ltdc_plane_atomic_check(struct drm_plane *= plane, > return 0; > > /* convert src_ from 16:16 format */ > - src_x =3D state->src_x >> 16; > - src_y =3D state->src_y >> 16; > src_w =3D state->src_w >> 16; > src_h =3D state->src_h >> 16; > > > > > >