Received: by 2002:a05:6a10:9848:0:0:0:0 with SMTP id x8csp237453pxf; Thu, 8 Apr 2021 01:45:58 -0700 (PDT) X-Google-Smtp-Source: ABdhPJywQ2+aZX7T4gBmOWyFM0wtIvcMwdFx5vfT2G/Thlt34sIAIxEIE0GYmqD1evPpLU2/8Qi6 X-Received: by 2002:a63:b00b:: with SMTP id h11mr6942691pgf.204.1617871557844; Thu, 08 Apr 2021 01:45:57 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1617871557; cv=none; d=google.com; s=arc-20160816; b=MNM58cg8398dh9LZS+UoIwoCn6r9JKD9P5fQQPDmgZhGuto4KMo3SdytRm5VvA3Fp9 g+jlnKmMywV/A+qKAe67PSzzg9UQPhFf5TAOnT80VViuItfie7S3Wb72Kz+57fIdbR5/ H8MbIqypU2GC2qIm3XN1LwE2w0HlrPCTBifmb+J+l4fapNKkzIASZzvWC48qhEKbbqrr vehu7iP63MiCrue9/89kedlevlbeZQH/9e5Yjmas2Rm7EYyFKviofsS+RJGf4s2Wdug6 ftqYo4rMr/9vZJxFSzUS8GDfYtKzBXRtdpjSaVT4IQam3BRSgpJUGdB1jgzrA0P4n92i XOWQ== 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=DCGoQ/PrGmEStr33hpgpJXDWUMGvfMOvAOtX400jQXY=; b=oOJscfDyRSKWaY/1OoOyAVasxHRVM+FzEqxsIHCEZN8b3PQ6LVm9ry+KXsZgSCJdr6 bnelizm5wuZC1A3PMJreiLAy+I3avS2vCR5E1JNBtTItFsLJb21qvulFCd/A+LfEZ0FL pJoRDKuP+B71DrS2t5MFMRm8DISEJrIwxhyHaNaFHO5PRQ159EBd9X5cqoriTpVRXhj0 lupIlmGywEuogZLENbyE/zTd9N52+Mn55PIQp3p51UR+e8sMkf00A7LejEZT+2/D9Xr6 7VP0ZEg1ZOaoxjWswamd3GKs8V935u9WX41tBG9G02f2FbXECCVKRyCN5ZCuUd+sguyv IP3g== 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 mr16si2321633pjb.140.2021.04.08.01.45.45; Thu, 08 Apr 2021 01:45:57 -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 S229895AbhDHIoh (ORCPT + 99 others); Thu, 8 Apr 2021 04:44:37 -0400 Received: from mga11.intel.com ([192.55.52.93]:60631 "EHLO mga11.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229805AbhDHIog (ORCPT ); Thu, 8 Apr 2021 04:44:36 -0400 IronPort-SDR: RLfh5bQt9xTmoriDiyddDW5YsEEEYqAxQI+Ui0CykapmmqnZISlyl2iK0JDGJeyO2pqpAW6RQ5 CFQsC1tqSWPw== X-IronPort-AV: E=McAfee;i="6000,8403,9947"; a="190287212" X-IronPort-AV: E=Sophos;i="5.82,205,1613462400"; d="scan'208";a="190287212" Received: from fmsmga001.fm.intel.com ([10.253.24.23]) by fmsmga102.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 08 Apr 2021 01:44:26 -0700 IronPort-SDR: vpbYYD3lKX7CgebOOV39Ht9OtFP8ZLa2kIO3zOr5n3Wd669bETZ23V5F4ETxQgUiDvTW1WaUl0 aDlnbgxEwVHg== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.82,205,1613462400"; d="scan'208";a="519771993" Received: from kuha.fi.intel.com ([10.237.72.162]) by fmsmga001.fm.intel.com with SMTP; 08 Apr 2021 01:44:23 -0700 Received: by kuha.fi.intel.com (sSMTP sendmail emulation); Thu, 08 Apr 2021 11:44:22 +0300 Date: Thu, 8 Apr 2021 11:44:22 +0300 From: Heikki Krogerus To: Greg Kroah-Hartman Cc: Zhen Lei , Guenter Roeck , linux-usb , linux-kernel , Hans de Goede 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> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, Apr 08, 2021 at 10:38:15AM +0200, Greg Kroah-Hartman wrote: > On Thu, Apr 08, 2021 at 11:28:09AM +0300, 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? > > We do not build kernels by default with "W=1" yet, so it's not needed > in stable kernels. Okay, got it. thanks, -- heikki