Received: by 2002:ac0:a5b6:0:0:0:0:0 with SMTP id m51-v6csp237158imm; Tue, 12 Jun 2018 22:47:15 -0700 (PDT) X-Google-Smtp-Source: ADUXVKJayvqS9Y33rpMtSiSWx9sm4dOzVUEfd9cGX0hdw7cp9/LFI+RwgZXL+LAfkB4WEi2zekSN X-Received: by 2002:a63:7f44:: with SMTP id p4-v6mr2909041pgn.416.1528868835026; Tue, 12 Jun 2018 22:47:15 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1528868835; cv=none; d=google.com; s=arc-20160816; b=auLuJtZjcQXXInh/3Ds+1iDKCKd01jNAnmuetky2z+8uqz+SbCoXkHvrHh39fT/ZzP YY9forLLBV6T4oFpH7r4h1584QTB8jU53+ZV19+XgPMuYFqp7IuK4iBYSx+8Ql44QwEp OYesGT3Os66BOrlWBUNoqeMyDhKflCWQJGs0XWN0fcn1Wy9uCLXoWi52FTzMY3DgDfI9 8J+0a7g16xxb0262IB1EFf7+ff0Y+LDce8Unz9uvxD/C+vwrATJYuZauC16cjkUSdYHf XDdrzCOh26URbw9OAjZ7YDL1632ylyfn8W0ixACss3a+BLWMXbpmNT89VrBj8TgqzyKm gngw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-transfer-encoding:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature :arc-authentication-results; bh=GvlI1WX9QswuujW/klK2YGFota0JOWMQIOWaiMKExhw=; b=tVqxlR1QPlfsnfVM/uBVSejZ7emYGCHTSRnFK9vZ4Bwc5HaqOQF6Uiospo+cyIZYkd 8ROYxVzu8db/IrWmg9+ezgVSpofumCmAXFSB21Tb/aompzU+UKED3sXqmPnGRv5091ka As4eTfX/PiDyG61SIXf8ae5OGbol+UAzUGpj+91QgoH6hiq4po2+h2ROLv+sWGHExE+T kmqQCZ8DaMr8fv3/pY3Hv9HTul7qX4DKDeuOaZofByPS37iCtrJWQB2FnMWnJsmC29dc 9al7nUhH2cV5j9lkhEyw4Y/faGeDwx6FQxQMhdZCeGWzJR83AWHSXYunW1gNEx52HZv5 FbPg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=Q0kur97M; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 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. [209.132.180.67]) by mx.google.com with ESMTP id u190-v6si2002283pfb.325.2018.06.12.22.47.00; Tue, 12 Jun 2018 22:47:14 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=Q0kur97M; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 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 S1754482AbeFMFqE (ORCPT + 99 others); Wed, 13 Jun 2018 01:46:04 -0400 Received: from mail-wm0-f65.google.com ([74.125.82.65]:40105 "EHLO mail-wm0-f65.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754450AbeFMFqD (ORCPT ); Wed, 13 Jun 2018 01:46:03 -0400 Received: by mail-wm0-f65.google.com with SMTP id n5-v6so2787234wmc.5 for ; Tue, 12 Jun 2018 22:46:02 -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 :user-agent; bh=GvlI1WX9QswuujW/klK2YGFota0JOWMQIOWaiMKExhw=; b=Q0kur97MxozXWrvd+q/hB90Aw5lSSFA4KdQ9BVc1SG6Qw1Sx6yf1eUGnkhvKfbiasp 4DJcrtDODVQOU1beRrKPJuuBfDH7PbqNsxcnKkNdfMNYCNJi+W4xas0ETIYlyItP25IO 3hjdFyU/b/UG1uiNpWDz2C3IW33yXa92qaM24= 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:user-agent; bh=GvlI1WX9QswuujW/klK2YGFota0JOWMQIOWaiMKExhw=; b=ohquneMVKR4l0WaTJI87dt8oBNkc8UAIBxuc0Sqyz7g4cxoifZ+CL9B65hHlMXvN3y wuK0ULYsaOHStU4GJibevhMC7szhiG8eRx8eJAAureT1nkbawesPUsjYIfmw2E22NrPb tA4iIU6UhDOg72njTSxXY5kQ0ZImYHI/NDWwufWTyRxBj1dzkK+escFgO9PqtHmxOc+q ThuUizA164Dp7GpQBWMVME4cRo+joKj3tG2uS9UwAKS4snIYTtuh3tqOeJJlHBRJgzvb ozlawPpeJEQOgzY9IirwYYJfPS/QTpceHZDiVqnAcGIqcpnEPIrrfRlF15+XLR4lQnMY BEBQ== X-Gm-Message-State: APt69E1tGlhNSjlK9vzqKZ8ohyFmhCYet4zLAX822wiJZEIyq2Vup0jC /XspJ1bJJshsnZrTWmqdtqfJtQ== X-Received: by 2002:a1c:dcd:: with SMTP id 196-v6mr2487471wmn.131.1528868762153; Tue, 12 Jun 2018 22:46:02 -0700 (PDT) Received: from dell ([95.149.160.78]) by smtp.gmail.com with ESMTPSA id t17-v6sm2205854wrr.82.2018.06.12.22.46.00 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Tue, 12 Jun 2018 22:46:01 -0700 (PDT) Date: Wed, 13 Jun 2018 06:45:59 +0100 From: Lee Jones To: Gwendal Grignou Cc: Benson Leung , Arnd Bergmann , Enric Balletbo i Serra , Benson Leung , Andy Shevchenko , Linux Kernel Subject: Re: [PATCH] mfd: cros_ec: remove unused __remove function Message-ID: <20180613054559.GG5278@dell> References: <20180608144834.3003465-1-arnd@arndb.de> <20180608181956.GA110395@decatoncale.mtv.corp.google.com> <20180611060819.GD5278@dell> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: User-Agent: Mutt/1.9.4 (2018-02-28) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, 12 Jun 2018, Gwendal Grignou wrote: > On Sun, Jun 10, 2018 at 11:08 PM Lee Jones wrote: > > > > On Fri, 08 Jun 2018, Benson Leung wrote: > > > > > > > > On Fri, Jun 08, 2018 at 04:48:06PM +0200, Arnd Bergmann wrote: > > > > This function is no longer called, so we get a harmless > > > > warning until it is removed as well: > > > > > > > > drivers/mfd/cros_ec_dev.c:265:13: error: '__remove' defined but not used [-Werror=unused-function] > > > > > > > > Fixes: 3aa2177e4787 ("mfd: cros_ec: Use devm_kzalloc for private data") > > > > > > Gwendal, in PATCH v2 of https://patchwork.kernel.org/patch/10439449/ > > > you mentioned that you readded the __remove to avoid a warning when built > > > as a module. Can you explain what's going on? > > > > Yes please, and quickly. I'm going to sent the patch-set today. If I > > don't hear from you promptly, I'll probably pull the patch! > I readded it because when cros_ec_dev is loaded as module, I get a > warning on dmesg when unloading: > > """Device 'cros_pd' [or 'cros_ec'] does not have a release() function, > it is broken and must be fixed.""" > > The warning comes from device_release(). Given I get a warning when I > remove the release function or when I leave it empty. Let's pull the > patch. I already did. It's in Mainline. :) -- Lee Jones [李琼斯] Linaro Services Technical Lead Linaro.org │ Open source software for ARM SoCs Follow Linaro: Facebook | Twitter | Blog