Received: by 2002:a25:b794:0:0:0:0:0 with SMTP id n20csp7568759ybh; Thu, 8 Aug 2019 18:52:17 -0700 (PDT) X-Google-Smtp-Source: APXvYqw+4uXNhia0DwIommYITT54v8+TNCKgqpBdLpThuDGNFT4NEXbq1Q6FH6P8XhrjPyG6HZ2a X-Received: by 2002:a62:7695:: with SMTP id r143mr19243309pfc.173.1565315536955; Thu, 08 Aug 2019 18:52:16 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1565315536; cv=none; d=google.com; s=arc-20160816; b=mNFlzr6TOZtvakf+iCpnh4QpKCYbh1NjtdiRQ8zbhKn+VSRfQdxsZ+/y3y/fBaTSyj UCW7TnbCU0bwysbHS7Jf1cvR6/wkEDRKnyVDyWhJjFyEg2jEEOjqyWrjhIPzOx55mwqz Bupi7wLoxtCA5oVbQMSfVTtlvQ8koTQwiWGTtq2rAGrTASjvsisRh6bevQ034OQOGTnh gM6XXq2KSqlKyPpYwbb513AAHGIZsF4lR6HtBFEUyw0X5WelwPllopRKxwp84dNpL5Nh pWEbGJ4vFss05dy6PARjXRgldTKYEOXrkKIxGaiIUudDirpoY1nlQdV8G4xLadJPSj39 7kKA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from; bh=o74jT+0xqlcCIJdWniSxN0GEZXSMMLC20rLEdfPbViY=; b=XBc1ACIsKGfJkEcQHu3M36wfzsv8QbukUlVpmPpRtOMPYUxKqpMuittV1CygnAwnm9 QE6fGdiKkA89sJyCI2oWax2pBJ3vuFZ3V+z1wkpRXydrvsl9COYC42P5RHW8G9Kn/ds7 jIp8oxwN0SkCzixP1UvzFo4mYimU6BStlueazcOqcx1MDSfq5QQzKkzpfVtnvfG2UYxQ Kp+dzEdYYBUS0t2YOP6dSeTe3PqwTStDnyr9IasbCO++L3MGVTNSRGsnNc7DzxfVe5NR mtxwpnfpYsbbIQ/knWhxI1ucMMsNduB4Wh3zavbUbuxOiIVdO+k12sp/bmXGLhecahkB HQww== 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 h17si410670pjq.16.2019.08.08.18.51.49; Thu, 08 Aug 2019 18:52:16 -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 S2405194AbfHIBuZ (ORCPT + 99 others); Thu, 8 Aug 2019 21:50:25 -0400 Received: from szxga04-in.huawei.com ([45.249.212.190]:4204 "EHLO huawei.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1729419AbfHIBuZ (ORCPT ); Thu, 8 Aug 2019 21:50:25 -0400 Received: from DGGEMS407-HUB.china.huawei.com (unknown [172.30.72.60]) by Forcepoint Email with ESMTP id 9BB5EBBDB859B5B143DA; Fri, 9 Aug 2019 09:50:22 +0800 (CST) Received: from localhost (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:50:14 +0800 From: YueHaibing To: , , , , CC: , , YueHaibing Subject: [PATCH v2 net-next] taprio: remove unused variable 'entry_list_policy' Date: Fri, 9 Aug 2019 09:49:23 +0800 Message-ID: <20190809014923.69328-1-yuehaibing@huawei.com> X-Mailer: git-send-email 2.10.2.windows.1 In-Reply-To: <20190808142623.69188-1-yuehaibing@huawei.com> References: <20190808142623.69188-1-yuehaibing@huawei.com> MIME-Version: 1.0 Content-Type: text/plain 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 net/sched/sch_taprio.c:680:32: warning: entry_list_policy defined but not used [-Wunused-const-variable=] One of the points of commit 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. So removing this policy should be fine. Reported-by: Hulk Robot Suggested-by: Vinicius Costa Gomes Signed-off-by: YueHaibing --- v2: respin commit log using Vinicius's explanation. --- net/sched/sch_taprio.c | 4 ---- 1 file changed, 4 deletions(-) diff --git a/net/sched/sch_taprio.c b/net/sched/sch_taprio.c index c39db50..046fd2c 100644 --- a/net/sched/sch_taprio.c +++ b/net/sched/sch_taprio.c @@ -677,10 +677,6 @@ static const struct nla_policy entry_policy[TCA_TAPRIO_SCHED_ENTRY_MAX + 1] = { [TCA_TAPRIO_SCHED_ENTRY_INTERVAL] = { .type = NLA_U32 }, }; -static const struct nla_policy entry_list_policy[TCA_TAPRIO_SCHED_MAX + 1] = { - [TCA_TAPRIO_SCHED_ENTRY] = { .type = NLA_NESTED }, -}; - static const struct nla_policy taprio_policy[TCA_TAPRIO_ATTR_MAX + 1] = { [TCA_TAPRIO_ATTR_PRIOMAP] = { .len = sizeof(struct tc_mqprio_qopt) -- 2.7.4