Received: by 2002:a05:6a10:9848:0:0:0:0 with SMTP id x8csp1203267pxf; Fri, 9 Apr 2021 02:38:47 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwM5+hyhwUMhvrlOO/hb1o66qk/+WI6kmb0ixY5f/Uq8zeKPx9cf4YSO7Bf8C5KLCLjSRmn X-Received: by 2002:a17:90b:3698:: with SMTP id mj24mr2573432pjb.150.1617961127208; Fri, 09 Apr 2021 02:38:47 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1617961127; cv=none; d=google.com; s=arc-20160816; b=ie8v+dyYDVGxxcYiHPMIYPGBsvZrYWMPIxuFMke6KS/P4Ejo20QwI0wiYdQq4BGXmN 5njn7qf93pdKt2UMBAeu1RYqFfoj3YrEvLQCBrGjYtUNQa0y2t9xQuZgodtHFZAWXotg PyQ9Y87BlmthaVYh9FlrjpKPPVAajkH6r2xhBg5Ct+zZr4MzarCbFC2CzL7qaw/NzRHI eTfq1HPBt0Z0nUw+E6apuWh+FcIxoiznMvoT7nCS4xZWl139VDczQFhthvp4gogKKtJq XVlxSnXKt0w+l4cS/8/Vmb7xUrx2Oxdgn/aF0SrlTnXQSnQScYBLV2hmxu3cs1YY91ID 1NWg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-transfer-encoding :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:ironport-sdr:ironport-sdr; bh=p3eI5eTJxw1bE1ONrt5rTqb/nJ3fV60Tz4Dcn49ZRaM=; b=NQxB13g7g95m3uH6uFYLsrBLdcLIapfTyfOQNjvrPqLxKyzKlEI+lYyfIChQVnTzVN YBf53MCHg+8PVv3eHGIR6/s2szVut8qDHAiTvvZAAqIjspq27pgntDeuXItCwPlEOUGi fBn0T8AInaaYwOWMbmGw8qVrLTAcBlSB544v25VjDwBIyv9yuIcNsxsSLjeHOaWMyBNf Rm6sYfiUc+cSu1WNTD+MVTVJ3oeQQ9z4v1qqZdgHgaF80Tpx0dskwfe37tb3yZMgYzDL 3vVi32+oz/y4fZNDB3ENMB5jK+xoWX8bP2KbzHrD4jnvFgKaCRamNwJ/T1rDjvUe6PvV 4fdg== ARC-Authentication-Results: i=1; mx.google.com; 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=intel.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id s7si2132848pfu.336.2021.04.09.02.38.34; Fri, 09 Apr 2021 02:38:47 -0700 (PDT) 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; 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232469AbhDIJiA (ORCPT + 99 others); Fri, 9 Apr 2021 05:38:00 -0400 Received: from mga07.intel.com ([134.134.136.100]:58561 "EHLO mga07.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230181AbhDIJh7 (ORCPT ); Fri, 9 Apr 2021 05:37:59 -0400 IronPort-SDR: 7f20YZ6AWrg78hPOov0/mlUHuD8sg/gZGgn49Ig83z5/9PihX8orfzTqfaIG4pIxtL1Ha3/otz 8EnvnQvR912A== X-IronPort-AV: E=McAfee;i="6000,8403,9948"; a="257709731" X-IronPort-AV: E=Sophos;i="5.82,209,1613462400"; d="scan'208";a="257709731" Received: from fmsmga001.fm.intel.com ([10.253.24.23]) by orsmga105.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 09 Apr 2021 02:37:46 -0700 IronPort-SDR: viJi2FMgAKpEzwXS3F+Zo1hnRC/2BUdswjDg0fN2069m6b+/XnJ8JDyuBCyeAH2SmpevwuqVej PmOXbay9Jm8Q== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.82,209,1613462400"; d="scan'208";a="520224671" Received: from kuha.fi.intel.com ([10.237.72.162]) by fmsmga001.fm.intel.com with SMTP; 09 Apr 2021 02:37:44 -0700 Received: by kuha.fi.intel.com (sSMTP sendmail emulation); Fri, 09 Apr 2021 12:37:43 +0300 Date: Fri, 9 Apr 2021 12:37:43 +0300 From: Heikki Krogerus To: Hans de Goede , Greg Kroah-Hartman Cc: Guenter Roeck , Zhen Lei , linux-usb , linux-kernel Subject: Re: [PATCH 1/1] usb: typec: tcpm: remove unused static variable 'tcpm_altmode_ops' Message-ID: References: <20210407091540.2815-1-thunder.leizhen@huawei.com> <8e3ae637-dc52-3285-2862-bee36e1dca14@redhat.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <8e3ae637-dc52-3285-2862-bee36e1dca14@redhat.com> Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, Apr 08, 2021 at 07:14:01PM +0200, Hans de Goede wrote: > Hi, > > On 4/8/21 3:55 PM, Guenter Roeck wrote: > > On 4/8/21 1:28 AM, Heikki Krogerus wrote: > >> On Wed, Apr 07, 2021 at 05:15:40PM +0800, Zhen Lei wrote: > >>> Fixes the following W=1 kernel build warning: > >>> > >>> drivers/usb/typec/tcpm/tcpm.c:2107:39: warning: ‘tcpm_altmode_ops’ defined but not used [-Wunused-const-variable=] > >>> > >>> The reference to the variable 'tcpm_altmode_ops' is deleted by the > >>> commit a079973f462a ("usb: typec: tcpm: Remove tcpc_config configuration > >>> mechanism"). > >>> > >>> By the way, the static functions referenced only by the variable > >>> 'tcpm_altmode_ops' are deleted accordingly. > >>> > >>> Reported-by: Hulk Robot > >>> Signed-off-by: Zhen Lei > >> > >> Oh, I thought this was already fixed. Should this go into the stable > >> trees as well? > >> > > > > I thought there was some code supposed to be coming which would make use of it, > > but my memory may defeat me. > > There is code coming which uses this; and this is necessary to make > DP altmode work on some devices. > > I have dropped the ball a bit on posting a v2 of my series using this. > > I'll prepare a v2 of my series, addressing Heikki's review comments > to my v1 right away. I'll post a v2 at the latest tomorrow. > > This is something which is on my TODO list anyways and this way we will > save some churn with these functions going away only to be re-introduced > again relatively soon after they were removed. Cool. Greg, I think we can skip this patch then. thanks, -- heikki