Received: by 2002:a25:e74b:0:0:0:0:0 with SMTP id e72csp525370ybh; Tue, 21 Jul 2020 01:01:16 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxME56HdSMzqh6pILSggcTndOKjBZWGOdeWOzuL1fbORZULGuLSvWTWGyigj+afOjY/AFCP X-Received: by 2002:aa7:d4d2:: with SMTP id t18mr24283561edr.166.1595318476181; Tue, 21 Jul 2020 01:01:16 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1595318476; cv=none; d=google.com; s=arc-20160816; b=mnlQ5hEClrcNoQWvJkTjC0spcc4xYLFM7gmlR/WSYlqQW2OEncAAijpIn8IP9fCWIk wW7VNKc2VDvW3U/YhcsMEtwwjIZfuDGx753/KUuZS4TwTMs96TE8HR38gGXqxixdJsmL QJ431TXfWr8u9/6crSuDVO9PRCjw5nBJ+TT4nPLKX3ac+37pTaXdJ2NMiZEGZogqpK56 fVeSZYuQMpi6TIIm0pYBk4WsK/27Q9tWIgLMSFPgXIBJJe8Neoa97XotlF7nklPhqLRk giX9RQymywOPwvMZyFcx6feG6Po3396EyYja2LI0Iq2pkveXzyUWi+h1JA9PKUyrUB5U P1gg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:in-reply-to:content-transfer-encoding :content-disposition:mime-version:references:message-id:subject:cc :to:from:date; bh=+0TQrB26+vv1O6JGvbnFG9OZzexLXxvk4Xaggw7Bi3c=; b=bpwvWrWghlLOO5PrhXr973IjM/KerCfspJfyohpUsIn5GKKrEiFApLkt019Dh0IszG 364B4/vs8MH2JTqYNwl3+tSPXMmKEYho+ElZh65Y95xfpoFGC+eHkBlEEXpqrqVcW3j8 Cqeh8fdU8N4m1r2l7+RbMB9rPYQDcBq6AJ9ZAXTDbmoiT/ZWKq4rj8YsN2FeZsiq2RrH eZ+jrPCWe56s873sbKqK0DwEtiiNMptTou66ktH8aGAbcdkae1ZNMYTRKBQbmLiWL0NM x+QnyalHqTh/3QiLbpa/lYIGFdvlWEghh3E8yjWBLyKE9pTG6IUzj27K6j0tTKAZ5x7b Y/+w== ARC-Authentication-Results: i=1; mx.google.com; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id y8si12657530edm.463.2020.07.21.01.00.53; Tue, 21 Jul 2020 01:01:16 -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; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728023AbgGUIAa (ORCPT + 99 others); Tue, 21 Jul 2020 04:00:30 -0400 Received: from asavdk3.altibox.net ([109.247.116.14]:59986 "EHLO asavdk3.altibox.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725984AbgGUIAa (ORCPT ); Tue, 21 Jul 2020 04:00:30 -0400 Received: from ravnborg.org (unknown [188.228.123.71]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by asavdk3.altibox.net (Postfix) with ESMTPS id 002392005C; Tue, 21 Jul 2020 10:00:23 +0200 (CEST) Date: Tue, 21 Jul 2020 10:00:22 +0200 From: Sam Ravnborg To: Lee Jones Cc: Daniel Thompson , Bartlomiej Zolnierkiewicz , Jingoo Han , linux-kernel@vger.kernel.org, dri-devel@lists.freedesktop.org, linux-fbdev@vger.kernel.org, linux-arm-kernel@lists.infradead.org Subject: Re: [PATCH 1/1] video: backlight: cr_bllcd: Remove unused variable 'intensity' Message-ID: <20200721080022.GA41608@ravnborg.org> References: <20200721073919.925935-1-lee.jones@linaro.org> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <20200721073919.925935-1-lee.jones@linaro.org> X-CMAE-Score: 0 X-CMAE-Analysis: v=2.3 cv=f+hm+t6M c=1 sm=1 tr=0 a=S6zTFyMACwkrwXSdXUNehg==:117 a=S6zTFyMACwkrwXSdXUNehg==:17 a=IkcTkHD0fZMA:10 a=7gkXJVJtAAAA:8 a=KKAkSRfTAAAA:8 a=pGLkceISAAAA:8 a=hD80L64hAAAA:8 a=e5mUnYsNAAAA:8 a=VwQbUJbxAAAA:8 a=8YDWVOxWXuGqFK3bR7oA:9 a=QEXdDO2ut3YA:10 a=E9Po1WZjFZOl8hwRPBS3:22 a=cvBusfyB2V15izCimMoJ:22 a=Vxmtnl_E_bksehYqCbjh:22 a=AjGcO6oz07-iQ99wixmX:22 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Lee. On Tue, Jul 21, 2020 at 08:39:19AM +0100, Lee Jones wrote: > Fixes the following kernel build warning: > > drivers/video/backlight/cr_bllcd.c: In function ‘cr_backlight_set_intensity’: > drivers/video/backlight/cr_bllcd.c:62:6: warning: unused variable ‘intensity’ [-Wunused-variable] > 62 | int intensity = bd->props.brightness; > | ^~~~~~~~~ > > Cc: Sam Ravnborg > Cc: Daniel Thompson > Cc: Jingoo Han > Cc: Bartlomiej Zolnierkiewicz > Cc: dri-devel@lists.freedesktop.org > Cc: linux-fbdev@vger.kernel.org > Fixes: 24d34617c24f ("backlight: cr_bllcd: Introduce gpio-backlight semantics") > Signed-off-by: Lee Jones Thanks for fixing this. The driver only build for X86 so the warnings was lost in other build noise. One more thing to improve before next submission - sorry for this. Reviewed-by: Sam Ravnborg > --- > drivers/video/backlight/cr_bllcd.c | 1 - > 1 file changed, 1 deletion(-) > > diff --git a/drivers/video/backlight/cr_bllcd.c b/drivers/video/backlight/cr_bllcd.c > index a24d42e1ea3cd..4ad0a72531fe2 100644 > --- a/drivers/video/backlight/cr_bllcd.c > +++ b/drivers/video/backlight/cr_bllcd.c > @@ -59,7 +59,6 @@ struct cr_panel { > > static int cr_backlight_set_intensity(struct backlight_device *bd) > { > - int intensity = bd->props.brightness; > u32 addr = gpio_bar + CRVML_PANEL_PORT; > u32 cur = inl(addr); > > -- > 2.25.1 > > _______________________________________________ > dri-devel mailing list > dri-devel@lists.freedesktop.org > https://lists.freedesktop.org/mailman/listinfo/dri-devel