Received: by 2002:a25:b794:0:0:0:0:0 with SMTP id n20csp6942248ybh; Thu, 8 Aug 2019 08:00:31 -0700 (PDT) X-Google-Smtp-Source: APXvYqxJZmpAoao8vObOcYVTGc1JLVq9n5fMD3Atcz0oOL06J2eEgvOw8wPoYITaftcIATio1yTE X-Received: by 2002:a17:90a:dac3:: with SMTP id g3mr4490428pjx.45.1565276431152; Thu, 08 Aug 2019 08:00:31 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1565276431; cv=none; d=google.com; s=arc-20160816; b=xuJqRepJqgfh/Jwab47CQ4PCHgfb/qCK1j75lP9tZjuuCrUKzXHblIrLeInOP1kkad xImU+LJ4dK/F58aHHloW+oyEIFC2Fm4Z3CocwwT/O012MYKBVjF+OvTQh4KqI9XbZGIn Efvj9i8G//s/1ZagxMtUV/rZlaCl0YQqpdfA3MDallaZ/bm5KGpcIhj4JFWAdKjWXiPO 3gJwGNKw9ft789nahQI5BL/48nogcn2xmfI5rOi7NKonXyeqy/K0uPy8skshVZkbBuOl AEpElr2tJavfGEek99bnzRDaY/b3PJ3/TVEoPnq5VkBtWKcspJgnx6x454suOiqMNI/F e6+Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:message-id:date:subject:cc :to:from; bh=k3VjgqTVFuwuEusEHvCP3i7FhZfdlwzZfDWsbjVrzCU=; b=Br2Q7tI2u9dXFol44zlHIUmwP2Ec5uyuB21DmVenYfPSNDXN4uQU29/UBKBHAiek9K J5wVf28i0SvbI2miwp4hNKWixBpgIZEFVlAsbIm0eKd8VCKGeb9Q+p7KwMZQ0ZH71EmQ TWwhWVIoPj3urquKQ/Pw/Hv5EesNw/gPqLQQjUCGXIoNW6WAiQcF7qNk1r8KDbbe/5fm x8q3jTFHNL+pkM0EsNSxAmvCI2XkkjqZEfpxs4ePlzOCt8d1SJj/9rlEsCrAmVEIxNNm 09pPx5d+WoJftZeV7oMrV9ZdKTCFJJPIxmg0cZvTNPztRW3bwnatfh6gVL+WHEY4f+5L DyOQ== 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 t184si51803143pgd.211.2019.08.08.08.00.14; Thu, 08 Aug 2019 08:00:31 -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 S1732802AbfHHO1B (ORCPT + 99 others); Thu, 8 Aug 2019 10:27:01 -0400 Received: from szxga07-in.huawei.com ([45.249.212.35]:57880 "EHLO huawei.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1728327AbfHHO1A (ORCPT ); Thu, 8 Aug 2019 10:27:00 -0400 Received: from DGGEMS409-HUB.china.huawei.com (unknown [172.30.72.59]) by Forcepoint Email with ESMTP id D5730FB2B49F9E3BD75A; Thu, 8 Aug 2019 22:26:56 +0800 (CST) Received: from localhost (10.133.213.239) by DGGEMS409-HUB.china.huawei.com (10.3.19.209) with Microsoft SMTP Server id 14.3.439.0; Thu, 8 Aug 2019 22:26:46 +0800 From: YueHaibing To: , , , , CC: , , YueHaibing Subject: [PATCH net-next] taprio: remove unused variable 'entry_list_policy' Date: Thu, 8 Aug 2019 22:26:23 +0800 Message-ID: <20190808142623.69188-1-yuehaibing@huawei.com> X-Mailer: git-send-email 2.10.2.windows.1 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=] It is not used since commit a3d43c0d56f1 ("taprio: Add support adding an admin schedule") Reported-by: Hulk Robot Signed-off-by: YueHaibing --- 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