Received: by 2002:a05:6a10:22f:0:0:0:0 with SMTP id 15csp1061940pxk; Fri, 25 Sep 2020 05:22:26 -0700 (PDT) X-Google-Smtp-Source: ABdhPJx2OCc22KXxJpVN9w6zhvSf74nZ0LLJCRoKOlu9fwvX1OvjZI9Lh8lAlVedBD/u8yMlrH2R X-Received: by 2002:a17:906:6411:: with SMTP id d17mr2354503ejm.93.1601036546230; Fri, 25 Sep 2020 05:22:26 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1601036546; cv=none; d=google.com; s=arc-20160816; b=aaJL1PmmGEs6iymPSKvoRb2tZI7MCRpkiE0OO2+ka2s707mcQ/3UZeKgmL7C/Wzkd0 QlTqEYRUSDHUCSeWfZZpamxyMSv+mjyZtzdcakOKZckt0Y8LOKUuV/DoG52Xz8ifcUSy YFE72/jrOvHCDYbX74eAj2hcRI+TfCTUg3YiZ/wjC+gq+fRdvIgUpQ9zvHeQnfPgyKDS 1JXM3+3m19bnwgIvZSvWl4EVDAHKY3XST6i4O6OiG2cIVUfy5lj2taJxdmX51MNKoehJ Gm5SGNkaxQUT0AgK/JUgMcFXWreImegK4mSpAlOlkEx2HDO7/lGq1XLTk/mdtHPZwHud dHsw== 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=7vCCpGyl0XbK0n/UCbopNrk9o7/MtpkGYG+UHB/6HQo=; b=S3J/A9MsjfAYub1vKICO93whvU/d5CNw05r6bMfCEDDZdVEJhd6QOd94n85ZuYXuXX nLdC4S2M8/0Qcdq2wGiMSBwe41gYQLuUqCiuMYUbIWt7criInRv8a685rq4S1KS6vl4l U8GTnZgdgR4qFsiuOJV68fMGbCoX5Yx+DHgi2kJm6cc1CLWUDy/tZSjFU2gu5J0Ucx2R MLXERefYjFZnGqznoRw5Sg0z0lb/4yiGj8zJlo6ZA6Kq9S9HOx8ZUQtK0RW4aN1rhVtt +6APzlI/GjtVE4hkTi2K8d7ysf1VybxLcoyZFJEdioNeQ9nVFzL0ORVdQM1J2x1MAbS6 TVFg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=PZVAxip7; 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=linuxfoundation.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id b5si1705827ejq.317.2020.09.25.05.22.03; Fri, 25 Sep 2020 05:22:26 -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=@kernel.org header.s=default header.b=PZVAxip7; 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=linuxfoundation.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728416AbgIYMVC (ORCPT + 99 others); Fri, 25 Sep 2020 08:21:02 -0400 Received: from mail.kernel.org ([198.145.29.99]:37980 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727749AbgIYMVC (ORCPT ); Fri, 25 Sep 2020 08:21:02 -0400 Received: from localhost (83-86-74-64.cable.dynamic.v4.ziggo.nl [83.86.74.64]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id C5E4B21D7A; Fri, 25 Sep 2020 12:21:00 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1601036461; bh=Yzqiewa+QRMYKlCEeSmwhKHrtfdSyQChiuf2bhrHi4o=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=PZVAxip72/uTvul8Cxjto55o2jFfta5IzLKgjCoMwICr1IgQsuJ0J2SgY3qtqcnuF 8hO7GNsoIUHEwqIqLgSqagE4LZQVoyaOVrcgFy/4+m1rpl+fd+6q5qbYtAZIlPrTDi OKJ/drVq2tYxBRVc33p2DcSxrh21b7f0POmIT8FI= Date: Fri, 25 Sep 2020 14:21:15 +0200 From: Greg KH To: Guenter Roeck Cc: Li Heng , heikki.krogerus@linux.intel.com, linux-usb@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH -next] usb: typec: Remove set but not used variable Message-ID: <20200925122115.GD2680110@kroah.com> References: <1600956767-10427-1-git-send-email-liheng40@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, Sep 24, 2020 at 07:33:59AM -0700, Guenter Roeck wrote: > On 9/24/20 7:12 AM, Li Heng wrote: > > Fixes gcc '-Wunused-but-set-variable' warning: > > > > drivers/usb/typec/tcpm/tcpm.c:1620:39: warning: > > ‘tcpm_altmode_ops’ defined but not used [-Wunused-const-variable=] > > > > Reported-by: Hulk Robot > > Signed-off-by: Li Heng > > I thought there was a patch series underway which started using it, > but maybe my memory defeats me. Either case, it doesn't make much sense > to remove the ops variable without removing the associated functions > as well. I agree, if this isn't needed, then the functions here should also be removed in the same patch. thanks, greg k-h