Received: by 2002:a05:6a10:9848:0:0:0:0 with SMTP id x8csp234606pxf; Thu, 8 Apr 2021 01:39:41 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyWAHDa9kXXr2cI1GWpesTDgumEQQ7OfVR4QX95oQopyFH5jBysmm8Bj2WVFgpzhNUnbsgU X-Received: by 2002:a65:468d:: with SMTP id h13mr6845064pgr.373.1617871181755; Thu, 08 Apr 2021 01:39:41 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1617871181; cv=none; d=google.com; s=arc-20160816; b=BPlvAzlEVyHh4Qy2TYtgNACWW52bGyA4ZvRtFvQWzC9scHF90TwY8eTRBfrASHag07 prG0SdW1yfpFNYlYQwcgebrPtz6VYIh0W9DlasfU7EzIw4LBgf8+f41aD+4v/DuwwJlx Hg6Y3i/H8A8Mgd+pnapPgl1IP1J/SXgQ8Um4R7eibhAJwcum11oHUQoDVSZ56yRip5Z0 BYrrjotrn3kJ9W87NDInC6+uXRUGUXYKnqHBRWIXXecCyZTYvLdJep/NGg9azKlJZ0Uk K2R3lvLpiuHqjyQz7xr1mqY7grW08Gg/YVFX/9uYtdg1VZOYU7xIr7M76XREGG7iZchh A2oQ== 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:dkim-signature; bh=w3UeSkQMAThAFG3hI4ciecVWS7YELrxQP7j6v3fFH6I=; b=qerItrET3ojO6zkChSln0PLF2yv08cBX7sS61lMITPCdA2bW0ue/DtZn6Af6hRCfMe UQNwGDK45kEXYSszRbTfd4BxtlE81v8/8u19ciIJmRN8oPom2f+nn7kooCVoJUO3yuqE tAwagNLX+6OYXrq1ppoq14fqUjBWryciinu6DB+qJ1dWDzWGm7d8So1OkDVJVwdwBD42 B8wCW4VKGySzV3kZtcfe6dyY2h8CMhC40q9WtHoSsNozwP1vlYjy1GCjP3qP13OYmMja dWj8wJW6P7/6cZpnrpf9Pu4pq/J2CpVOtO1XWXKRrV/Saxb06+Yeh9zDsEaJL5C6mu+5 u27Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=goWJm9Rh; 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=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id w11si8625675pjq.13.2021.04.08.01.39.30; Thu, 08 Apr 2021 01:39:41 -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; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=goWJm9Rh; 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=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229849AbhDHIi3 (ORCPT + 99 others); Thu, 8 Apr 2021 04:38:29 -0400 Received: from mail.kernel.org ([198.145.29.99]:43504 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229539AbhDHIi2 (ORCPT ); Thu, 8 Apr 2021 04:38:28 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id 2325E61164; Thu, 8 Apr 2021 08:38:16 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1617871097; bh=EKla77SyEE6T1IP9Pxi4AGFbASgxAkPmq1KCXqQuZno=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=goWJm9RhgyKuNh03lo5q4cSfTABSVGna27lFbZWGokfszw7t0e5WeAEFWQK/imU8e v0wxWyEpSXKOlEGZUV1GfkPNkg30uBwtt3UTxEq5WDSsFtUNQcPzC1evE08JVnkI5O /hp0t2+PxYRrDBA8F+sS8crSgm6LQO3/YHELIcQE= Date: Thu, 8 Apr 2021 10:38:15 +0200 From: Greg Kroah-Hartman To: Heikki Krogerus 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 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. thanks, greg k-h