lkml.org 
[lkml]   [2019]   [Aug]   [8]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    Patch in this message
    /
    From
    Subject[PATCH net-next] taprio: remove unused variable 'entry_list_policy'
    Date
    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 <hulkci@huawei.com>
    Signed-off-by: YueHaibing <yuehaibing@huawei.com>
    ---
    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

    \
     
     \ /
      Last update: 2019-08-08 16:29    [W:2.359 / U:0.684 seconds]
    ©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site