Received: by 2002:a25:1985:0:0:0:0:0 with SMTP id 127csp3729240ybz; Mon, 20 Apr 2020 08:23:52 -0700 (PDT) X-Google-Smtp-Source: APiQypL+rsO8ecHwCLnLpzusqnz794YyjbxI9qSo4xlH+Jc+EO9qfm7udDlbk5ll0bt6jTHnzea2 X-Received: by 2002:aa7:d653:: with SMTP id v19mr14331271edr.383.1587396232041; Mon, 20 Apr 2020 08:23:52 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1587396232; cv=none; d=google.com; s=arc-20160816; b=WKSGNBFZktWr/86njFWSg7Hxl96QinviBzOGwVbp0WqTJpCpAJhfiEJqdPaKN60/zS cumqd9eY3ZKcfYYNt5MOAJHOEo7YAdKUho1rLP+BXOpxTRU3fEMHop3MBGScdhYKAHYN erKIfUzKANHVADeoUkqNEiwopGF1g7G9f4FJCeKhWwGUVcIyK/DJaQO3R/DbrWaZisJQ MD1zx/KSlmXyt/mWkN+YJLVM3BSDAeHV60DNV56of+nlSsvmJ7eZFt7Tq9lf+t6xoSH1 y09B56rwRuX7qbKHtGlWuTeYApduL3TgeN+t0MlNSKXlQKGTFOP/IGRrA3poA1at4OFv vl5g== 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:dkim-signature; bh=G/xNrmOfxlip1kYuKwMzJ0K+Zw7TpTWKwNC8FLYeOVE=; b=xm7pKsUCNt7+aB5t8/xnudAg04aig3U5vRIMZHbeHhVDHSlDirRG9qEeZXqNiK+ADz QmbpGmliAFdsdQgUgf5wEQxVoJnrUOGw+E+OV+KUjF13T9DxO7z3qsFS1zomF3lWAXBO e+NWbYRRyIdgN7qTd/eSwgxQ4mjzujwhgQa5FH+OJvETSOergkg9o3lFvmOwecvHTvsv d8h0qd1VSr/6pRQgHwug8NL0mIPeR9e7WocTeWrjThL/ZNc5VDiijdBgJakll+RKqcJS tJEMXeq+kCM5q6epsgYUmguWiQwY+ifEhyDNmFjv+hradSbIW/BlSKQkaiMemg/N8Yun napA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b="scR/lsr/"; 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=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id f26si696461edm.141.2020.04.20.08.23.28; Mon, 20 Apr 2020 08:23:52 -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=@linaro.org header.s=google header.b="scR/lsr/"; 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=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727806AbgDTPVV (ORCPT + 99 others); Mon, 20 Apr 2020 11:21:21 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:57510 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726325AbgDTPVU (ORCPT ); Mon, 20 Apr 2020 11:21:20 -0400 Received: from mail-wm1-x341.google.com (mail-wm1-x341.google.com [IPv6:2a00:1450:4864:20::341]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id B38E4C061A10 for ; Mon, 20 Apr 2020 08:21:19 -0700 (PDT) Received: by mail-wm1-x341.google.com with SMTP id t63so10500720wmt.3 for ; Mon, 20 Apr 2020 08:21:19 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:content-transfer-encoding:in-reply-to; bh=G/xNrmOfxlip1kYuKwMzJ0K+Zw7TpTWKwNC8FLYeOVE=; b=scR/lsr/ImzL3Xwqj5p4gcDJy46jbSvEA+k6tsVX8NbGfGf7kL1pwUz5qgUfnMOmK4 sVlmO/s7PPlbf045xBeI1d/TB9SeihN6OvnYW0eiNx3MGrmW9uumiPeDiX6+6UUpteu1 XEO/hQIdGxWtJj0d6atjm/Hkys8CjOMLEh0PCdoz2UjdPdUJUdwngqqFLLw1KC68Frxo LlY8SA26MGHXf/KuAj7nnNMtCBoaeEKmOSswZoSHWS4TJzKnGh2E1h4tHo5lwsLl9Smg ojJk8H0rzWjHcg61LBoGR5ubxZUn+3WUhLcU+JUSZAUK37ej3wOTunBF0T/dEsPJZ+AI evkw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:content-transfer-encoding :in-reply-to; bh=G/xNrmOfxlip1kYuKwMzJ0K+Zw7TpTWKwNC8FLYeOVE=; b=DwxhRYAme5TEhpuO5vJIcUJbzjomSi5ctcRq/rrSZgTGHyZLZ0Tn2i5O4Se5LcaxNZ /Ky1HM1j939yG573yJb347ZUOER3+KG1KTnyiwTE6z4DpyWmZ+HA6yWueSfSpRwfPsfW AUMuLWOdWkfe6ZbxU7oz9Lsab7UOWLFDAhhhYe33Gmrw64+tBd64iSqqoNRaNVBhDOAM 2WLtEEv8jcORQ2ZsYNi7B76WGMOeFT0bNtiIH9VNB2KbY5lUbgnhVfS4aejjC9UJT82K /21uufeK7FZTICmZxblh5FRMuleZdDkxqajN3PZxdIj7bXnwS8aY5wN5OWt7Qxb6MW5g tKMw== X-Gm-Message-State: AGi0Pubug3Uq29s49dgcMJlPiagMuu+AUg2UnrnlBo88mPkCkJRr3dII +b5iOLzhzDSMpSmnVUVJ1ZS6OQ== X-Received: by 2002:a1c:96c6:: with SMTP id y189mr19216914wmd.106.1587396076953; Mon, 20 Apr 2020 08:21:16 -0700 (PDT) Received: from holly.lan (cpc141214-aztw34-2-0-cust773.18-1.cable.virginm.net. [86.9.19.6]) by smtp.gmail.com with ESMTPSA id e21sm1684652wrc.1.2020.04.20.08.21.15 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 20 Apr 2020 08:21:16 -0700 (PDT) Date: Mon, 20 Apr 2020 16:21:14 +0100 From: Daniel Thompson To: Jason Yan Cc: agross@kernel.org, bjorn.andersson@linaro.org, lee.jones@linaro.org, jingoohan1@gmail.com, b.zolnierkie@samsung.com, kgunda@codeaurora.org, linux-arm-msm@vger.kernel.org, dri-devel@lists.freedesktop.org, linux-fbdev@vger.kernel.org, linux-kernel@vger.kernel.org, Hulk Robot Subject: Re: [PATCH] backlight: qcom-wled: remove 'wled4_string_cfg' and 'wled3_string_cfg' Message-ID: <20200420152114.b7licril3r6itd45@holly.lan> References: <20200417092335.14163-1-yanaijie@huawei.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <20200417092335.14163-1-yanaijie@huawei.com> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, Apr 17, 2020 at 05:23:35PM +0800, Jason Yan wrote: > Fix the following gcc warning: > > drivers/video/backlight/qcom-wled.c:939:34: warning: ‘wled4_string_cfg’ > defined but not used [-Wunused-const-variable=] > static const struct wled_var_cfg wled4_string_cfg = { > ^~~~~~~~~~~~~~~~ > drivers/video/backlight/qcom-wled.c:935:34: warning: ‘wled3_string_cfg’ > defined but not used [-Wunused-const-variable=] > static const struct wled_var_cfg wled3_string_cfg = { > ^~~~~~~~~~~~~~~~ > > Reported-by: Hulk Robot > Signed-off-by: Jason Yan Reviewed-by: Daniel Thompson > --- > drivers/video/backlight/qcom-wled.c | 8 -------- > 1 file changed, 8 deletions(-) > > diff --git a/drivers/video/backlight/qcom-wled.c b/drivers/video/backlight/qcom-wled.c > index 3d276b30a78c..df53fbd5cd03 100644 > --- a/drivers/video/backlight/qcom-wled.c > +++ b/drivers/video/backlight/qcom-wled.c > @@ -932,14 +932,6 @@ static const struct wled_var_cfg wled4_string_i_limit_cfg = { > .size = ARRAY_SIZE(wled4_string_i_limit_values), > }; > > -static const struct wled_var_cfg wled3_string_cfg = { > - .size = 8, > -}; > - > -static const struct wled_var_cfg wled4_string_cfg = { > - .size = 16, > -}; > - > static u32 wled_values(const struct wled_var_cfg *cfg, u32 idx) > { > if (idx >= cfg->size) > -- > 2.21.1 >