Received: by 2002:a05:6a10:9848:0:0:0:0 with SMTP id x8csp267069pxf; Thu, 8 Apr 2021 02:38:16 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwwSLCooMcYuuq6YmqRxZPLO5V45CT/wgO6ZwyILJeCqHCs9xIc1VxfvcSxJMYgCMn2HFWH X-Received: by 2002:aa7:d688:: with SMTP id d8mr3412661edr.294.1617874696365; Thu, 08 Apr 2021 02:38:16 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1617874696; cv=none; d=google.com; s=arc-20160816; b=Dvs5/fz5SJIDZhwTQ0LTQuEC0Yz81HVogQCG4hZLtPLB3PEIOdSqJ3aFd+vZjzPfPs 26bDYJhIGes8uEeSY5eF+i7G4rC5boTMg+NUUCTHHU+XnV22877Nibh9RD8YpGTnGD0L jr1nBoHjdX+I1bKi6kgAANxMPrjlXmS3F/cc8OoDisIJcmAq8DccIbweWZMM9NoSB7rn WTI7b7x+SQRUo2jaLT8o8GEYzKFGlZqS07abGyoWFT61e0HlONczyIQpCbL0do75ChWw CIMFHzYqe53dKNlNJ+I/FOlEGtNqZBAaG59IB+4Ck4hLABv+yDmpiKrEitMzvUMY1+pY tgVQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:content-language :in-reply-to:mime-version:user-agent:date:message-id:from:references :cc:to:subject:dkim-signature; bh=wTM1I51JiZsJTUXUcb2nxEiCnAUVBmnDvU5v/ZRgEw4=; b=WP1a9c5L+eEYub8GtQoRFRc/dtu1KwJt3JJJk23B0VT6VX5d75dFGZfs89xhqecB4k 8DRlPdGkm6pnMZxVXOhFTgDo1p7r3zGiH5aDuklPqaop/ZqCLLqlQ77u0F8y2o1ubA39 G7jD0p/5p2agnbZWgkodQdGBRsTmo8R4cQ3gh8i8yegFkHa5dWd6T9qOJA4eEuA+mh1h Fu9RK1aGVEm3LgjiYCc25kCJ8YLNB79P5bsZCiUkbvzjtLjaINVbjlazWmcCB9kSY4wF Kcl9ImxpUNzXWoDWs85L40M9OnPRE/F7Waig7MjLWPbVK4sO+dOfyaOWz306KECYbpWV qEYw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=hbSz3s2j; 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=redhat.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id dc10si10169566ejb.558.2021.04.08.02.37.53; Thu, 08 Apr 2021 02:38:16 -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=@redhat.com header.s=mimecast20190719 header.b=hbSz3s2j; 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=redhat.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231134AbhDHJgx (ORCPT + 99 others); Thu, 8 Apr 2021 05:36:53 -0400 Received: from us-smtp-delivery-124.mimecast.com ([216.205.24.124]:23951 "EHLO us-smtp-delivery-124.mimecast.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229689AbhDHJgw (ORCPT ); Thu, 8 Apr 2021 05:36:52 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1617874601; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=wTM1I51JiZsJTUXUcb2nxEiCnAUVBmnDvU5v/ZRgEw4=; b=hbSz3s2jkpmtH5OTjDkvlF1hC4fDqEXE9N0Hj1PgnNAqEpbx/hqCqJCNxPNyXT4eDlTtBz t3fGVDxku82sqoEeUmzpLViESTHBt12CQv/vMrtYQoRCdyXLmDCQqGzncd0DCVIQLXUpCB RWBDlotizck1qrlGEKvZj2e96oH0LHo= Received: from mail-ej1-f69.google.com (mail-ej1-f69.google.com [209.85.218.69]) (Using TLS) by relay.mimecast.com with ESMTP id us-mta-523-oX2_GIsFMSyX49h-Np_VUA-1; Thu, 08 Apr 2021 05:36:40 -0400 X-MC-Unique: oX2_GIsFMSyX49h-Np_VUA-1 Received: by mail-ej1-f69.google.com with SMTP id k26so589345ejs.5 for ; Thu, 08 Apr 2021 02:36:40 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:to:cc:references:from:message-id:date :user-agent:mime-version:in-reply-to:content-language :content-transfer-encoding; bh=wTM1I51JiZsJTUXUcb2nxEiCnAUVBmnDvU5v/ZRgEw4=; b=RCVl6MII1iRHzOPC3o8r8td9/EdHC0mfGj+TMFGUYmnyfOWKG+HdzxQGzuzgJ5F1OI cXmhRU3g7OfG8pQ1Kan3LsDaNeQ58XCwvdp0VuXG+TU3pm+NFUEtmGzEYspHMAgcPzFI zpOigad3NzH2CuCEtTHo/kx8l5WVkQVk37Z/erwMjciXw/gGeYdm4Iii87vBJjyOQpuL WUb9PRIrMqal3T4PcI0D6INQuwAs3GWtaqV45CBxmQDjEx1vFCYNnpoGrwwLeC5lcIkl N0ekQ3WHYbxnSC6Mm40A/CnYndDje+smZdg+NkhMV5CPbEC+9JmiJ7ir9vZog2o0zkoQ PpNA== X-Gm-Message-State: AOAM532qHfTbPJw5TuPk5MR9/nwyapqdKj3Tsvhr2zpOIn4UvVzIC1ur B7bhyFTnHFhJY0CV9LGUpdwnI2RvQ3Wr+vyJ8BKRlwBfmFCvLYyiZ6eoPGtx/rH4gZBNPed1DAk Y1aYMBtjPt4D5Fmg2ms1dvzpAhVXl2CkVV9uxhA6E5cadvtEzV9PsVOAytq0mbzz3E+UjOwDaoM iA X-Received: by 2002:a05:6402:440d:: with SMTP id y13mr10173756eda.316.1617874599160; Thu, 08 Apr 2021 02:36:39 -0700 (PDT) X-Received: by 2002:a05:6402:440d:: with SMTP id y13mr10173727eda.316.1617874598948; Thu, 08 Apr 2021 02:36:38 -0700 (PDT) Received: from x1.localdomain (2001-1c00-0c1e-bf00-1054-9d19-e0f0-8214.cable.dynamic.v6.ziggo.nl. [2001:1c00:c1e:bf00:1054:9d19:e0f0:8214]) by smtp.gmail.com with ESMTPSA id zc4sm514279ejb.77.2021.04.08.02.36.38 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Thu, 08 Apr 2021 02:36:38 -0700 (PDT) Subject: Re: [PATCH 1/1] usb: typec: tcpm: remove unused static variable 'tcpm_altmode_ops' To: Heikki Krogerus Cc: Zhen Lei , Guenter Roeck , Greg Kroah-Hartman , linux-usb , linux-kernel References: <20210407091540.2815-1-thunder.leizhen@huawei.com> <7e2797f7-0ba7-0362-ae34-a1d4fb265cd7@redhat.com> From: Hans de Goede Message-ID: Date: Thu, 8 Apr 2021 11:36:38 +0200 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.7.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi, On 4/8/21 11:25 AM, Heikki Krogerus wrote: > 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. Yes I'm in favor of just leaving them in place too, sorry if that was not clear. Regards, Hans