Received: by 2002:a05:6a10:f347:0:0:0:0 with SMTP id d7csp4058161pxu; Mon, 30 Nov 2020 16:52:35 -0800 (PST) X-Google-Smtp-Source: ABdhPJyWQypFsoPK+RdZ5oA4Dy/gBq4sXoztQsNLY7GjRljKf88MhUSfVYx5TaPoUfjugABZncCM X-Received: by 2002:aa7:cb02:: with SMTP id s2mr411235edt.211.1606783955147; Mon, 30 Nov 2020 16:52:35 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1606783955; cv=none; d=google.com; s=arc-20160816; b=CgrjHJzHd5JCjE3CAAGSY8uQ84WH1eUuYw189wXiX4UavBbL+QEq9gNdBEKn+TG9FG ryJAad6ES9gPO0JZKLyyN/N7i7Vv5YGN5rGt1huZ4xy86my+BRtNRNfGFwRu8idFHaAL r8XhnJ4ZZqsLkKkuDHeXC2IP/GKeuwY05lJ7WpFy0WO1i1vybpEaawTr93pOIM+73IL3 vee9q+i9IKf4RNQemNJTnzjSsdPJbN2YEaqkS80nyfWmbGiieAzaWjU1JtTs8YALkGDv 71rOEWBu8eFn9As8BH4nKspWy8f/adlEiRu0oBK3lG1o6xhZ2+MdU/LBwU5XXNWZvo9e jeoA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:user-agent:in-reply-to:content-transfer-encoding :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature; bh=zI3joqWDlNyPs6bVf8+a9QgpBtZydGTR6Q0nqoSqJCs=; b=FaK1bLLa3JiJ3JLqt2ORj/vIb+Tnt8cujP2pKjdFKcgxy1OLAAT91N/AtUdu2b714Q jRF0bJ4fYggOA5r+y4/lfjLlTB+dFbEvE38/mnUqyfW/fYdq3kNWUKGKFCKRF4k8tOvZ vls62vQHlngPlGH6WflJmui3BbPkLr+t0mqB7p4w0SgpbKw1Xp/yp/9H7SPchIXesNQL Vlswz5Vz6I+SsIXqSnckgA6/JtNxSahaMWhGj9dqAIv/iC7UMWJZu6FxdKlcLQuNdiJp pj2x5Lhqzlsl1OO/LVUcq/AQF1mia4ClsAuNI3TFlLCxG1XKIHlNCtKlMWQT62sI1nio yS+w== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@roeck-us.net header.s=default header.b=cl4NLuzg; 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 a15si104509edb.360.2020.11.30.16.52.12; Mon, 30 Nov 2020 16:52:35 -0800 (PST) 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=fail header.i=@roeck-us.net header.s=default header.b=cl4NLuzg; 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 S1731164AbgLAAtn (ORCPT + 99 others); Mon, 30 Nov 2020 19:49:43 -0500 Received: from gproxy10-pub.mail.unifiedlayer.com ([69.89.20.226]:43509 "EHLO gproxy10-pub.mail.unifiedlayer.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1731157AbgLAAtn (ORCPT ); Mon, 30 Nov 2020 19:49:43 -0500 Received: from cmgw12.unifiedlayer.com (unknown [10.9.0.12]) by gproxy10.mail.unifiedlayer.com (Postfix) with ESMTP id 49D86140488 for ; Mon, 30 Nov 2020 17:49:02 -0700 (MST) Received: from bh-25.webhostbox.net ([208.91.199.152]) by cmsmtp with ESMTP id jtqnkXOT5eMJHjtqokeEo8; Mon, 30 Nov 2020 17:49:02 -0700 X-Authority-Reason: nr=8 X-Authority-Analysis: v=2.3 cv=Ff8ZOq26 c=1 sm=1 tr=0 a=QNED+QcLUkoL9qulTODnwA==:117 a=2cfIYNtKkjgZNaOwnGXpGw==:17 a=dLZJa+xiwSxG16/P+YVxDGlgEgI=:19 a=IkcTkHD0fZMA:10:nop_charset_1 a=zTNgK-yGK50A:10:nop_rcvd_month_year a=evQFzbml-YQA:10:endurance_base64_authed_username_1 a=KKAkSRfTAAAA:8 a=OPsBkE8w8ii4HYlIn34A:9 a=QEXdDO2ut3YA:10:nop_charset_2 a=cvBusfyB2V15izCimMoJ:22 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=roeck-us.net; s=default; h=In-Reply-To:Content-Transfer-Encoding: Content-Type:MIME-Version:References:Message-ID:Subject:Cc:To:From:Date: Sender:Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Id:List-Help: List-Unsubscribe:List-Subscribe:List-Post:List-Owner:List-Archive; bh=zI3joqWDlNyPs6bVf8+a9QgpBtZydGTR6Q0nqoSqJCs=; b=cl4NLuzgmlSGV9w23vnsynMSUL ctsX3/w9j3MfI3v6w4EIM5h9OX7ud/5AZarOsFP586oGUmmKh36IDJBHqIMj0sJpS6SHZ9KfpCpDz /orhtrALNcb7H7NMPcIRlJK+MRCOBq8zFKC1BcHonTwELhFTmoFTLT6wcYVX/8unox1UGULGpLu0N rTVBFxBf8iPB+TV/oimZOULk+CTuZFjxSJ3WCQ4iXBH51puuD/cdJYPl6VQ9RlJvlRsZxgJd04J1G W80J5BrB+E1DfjT54TN+3ykKGDR9RTN7A6DTwEfwAKr0PiZIc4kK0JjLxXeUCch8FKMpnpVfZnMLu aDlVc55g==; Received: from 108-223-40-66.lightspeed.sntcca.sbcglobal.net ([108.223.40.66]:57206 helo=localhost) by bh-25.webhostbox.net with esmtpa (Exim 4.93) (envelope-from ) id 1kjtqn-002dFx-AB; Tue, 01 Dec 2020 00:49:01 +0000 Date: Mon, 30 Nov 2020 16:49:00 -0800 From: Guenter Roeck To: Anders Roxell Cc: b.zolnierkie@samsung.com, jdelvare@suse.com, linux-hwmon@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH] drivers: hwmon: pwm-fan: fix warning unused variable 'ctx' Message-ID: <20201201004900.GA48095@roeck-us.net> References: <20201201003118.2219422-1-anders.roxell@linaro.org> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <20201201003118.2219422-1-anders.roxell@linaro.org> User-Agent: Mutt/1.9.4 (2018-02-28) X-AntiAbuse: This header was added to track abuse, please include it with any abuse report X-AntiAbuse: Primary Hostname - bh-25.webhostbox.net X-AntiAbuse: Original Domain - vger.kernel.org X-AntiAbuse: Originator/Caller UID/GID - [47 12] / [47 12] X-AntiAbuse: Sender Address Domain - roeck-us.net X-BWhitelist: no X-Source-IP: 108.223.40.66 X-Source-L: No X-Exim-ID: 1kjtqn-002dFx-AB X-Source: X-Source-Args: X-Source-Dir: X-Source-Sender: 108-223-40-66.lightspeed.sntcca.sbcglobal.net (localhost) [108.223.40.66]:57206 X-Source-Auth: guenter@roeck-us.net X-Email-Count: 1 X-Source-Cap: cm9lY2s7YWN0aXZzdG07YmgtMjUud2ViaG9zdGJveC5uZXQ= X-Local-Domain: yes Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Dec 01, 2020 at 01:31:18AM +0100, Anders Roxell wrote: > When building hwmon/pwm-fan the following unused-variable warning shows > up: > > /tmp/drivers/hwmon/pwm-fan.c: In function ‘pwm_fan_is_visible’: > /tmp/drivers/hwmon/pwm-fan.c:167:22: warning: unused variable ‘ctx’ [-Wunused-variable] > > Remove the unneeded variable declaration 'ctx'. > > Fixes: 439ed83acc19 ("hwmon: (pwm-fan) Convert to hwmon_device_register_with_info API") > Signed-off-by: Anders Roxell I already folded this change into the original patch. Guenter