Received: by 2002:ac0:a5b6:0:0:0:0:0 with SMTP id m51-v6csp5761376imm; Tue, 12 Jun 2018 12:54:47 -0700 (PDT) X-Google-Smtp-Source: ADUXVKIGeCAytfjtaA8LTWLBW1xFL57U/9KVPvxSCbDAw+oipfawf6yOBrzGRSFH67oQRmyqBH9N X-Received: by 2002:a17:902:6b0c:: with SMTP id o12-v6mr1855052plk.159.1528833287453; Tue, 12 Jun 2018 12:54:47 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1528833287; cv=none; d=google.com; s=arc-20160816; b=E5eeLz+vmwTxq0cx++zlNPm0TGgfSHewEApV4Ml6oIgD/lmDxegbSY0Re/r6J9uV/B jE8UU0FxgEftorKerf789EGj5DHBl32eJnzVF1ltTCdmDy2IrEcbcI9T+n17HxFxS686 4s07wP8hSYjZtgGpLW5Ncg3nGBgv5NNanh33XxSOGV8PF/UGS2KeyDPDV7gqZWYP5CWj L6sMyS1oBcKup5Q6bifB5+B9B+XN06T+vBrYekITgZxMxlCf/K7D9lrCBcmEyY+UKU0t q9rUewXMFfsiLzFShttiLrw51ieEo5l4kPTmAfQeH5sqmiO+kjMVWcS5Gx+Oo/qYsvb2 XSEg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:cc:to:subject :message-id:date:from:in-reply-to:references:mime-version :dkim-signature:arc-authentication-results; bh=8yHkdgVIpxTMHHgVUumack6HiMHlX/Yn6zXgyBVNaXY=; b=yLYJWlJkS6pI9QpSDyTNI/SsZMCTOIeuUxN5oAUn+mI1RvY0rbMI0wf0R0lc3iRGiA LqWfmOD6aY7xbFwAqEx19ywY+gU5DTtm1cbmnczylhrC0pG+xz12yN2DkIUaR3XIv099 hI+rMzXijt9rzvo1lcI6fdH0ubA5lUUvlgD28cqLEeSDmWnJicbuGieVoHdei8hgIaN0 bkDOYy3zqcdSk/b7g9x3f2n7QBpfwMASTjTqJ1oObBkVV5UdmNgkhnzzgdSpjScPv3HJ aTdS8SNLON3Lrbonca5qssYm+eHrJ5+e+6RLVescjEvZ+nyDi275y8Jgsw9cN2BhkiQ9 WBFg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b=XbiFiFYS; 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=chromium.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id b17-v6si655929pgw.440.2018.06.12.12.54.31; Tue, 12 Jun 2018 12:54:47 -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=@chromium.org header.s=google header.b=XbiFiFYS; 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=chromium.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754260AbeFLTyF (ORCPT + 99 others); Tue, 12 Jun 2018 15:54:05 -0400 Received: from mail-yb0-f194.google.com ([209.85.213.194]:47023 "EHLO mail-yb0-f194.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754110AbeFLTyE (ORCPT ); Tue, 12 Jun 2018 15:54:04 -0400 Received: by mail-yb0-f194.google.com with SMTP id p22-v6so62566yba.13 for ; Tue, 12 Jun 2018 12:54:03 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc:content-transfer-encoding; bh=8yHkdgVIpxTMHHgVUumack6HiMHlX/Yn6zXgyBVNaXY=; b=XbiFiFYSipFykKvlEwSHmpjAXjh8On7c3mE5VLQ340qeQ0LGjY3BUYa60IAKZTBuFE GG7/rrMC7tR8fWfkLbOIM0vd2TE9idHd14C9u8FkFbFT8c4xTYP4Az2sCWOY56AAhv6t SK7HICD1hM2VwtqkgR+f4w2Boo35ZKxTseNnI= 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=8yHkdgVIpxTMHHgVUumack6HiMHlX/Yn6zXgyBVNaXY=; b=NTxfChS32o3jrkm0QhbPkDU6YtcYnqcUGrsP247xsyJtYzKUb6XRzRyNWIfiIiUo2o 91qAZJ9STAH8xRQDAufpFYSfEJyToS45HU+nGVh4FkUYu2hUTOYU/FMwKw6+jFpF+PJ1 54dI8DzgM0WyfISo/h2IfTN5H6a3Itm5eGt8mjVx4pfh2Iw6mSl/aJp0+8ZmXoKTK9+W rhsgeWf5J6YSFxgbAZhM3SkRGUVDsbjHUnItOfVzQvFStT44YnPlXZMl0cUK4iNlbiXS 1R0QPOzsTEaKCd7CY33Hoz9EEtCSudcflhNTSoPlgF0zWg5R6O3FX7llZVU95xsvYAWX V9xw== X-Gm-Message-State: APt69E0Tg05a2II0yQtNwCMr/WK1D4vmRUWAMjqatHJEnGBx86Qpa+j2 cVkMRswUPVk3DOK0tC9fkEWUXXDcjWS4HsigXJMrrA== X-Received: by 2002:a25:acd0:: with SMTP id x16-v6mr910636ybd.400.1528833243036; Tue, 12 Jun 2018 12:54:03 -0700 (PDT) MIME-Version: 1.0 References: <20180608144834.3003465-1-arnd@arndb.de> <20180608181956.GA110395@decatoncale.mtv.corp.google.com> <20180611060819.GD5278@dell> In-Reply-To: <20180611060819.GD5278@dell> From: Gwendal Grignou Date: Tue, 12 Jun 2018 12:53:51 -0700 Message-ID: Subject: Re: [PATCH] mfd: cros_ec: remove unused __remove function To: Lee Jones Cc: Benson Leung , Arnd Bergmann , Gwendal Grignou , Enric Balletbo i Serra , Benson Leung , Andy Shevchenko , Linux Kernel Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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 u= sed [-Werror=3Dunused-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 bui= lt > > 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. Sorry for the confusion, Gwendal. > > -- > Lee Jones [=E6=9D=8E=E7=90=BC=E6=96=AF] > Linaro Services Technical Lead > Linaro.org =E2=94=82 Open source software for ARM SoCs > Follow Linaro: Facebook | Twitter | Blog