Received: by 2002:a05:6a10:9848:0:0:0:0 with SMTP id x8csp261655pxf; Thu, 8 Apr 2021 02:29:09 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyTpdw8tUCMQ68X8UFBODgQ41i1qttEz1QEIqkIX43AbJ1xNc3kqQRVjvSN3vgxOIFPk5FC X-Received: by 2002:a17:906:1c89:: with SMTP id g9mr9034506ejh.241.1617874148972; Thu, 08 Apr 2021 02:29:08 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1617874148; cv=none; d=google.com; s=arc-20160816; b=yEEXLohYD5HtlSmUQSMYXJ8/mvXOyHw3rcBqZKpCtITRsW6Eq5dEX2nF2TNMnuVK4C XSlucEj83iYrNSdvS8m6hk274sa5YKvScICrjebxcyOukZecrG0JmkknpSjzfawPbIFb qAXTydL+UwdxA7umsQGt42cVKGk5i4iRQYmQBvzq4wfGnVyS0Wly8+vxh1L6ZJY3uVUS qQ6bHfLBwk1TI7tcuDVCGmcH6BC09VXWxOdgcmuB58ESlv2SFXZdFLT3+Lzwhq/wPkQ9 wy63Rme7oi1rF42ZhJ59WkYtbJQ1ab8CPPsULBoEstHP9H3HMXh9bqHpdF6WZRJ5tYve Cb6A== 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=navW518BeJ5n+vN6wiVuACsLgwWJ4txVj56NsKV6cX8=; b=PtI7jHpRVlc0brFAqYqU41Fs8L6JTBjMPvnCfjC7FaG3jOsHw2Qpo+MpBhIU5fQsS4 yaI2XtMMqfoRBPoFvlhVSa7a7wIgE04gmMq943G+fKO3WdGYjYJGk2EA3hGi3DBZpi+a 6rTpye5+uc93OXsS6u5+kBfwtNDoYyp1cXeq8epI7sidGVjjaKURxqetoJxH/Csw9R2I JB6RlG6T9LknhpI6up0/U8MJUqcyTfdE9tMU4svt4wbyFgsCgJ9t6OlQB8ccCWrVmWtR jsuI03axaOT50WFEvuGuHBC5klRw3dqtrbibD4uz/ConnBXCM1kbw4AMIYhtYBbwYRXM SzNQ== 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 e16si21864924edz.7.2021.04.08.02.28.46; Thu, 08 Apr 2021 02:29:08 -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 S230412AbhDHJ0C (ORCPT + 99 others); Thu, 8 Apr 2021 05:26:02 -0400 Received: from mga05.intel.com ([192.55.52.43]:59134 "EHLO mga05.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229618AbhDHJ0B (ORCPT ); Thu, 8 Apr 2021 05:26:01 -0400 IronPort-SDR: 2FmBwaNonASUGSPlk5c1LrldDNcbqEVebWZyR/VdIg8PgEBcaQr0zblgHqOztxrtTvKqyGMjlR P3ip/ekOUd6A== X-IronPort-AV: E=McAfee;i="6000,8403,9947"; a="278769636" X-IronPort-AV: E=Sophos;i="5.82,205,1613462400"; d="scan'208";a="278769636" Received: from fmsmga001.fm.intel.com ([10.253.24.23]) by fmsmga105.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 08 Apr 2021 02:25:50 -0700 IronPort-SDR: tDJZXqF5IHHMgCoJtA0Qj7X1TGJqBh7/6uaeZNO//dZgoWRkOHvuYtWkeITznzI/TyQaKeWlhO Ub8stqs13zAQ== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.82,205,1613462400"; d="scan'208";a="519781454" Received: from kuha.fi.intel.com ([10.237.72.162]) by fmsmga001.fm.intel.com with SMTP; 08 Apr 2021 02:25:48 -0700 Received: by kuha.fi.intel.com (sSMTP sendmail emulation); Thu, 08 Apr 2021 12:25:47 +0300 Date: Thu, 8 Apr 2021 12:25:47 +0300 From: Heikki Krogerus To: Hans de Goede Cc: Zhen Lei , Guenter Roeck , Greg Kroah-Hartman , 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> <7e2797f7-0ba7-0362-ae34-a1d4fb265cd7@redhat.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <7e2797f7-0ba7-0362-ae34-a1d4fb265cd7@redhat.com> Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, Apr 08, 2021 at 11:10:38AM +0200, Hans de Goede wrote: > Hi, > > On 4/7/21 11:15 AM, 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 > > I have a patch pending: > > https://www.spinics.net/lists/linux-usb/msg197684.html > > Which actually uses this. I really need to (and plan to) brush the dust of > this one soon and submit a new version. > > As such I would prefer for these ops to not get removed. But I guess I > can always include a patch in my series reverting the removal... Well, can we then just leave the ops there? If we're going to re-introduce them back soon in any case, then why drop them in the first place. thanks, -- heikki