Received: by 2002:a05:6a10:f347:0:0:0:0 with SMTP id d7csp4059618pxu; Mon, 30 Nov 2020 16:55:23 -0800 (PST) X-Google-Smtp-Source: ABdhPJzSIKK/P27PGjsC4gXmNlWfT3wlC6HZZmkwVb3JjVzTedLkea6jMfPwJd7nk/pFuN9U/wXw X-Received: by 2002:a17:906:1758:: with SMTP id d24mr520721eje.287.1606784123487; Mon, 30 Nov 2020 16:55:23 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1606784123; cv=none; d=google.com; s=arc-20160816; b=0HePv4pUEYayHmoUax+5amPTH7tdpHLjP5d1BrtzOn2CgVG424dIJ3TKmv4T5j4X97 sMbHQ5fcjqaYVGda0Hcz9ZANyT6i6NoEZeTwDWshIrTdTsEd4Isxiu69LAqjQugQsCSt B42earI+GRnSUs3bWj/gQwcqnsEndvwjhc7+JIIJvgTYcMZHXrveOjGR/9ELpyeSmzdg OdNztSdwzYZ3CGswjC7mrsfWmi07rmre53BTdQe0pK13Yh6vsf2lsMUhJaHhGFS4TZmG hTb4yi41NCo9EU/JqgO7q5as7bUamdaGBhCxROzu20g2HWNDSh3WYGAehq1SLUJHcRd2 i8Aw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:cc:to:subject :message-id:date:from:in-reply-to:references:mime-version :dkim-signature; bh=FDA3bzcAl1VMiQxZ+Tn6nV+nyrVbhZqsOS0EUcBps6E=; b=bbYsB4CrC+h9sUxA2E2ckMbQI9nMln7O7tsPHJ9Olzi92Pt9htAUMAZrTt4ndhH9Q9 EH+n0FWZbajMaCE9uCB9sHlLY4B2QYXw5auUZpMc6stEovj7iJHaOMOKY1Q7NZol4fuZ ov3+mzEsFZv4iG7uzr7jsIa3A2AbVzmhr1G3achNvJvdw6LQMO1tAEGXZ6syRof5kC+h XrO+7hkcP4OXEOMOdnGtdwBXDfD98rz0ocv1ZCNu2o3rHPRvOUm6k13d8ez2jzvGQ5y6 aZncxQ62cnOXkYKEZP3SbGUhWN6Miix4Jr1jPtg/CYdcUAkRE3GiAiiQkqMxvOODufjz WFwg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=bLQaMJp1; 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 by16si87931edb.586.2020.11.30.16.55.00; Mon, 30 Nov 2020 16:55:23 -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=pass header.i=@linaro.org header.s=google header.b=bLQaMJp1; 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 S1729144AbgLAAxb (ORCPT + 99 others); Mon, 30 Nov 2020 19:53:31 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:60264 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727861AbgLAAxb (ORCPT ); Mon, 30 Nov 2020 19:53:31 -0500 Received: from mail-lf1-x142.google.com (mail-lf1-x142.google.com [IPv6:2a00:1450:4864:20::142]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 1AF33C0613D6 for ; Mon, 30 Nov 2020 16:52:51 -0800 (PST) Received: by mail-lf1-x142.google.com with SMTP id u18so390576lfd.9 for ; Mon, 30 Nov 2020 16:52: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=FDA3bzcAl1VMiQxZ+Tn6nV+nyrVbhZqsOS0EUcBps6E=; b=bLQaMJp1qQC2KOL2I6iL1GherOgjFJfBauri2nka89tsNPt5Bh0ecQCRIoct402Cs7 Su5Gs4RiGbxFERFqE5RCRUWxh7aFlJ0S446GaWbu7Kw53RgeCFPT09Wu/AZDJTsXp3V5 /aIZLhU3LLq3xHel5jKUJJXVOM3MO7/JHfShzzgM5WboFoxnJwXusDBup9KAqYSe+h+s LA08X+6JzTUGQM/swNkWp5b694LZoQ6PVIJmmK3INu4e9g+vIOpr38xmv3Si50p69yQQ YmT/LCZ0wo0b/FrgoxCy0hwewI9+kbr5qJbcG4cc42ugUbR8RvbUSEudlW8i+3NF1K7p zXbQ== 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=FDA3bzcAl1VMiQxZ+Tn6nV+nyrVbhZqsOS0EUcBps6E=; b=EzSR2QcVqWZ+PdTb2B/rZBbSyZXpYgJeUd0/bPZIlVOjYIg3npXEsnYb1rYeEcFXJn 2e1oW2zAEm/Yl+gtM29POGiuihcVrYeEOy7MVawJg8LEIaafnhN2GEJltWsR+Q456ZNt sQ4X7M8rZiCz8AlHtKgltiZHDHXoapvo3QeFdZZyP47/+tsDeM15nqFyYK15a0reTUpq Bgh9KJIN/KPL4Trq90x9unGIqWMo58d4DkUcRhiOMXdqDWFUHhc8OhGj7m9zkC5Lg/RX nDr5NP4gkhn/JLCiBHPhY9Q27z9TprTFZ/ZN3y1cyEG4jInjvAmd5KTx0O8A3RY/Ec6U dUZQ== X-Gm-Message-State: AOAM533l6JM9fsvxZpbX9GPZBAQTgghgKbr95zak8Zf33sXsFlcm1lyk 9MgPQbO/HC8QjHLSkfju0/leHLoA9Vgk1RA9O0XDyA== X-Received: by 2002:ac2:530b:: with SMTP id c11mr80736lfh.185.1606783969610; Mon, 30 Nov 2020 16:52:49 -0800 (PST) MIME-Version: 1.0 References: <20201201003118.2219422-1-anders.roxell@linaro.org> <20201201004900.GA48095@roeck-us.net> In-Reply-To: <20201201004900.GA48095@roeck-us.net> From: Anders Roxell Date: Tue, 1 Dec 2020 01:52:38 +0100 Message-ID: Subject: Re: [PATCH] drivers: hwmon: pwm-fan: fix warning unused variable 'ctx' To: Guenter Roeck Cc: b.zolnierkie@samsung.com, jdelvare@suse.com, linux-hwmon@vger.kernel.org, Linux Kernel Mailing List Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, 1 Dec 2020 at 01:49, Guenter Roeck wrote: > > 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 =E2=80=98pwm_fan_is_visible= =E2=80=99: > > /tmp/drivers/hwmon/pwm-fan.c:167:22: warning: unused variable =E2=80=98= ctx=E2=80=99 [-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. That's great Guenter, I missed that. I'm sorry for the noise. Cheers, Anders