Re: [PATCH net-next] taprio: remove unused variable 'entry_list_policy'
From: David Miller
Date: Thu Aug 08 2019 - 14:38:16 EST
From: YueHaibing <yuehaibing@xxxxxxxxxx>
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 <hulkci@xxxxxxxxxx>
> Signed-off-by: YueHaibing <yuehaibing@xxxxxxxxxx>
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.
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.