Received: by 2002:ac0:a5b6:0:0:0:0:0 with SMTP id m51-v6csp3679027imm; Sun, 10 Jun 2018 23:09:06 -0700 (PDT) X-Google-Smtp-Source: ADUXVKJYPHLjcLoO2GFbCDtiNEb2kfnGGuohHdgLE7hfPB+pgLaf5E/1WAwen/pt3gx9hu/cQcF0 X-Received: by 2002:a17:902:28e4:: with SMTP id f91-v6mr836694plb.146.1528697346484; Sun, 10 Jun 2018 23:09:06 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1528697346; cv=none; d=google.com; s=arc-20160816; b=rmolkCMavWNHxYrTCO2TN8vmJswQY3S07+WXlO2YJ+pYjjr0JIxJER8rawGds2w8Kj EsjTfoeFFSjtSJPf2LXqO8xJ4wjdEbIlvO37hJ7MH42TttsMTIzRhyg6wu6VZ0oObDVM uXLaAME4/o6ofI4G7KnSbEULXuLZxlVdLCrisUNGJYu6uECY48MnA3MTO7+w8Fidp6RU xaxxn9Md0jgNsyaFKkZXZUDdKxiDeP27t2wqCaezpyvyrulvjMhgfn/YWNuGD2ekbn+Y nuc8Xwr+X96zsn4e6C71j2t55Gtq4PRSedtxouN2f5GjCtbZlxS0VEW2mXOjZspqktg/ Uz2Q== 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=l6tEjtqAuhx4ZeeZk4L+PI6scv/gpK1JTNd7q/+7EmM=; b=u/pkmuLk/K9CH3eH4D/Tso+Z3Caoqw0Hsj8jS09dujf/9RWntjvB9JBdtH0wDAJmh2 Qjy5iv4ZQi/XDZl8lSTBVKfrXuW0NtRa809y4r9ncPZt0uHkRiNkXirCL/RwxoGiO805 naQevkFOW7HhXPyfQj79N4/C/RwS2PqSUUEqgiqKMw7pfmuxz2xvQiSSWeRuu2kgpGms a8XUagNu8NLJE5elXWyt1TtNpeHSUVQfVW+Lik1nsjfw7HtSSZucXTQVkfQRDZIVA7Tx FaoBcWJIXiMxjth/ObRzoeCgi/WFrSmOkHSCnIuHpajPO6BEO83INtRVAfgS/2lhcAh0 5zGg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=Y+hKhTa7; 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 y2-v6si29018877pgr.677.2018.06.10.23.08.52; Sun, 10 Jun 2018 23:09:06 -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=Y+hKhTa7; 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 S1754013AbeFKGIY (ORCPT + 99 others); Mon, 11 Jun 2018 02:08:24 -0400 Received: from mail-wr0-f193.google.com ([209.85.128.193]:33662 "EHLO mail-wr0-f193.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753899AbeFKGIW (ORCPT ); Mon, 11 Jun 2018 02:08:22 -0400 Received: by mail-wr0-f193.google.com with SMTP id k16-v6so18988413wro.0 for ; Sun, 10 Jun 2018 23:08:22 -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=l6tEjtqAuhx4ZeeZk4L+PI6scv/gpK1JTNd7q/+7EmM=; b=Y+hKhTa7zPN3NQwSXYyYJNLdvDOa829nSRT10EaOT3h9V5F81d2Qu8xWC9N4QiAN+V CRNzf5tkijkqBCCRAokb3RTwZx0RCtFP6XtT00HEL8gakRQ1dBy+fYXOfUmVhUQTKDaR MVWSFXm+EzderTRH/YMUr/F3qs2CV8rwa9QyQ= 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=l6tEjtqAuhx4ZeeZk4L+PI6scv/gpK1JTNd7q/+7EmM=; b=RexO5N2ZAlI6K4/fD2ESryVRLK7uhKEI7otFaxRKrKYwTsJqJHPr4Vnfk4OuMAOxW1 zHLLvzDtT+m5MDH6JIxP+4J9e6hYDDDLWmrtKACwCuinLnz0Z4VqZAiRAnTBzCc/p5NF lLh9prksR9Gb34SunkKV+bLyJG2HLUXsF5JwGT1INxluD0zMRJMkCGX2ypXiIjKjBGyR LgV0hD853F0VS/okB8shyumuuS8+dIpA1y4FcGsofiRYEVlv95KwgDd5XsVjmsjuSajc OJXEylK2CsEsdVN9pABkl+H3W+MKEp6uOvBhkJeVDmyXX6KweVddHOdcLvtYJKtkMF0x ivSQ== X-Gm-Message-State: APt69E3dKji1m7MFF1OxPvwNCJqBjY+jZ9ByVblFlRbppOy80PEOV6m8 GfqMmQkQJfzVkKHSxFAfBTS7jw== X-Received: by 2002:adf:c444:: with SMTP id a4-v6mr12444263wrg.20.1528697301797; Sun, 10 Jun 2018 23:08:21 -0700 (PDT) Received: from dell ([2.31.163.53]) by smtp.gmail.com with ESMTPSA id z5-v6sm22475465wrh.10.2018.06.10.23.08.20 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Sun, 10 Jun 2018 23:08:20 -0700 (PDT) Date: Mon, 11 Jun 2018 07:08:19 +0100 From: Lee Jones To: Benson Leung Cc: Arnd Bergmann , Gwendal Grignou , Enric Balletbo i Serra , Benson Leung , Andy Shevchenko , linux-kernel@vger.kernel.org Subject: Re: [PATCH] mfd: cros_ec: remove unused __remove function Message-ID: <20180611060819.GD5278@dell> References: <20180608144834.3003465-1-arnd@arndb.de> <20180608181956.GA110395@decatoncale.mtv.corp.google.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <20180608181956.GA110395@decatoncale.mtv.corp.google.com> 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 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! -- Lee Jones [李琼斯] Linaro Services Technical Lead Linaro.org │ Open source software for ARM SoCs Follow Linaro: Facebook | Twitter | Blog