Received: by 2002:a05:6a10:f347:0:0:0:0 with SMTP id d7csp3160101pxu; Sun, 29 Nov 2020 17:17:57 -0800 (PST) X-Google-Smtp-Source: ABdhPJxL1Vb04UIOJ744/mzJe4L4YScFllDKCUnYFU7J4yTJQbYh7XVM3c4AvGBrZILiLwGkxMIP X-Received: by 2002:a05:6402:1c1c:: with SMTP id ck28mr19626322edb.336.1606699077023; Sun, 29 Nov 2020 17:17:57 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1606699077; cv=none; d=google.com; s=arc-20160816; b=Y2XCpAejEo26B13k7QTrRT6HNz+YIsKtAY8WqUtocbikOLna94SAiu7+DPyselNZul ueqJPewYf+Q58LbMHuaeo1uEuF/HsrN2tFh19Jm1Tm5pE1I2fql78kFDTRNX2zleoBki vSIchRfwXoT1LMOBNIQiD37z7oF+tW6HJSf3Au8nXuOX7VqYp1VVXdKrWtJv5Mt2Lw6g lrP6yZoonVYI5PA/kc71XTV+G0ZMF2yI6/6KDMV/I4Mm+R4+QYFxHV9dZrepMxGZ9IrJ h8RVFPlTznOFwdPkCjLrj15lsgeNQ7F3+9MPMw0mYJGFo/24shOfZevlmTDPwY72W+D3 y9wQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version:dkim-signature; bh=Ci5CHLJxKEcy3QWlP5ZvQNWjEsU1uJaTooeTMXCOkpM=; b=OUVeTiw1L8p86gSyOz2FCv2LGPZEL0PSdx/0Bgzo0yJzSargGvgTifvARI4iR2BG8B k+h0tqrXnNYUJoYdRuGleaEabQ5dKD3CT1HNZLAZ9CYQJT1ewOlJshj9e2wMmyeyYkO6 VqM7Wz6G71dsY6Sb1Yc9yj3YEA7EVFg9JXw2x2DZZxjzeJj+wxNOxFN8689OKb0OByES 6fAhSadHYIOli6mYIWb3SMbYXbd6Ns2Y6WrHX6zqWjtCJhwI8sHt2RUtsCu/vfVN7Fjr Fr0jYe14UFgBp2ErAOuPIH2Ehog94BggvoZXssudXChcGqbDdMsJY5E6MGiAFNOm45py LOJQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@konsulko.com header.s=google header.b=VJyTZOT2; 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 z27si5385583edm.410.2020.11.29.17.17.21; Sun, 29 Nov 2020 17:17:57 -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=@konsulko.com header.s=google header.b=VJyTZOT2; 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 S1726660AbgK3BOz (ORCPT + 99 others); Sun, 29 Nov 2020 20:14:55 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:38134 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726470AbgK3BOz (ORCPT ); Sun, 29 Nov 2020 20:14:55 -0500 Received: from mail-oi1-x242.google.com (mail-oi1-x242.google.com [IPv6:2607:f8b0:4864:20::242]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 3162FC0613CF for ; Sun, 29 Nov 2020 17:14:15 -0800 (PST) Received: by mail-oi1-x242.google.com with SMTP id w15so12497772oie.13 for ; Sun, 29 Nov 2020 17:14:15 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=konsulko.com; s=google; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=Ci5CHLJxKEcy3QWlP5ZvQNWjEsU1uJaTooeTMXCOkpM=; b=VJyTZOT2W29g9lbzViVerqyxYm7t7mekhgBqzEWmnluCOlHr2+wAAXF2oBjzVFQTdl IVfHGeqn6AgbopUWPbI3iiRViRmWoo0w5XHuKhWOnWIpdgV8DwxmpEpt39eMuiM/TYEo I38gNqc8yOFe2xA1nLldGR6sm272WxkmrazpQ= 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; bh=Ci5CHLJxKEcy3QWlP5ZvQNWjEsU1uJaTooeTMXCOkpM=; b=mUwVzSqgMLcLij50UmYqWPQsJs7vSDnT3jAKX0dH+rb9sKQUsulRAtQKUxo2lz3jIr rYF5s/sAw2+DXqu1Gqj6IlDXUkLaGduV7GqNGuwAEntv//Pslg0wDbACQ8nxtlj+pk0A T2EaKsK7MhWd00sVfRxcUMpJOliL7WfcGm4GOck7aXWiPtCFLn1OzfeQWmUP4EFt682I bG4cRSsJEZ2YJqMuup6spxBhVaQTBLDP3mNyH7Ec9fUuw8dY66TuKqUR488ZfjpCRXlK 99HUmXQvif4DkLHVw5Prf1PRD1NZdF+ZGDmUJYrznLMNYm5lv4A5KqzN39c+B0kVSx86 TJHg== X-Gm-Message-State: AOAM53098Fg0FzD3rgfqiU7WWGmxxZWcpaJS21PM/mnEI0YM3tQrf08G XNgST4XuFEo+1o3hwFem9lmz+aIQ6DOnrpJS9Ipa7g== X-Received: by 2002:aca:f3d6:: with SMTP id r205mr12752793oih.152.1606698854248; Sun, 29 Nov 2020 17:14:14 -0800 (PST) MIME-Version: 1.0 References: <20201130115603.48e91a19@canb.auug.org.au> In-Reply-To: <20201130115603.48e91a19@canb.auug.org.au> From: Paul Barker Date: Mon, 30 Nov 2020 01:14:03 +0000 Message-ID: Subject: Re: linux-next: build warning after merge of the hwmon-staging tree To: Stephen Rothwell Cc: Guenter Roeck , Linux Kernel Mailing List , Linux Next Mailing List Content-Type: text/plain; charset="UTF-8" Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, 30 Nov 2020 at 00:56, Stephen Rothwell wrote: > > Hi all, > > After merging the hwmon-staging tree, today's linux-next build (arm > multi_v7_defconfig) produced this warning: > > drivers/hwmon/pwm-fan.c: In function 'pwm_fan_is_visible': > drivers/hwmon/pwm-fan.c:167:22: warning: unused variable 'ctx' [-Wunused-variable] > 167 | struct pwm_fan_ctx *ctx = (struct pwm_fan_ctx *)data; > | ^~~ > > Introduced by commit > > 439ed83acc19 ("hwmon: (pwm-fan) Convert to hwmon_device_register_with_info API") > Ah yes. I removed the code that used ctx but forgot to remove the assignment itself. I'm surprised it didn't generate a warning for me. I can fix it up tomorrow and send a v3 patch series. Thanks, -- Paul Barker Konsulko Group