Received: by 2002:ac0:a5b6:0:0:0:0:0 with SMTP id m51-v6csp1180051imm; Fri, 8 Jun 2018 11:21:01 -0700 (PDT) X-Google-Smtp-Source: ADUXVKK3Q+teeTFSshlDb1OOo2WzbFmtUPY4gWP4S3lDZ1Og8oMnoI/F1K5oVtaMArKMhFeCsWVd X-Received: by 2002:a65:6356:: with SMTP id p22-v6mr6242606pgv.20.1528482060964; Fri, 08 Jun 2018 11:21:00 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1528482060; cv=none; d=google.com; s=arc-20160816; b=v8OTzzSxyfhsQLlPcZrtRv92MvWjNQJmzl+cWv80OOdQ7V0ROvvnNl72ZGnXlPeTNj RO7xAOJ/RN59CD0al3dHRRt2KN4+e0pzx16lETxj37US829aFCxedu7oBWQn13IC6rEC XkSUidssg7PcuLXai6UlcM23NnmT0dcuKtrndLkBHbAlUjoDrUTACQC4dwU6AkxelrAu Jgtxn3u8E9xJ5nvBNnRAB65eF0KKxKkMrVVI42RNSjA/K7dDiPiBKkUKktF3rBgsW7mQ CjdVlpPgp7u2zAq95EGqAK7D3/ar9v1MtijQLeN79J63bnPhL/VvbRqtN1jeO4WcPmHm nQig== 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-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature:arc-authentication-results; bh=Vs5iRt1VrW2/DX4LXyPEofd3+5kf1B5DMCidrSCfh1E=; b=U9UEbVi4zBUsSBERDcX20Ep2yhrDu8AQzgWLGmQ4rcmmEFcoC2++zfx0oJnRp5T0pr l8eO8/8DP/JTmbbuFVYXydtWnLS5RWc1THlOJVUM8ByU/KKt7uMtNcJBy8kTWMeHj6zJ /Fdj7es4lRQV0wiH6LYbjhTWQbwg9zhq/0sNHdhjQedcuIz+Sgf10nrY2UxffFgzbTwG QJiU7ktQwWGmo4W8x+8KbDEfgsKCKkQnvTVM6nYmZenAtDGfUHhHFmtjspO7RY2E8USv /ykn3e7hbRU8uVcVp2aIuzMzPupZFXk3S25k4RESe8I30bxkcxlo1kFyaz9PVgQNn/cj Umew== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@google.com header.s=20161025 header.b=ujblgUQD; 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=REJECT sp=REJECT dis=NONE) header.from=google.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id a36-v6si35879731pla.207.2018.06.08.11.20.33; Fri, 08 Jun 2018 11:21:00 -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=@google.com header.s=20161025 header.b=ujblgUQD; 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=REJECT sp=REJECT dis=NONE) header.from=google.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752700AbeFHSUC (ORCPT + 99 others); Fri, 8 Jun 2018 14:20:02 -0400 Received: from mail-pg0-f68.google.com ([74.125.83.68]:34139 "EHLO mail-pg0-f68.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752253AbeFHSUA (ORCPT ); Fri, 8 Jun 2018 14:20:00 -0400 Received: by mail-pg0-f68.google.com with SMTP id q4-v6so5694276pgr.1 for ; Fri, 08 Jun 2018 11:20:00 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20161025; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to:user-agent; bh=Vs5iRt1VrW2/DX4LXyPEofd3+5kf1B5DMCidrSCfh1E=; b=ujblgUQDJC/Hsh8ovk/SRg5bLMP4IrzQg1S59zZFTeUBuVSi/VHeiunid/6YeYMouF iAyOuTd5sZ5alXSebfjjF4ZXS/jHKzQw6P/0sLcO/n/t+wp5cl8xyG1CP92IcYFGhBnZ OrylogGRGDjy1q9tH6XcDXrvK6P4YS4C8LyLuEBDGsHiVI1Lg3ywAevSkK7uJGxZ3pNi CC15lm5iwpxrWAoawbRhpKDmJ4dshVhFR/9VZu1GfIpUGfJG+IABiWqkMPf04BJKXaj6 T/QPg9K2hzlKHw0aFn7jxoXdyzO7cEzKlz7hIVMsz+q+THfPUeExoX/Sc4xjKHMlssTS ZpbQ== 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:in-reply-to:user-agent; bh=Vs5iRt1VrW2/DX4LXyPEofd3+5kf1B5DMCidrSCfh1E=; b=ue+p5qem6dk1cJxnLkkMB3e0Ob1ULHqJOcNowH2LVtAZLnpoKB9IxI7tZE3wtsRCOp QO7APZIweuhoTkVcgwCgr1MpuERbv65oWOucabt8m4LEkvujkNqZqEyvV2Y/PCmGd/ud QeA5TW3QN3aA4CJDsAjve3sWbkr8zYIcezxQu04wAlxhiJaddgn7DLH03bai6XxNYoi2 2+OSExeYpcwiRaI8J4UhoDAg8LZ06XHcKLwzmd7oBh9vixmYIeFlE5PYcKHLvP5/uBcF sYMEN4QiuxrsUGApxn17tpdWtCBnp35lXY6LTdT/XzvMyl+/Ub5RbuCeDwm0hyMyfH19 O3ZA== X-Gm-Message-State: APt69E0GSAL76mp9eRvTxyaWhJxL3qT1z3euA1VcOF0+9VRUsjdHSAFw 03MYYOLbsUYzOkwq56xDOa37Kg== X-Received: by 2002:a62:f407:: with SMTP id r7-v6mr7053562pff.47.1528481999673; Fri, 08 Jun 2018 11:19:59 -0700 (PDT) Received: from decatoncale.mtv.corp.google.com ([2620:0:1000:1501:e4e8:e3c6:19f1:ae51]) by smtp.gmail.com with ESMTPSA id r5-v6sm73943900pgp.81.2018.06.08.11.19.57 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Fri, 08 Jun 2018 11:19:58 -0700 (PDT) Date: Fri, 8 Jun 2018 11:19:56 -0700 From: Benson Leung To: Arnd Bergmann , Gwendal Grignou Cc: Lee Jones , Enric Balletbo i Serra , Benson Leung , Gwendal Grignou , Andy Shevchenko , linux-kernel@vger.kernel.org Subject: Re: [PATCH] mfd: cros_ec: remove unused __remove function Message-ID: <20180608181956.GA110395@decatoncale.mtv.corp.google.com> References: <20180608144834.3003465-1-arnd@arndb.de> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="VS++wcV0S1rZb1Fb" Content-Disposition: inline In-Reply-To: <20180608144834.3003465-1-arnd@arndb.de> User-Agent: Mutt/1.9.2 (2017-12-15) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org --VS++wcV0S1rZb1Fb Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable 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: >=20 > drivers/mfd/cros_ec_dev.c:265:13: error: '__remove' defined but not used = [-Werror=3Dunused-function] >=20 > 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? Benson --=20 Benson Leung Staff Software Engineer Chrome OS Kernel Google Inc. bleung@google.com Chromium OS Project bleung@chromium.org --VS++wcV0S1rZb1Fb Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQIzBAABCgAdFiEE6gYDF28Li+nEiKLaHwn1ewov5lgFAlsayMwACgkQHwn1ewov 5lhSoQ/+P+/xLWQgcMugSg+mU0KLOBdsgfYbfVVA3ya03Ymj0bfBQT4JxTbN2a82 WG14YCsDSiU+3KPDyGo9OAWTEZ4mkqaJtnxRtRjpVz/HgYnD8QfuEm0PpfVoJglJ 3yE7ClFt/g8DrxlMY5i0Lpl4/ZZVa1D8hkTcvUvdeTENItI17OnH27CWn2mVN3BU F6XASvbTipNWGjebP4W9lYEOyU0vn9G0Jt+lUTXGJLPZfdArXR+0O1ziO0wN1JD7 FJDi6Fd9BZx1bIy9qqpK9kY1tSp57ZGzCCWFDDSZPhfXvG4QX0iWny6AhYbkS2SN ztI3i4LiYYnKJOWEZWKHO1wO4+v2omFURzHcyKzi/p48mF46ikxLhLRl/K4ps731 GtMSM85apguL2WCygovgCI55Dlq50I2t3ma1lDESR6bCpSARhkvMvNnEu+djh6bb 4HNu1fr4bGfqSVT/UHwEQmvgns9oGB6CyRz8NhHFGRf/y2Bje7CPQPotepBqXAh/ 1UG+ENgVMoLOfA4VeF/ZTLxiBcGWthlaG5lpeKi8mH7qqWBowg+A5BOnSbCd0a6Y XtrFISZxATK28PL7dKGt+0n0xkj94LyByuZL6dI0C+6cCqYT+MolRfXu4WWj3Qt3 eCYbcp8mi3zI1VHtvvhIhiJ5/aWaWCbV4+bd4bxBX6FohLngwuk= =ft7/ -----END PGP SIGNATURE----- --VS++wcV0S1rZb1Fb--