Received: by 2002:a25:b794:0:0:0:0:0 with SMTP id n20csp7554967ybh; Thu, 8 Aug 2019 18:34:02 -0700 (PDT) X-Google-Smtp-Source: APXvYqwYelFPuvEIydxuA32nWsLkT23fksm4ikyTyvXed2SrmG95/fo5UVf2vYnCjPacJx77xP9e X-Received: by 2002:aa7:9aaf:: with SMTP id x15mr19045393pfi.214.1565314441958; Thu, 08 Aug 2019 18:34:01 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1565314441; cv=none; d=google.com; s=arc-20160816; b=a93zk/jVIq+7TMrMe4Kaa6jOOy57C6v0GC23koYSebjvMsHhXrVzW7ivCX7I/utJE3 mtxesewmiHkavqtnXHevLoz9Lp6rF6YzNbjb8oxRPqmjY7cth5bdUUCTioyfyUfx8usH 2VHPbx3DqBG74Q3pbpnGXRUWoO4m7NA7miwWW7TSWBw17h+zCUxOTGOi8HT7GdcLXATn 0pcONqA1WB/PE9P86TDZMWi5sBXqKfo/+4bmPytDgCH1T672jkSINSwqdTIvBYD6DF8E Gar5vv+qh6saXdMFesfM9pKAwFignrXlr17JofLTPDHLrRT3QNFWVDp1NKb8dHZprjJt L1tw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:in-reply-to :mime-version:user-agent:date:message-id:from:cc:references:to :subject; bh=moWscDQpxR1cb0dSZ0Pv+dnCDWh6vKGrgcPv5z+XAs8=; b=oOoH20Ka8zlJ0V6KCnwwtQBOD1XypK6sAWOnycGB3EtvYDZ52ulus0bUblk7nuyQJw 6xI907al6mK+8s9ujOm3u6Y8e1j8W4kwDg1gaeOLs/lUkyemvTh9TrMwQSwlIY+f30EY QAADpJ+4XamCxXYrMEpjSfFD6aciIHlU+IhVOSrkXYBKmQgVGr9uIPMwW5wrABXTY4Z8 iNY22S86DAvwA4ivEhE237VIyVtb0yO17+7sf/F74XlZ79cDk/3zgS4keqw/dn0tJjJ4 A5iQjRaSBraoI+v0nALRw44takAlVdnmJCnb7cO/IG3doKFje2H3S1wDTiyTou1cAAgb BlCg== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id c5si54783893pfr.25.2019.08.08.18.33.45; Thu, 08 Aug 2019 18:34:01 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2405337AbfHIBdK (ORCPT + 99 others); Thu, 8 Aug 2019 21:33:10 -0400 Received: from szxga07-in.huawei.com ([45.249.212.35]:46648 "EHLO huawei.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1732796AbfHIBdK (ORCPT ); Thu, 8 Aug 2019 21:33:10 -0400 Received: from DGGEMS407-HUB.china.huawei.com (unknown [172.30.72.59]) by Forcepoint Email with ESMTP id CEBA2A532C3AE40E2024; Fri, 9 Aug 2019 09:33:07 +0800 (CST) Received: from [127.0.0.1] (10.133.213.239) by DGGEMS407-HUB.china.huawei.com (10.3.19.207) with Microsoft SMTP Server id 14.3.439.0; Fri, 9 Aug 2019 09:33:03 +0800 Subject: Re: [PATCH net-next] taprio: remove unused variable 'entry_list_policy' To: Vinicius Costa Gomes , David Miller References: <20190808142623.69188-1-yuehaibing@huawei.com> <20190808.113813.478689798535715440.davem@davemloft.net> <87mugjtmn7.fsf@intel.com> CC: , , , , From: Yuehaibing Message-ID: <96b67595-5b58-e049-64bb-cd3cc67659ac@huawei.com> Date: Fri, 9 Aug 2019 09:33:01 +0800 User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:45.0) Gecko/20100101 Thunderbird/45.2.0 MIME-Version: 1.0 In-Reply-To: <87mugjtmn7.fsf@intel.com> Content-Type: text/plain; charset="windows-1252" Content-Transfer-Encoding: 7bit X-Originating-IP: [10.133.213.239] X-CFilter-Loop: Reflected Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 2019/8/9 4:42, Vinicius Costa Gomes wrote: > Hi, > > David Miller writes: > >> From: YueHaibing >> Date: Thu, 8 Aug 2019 22:26:23 +0800 >> >>> net/sched/sch_taprio.c:680:32: warning: >>> entry_list_policy defined but not used [-Wunused-const-variable=] >>> >>> It is not used since commit a3d43c0d56f1 ("taprio: Add >>> support adding an admin schedule") >>> >>> Reported-by: Hulk Robot >>> Signed-off-by: YueHaibing >> >> This is probably unintentional and a bug, we should be using that >> policy value to validate that the sched list is indeed a nested >> attribute. > > Removing this policy should be fine. > > One of the points of commit (as explained in the commit message) > a3d43c0d56f1 ("taprio: Add support adding an admin schedule") is that it > removes support (it now returns "not supported") for schedules using the > TCA_TAPRIO_ATTR_SCHED_SINGLE_ENTRY attribute (which were never used), > the parsing of those types of schedules was the only user of this > policy. > >> >> I'm not applying this without at least a better and clear commit >> message explaining why we shouldn't be using this policy any more. > > YueHaibing may use the text above in the commit message of a new spin of > this patch if you think it's clear enough. Thanks, will send v2 with your explanation. > > > Cheers, > -- > Vinicius > > . >