Re: [PATCH net v2] net: sched: cls_flower: validate nested enc_opts_policy to avoid warning

2018-11-10 Thread David Miller
From: Jakub Kicinski Date: Fri, 9 Nov 2018 21:06:26 -0800 > TCA_FLOWER_KEY_ENC_OPTS and TCA_FLOWER_KEY_ENC_OPTS_MASK can only > currently contain further nested attributes, which are parsed by > hand, so the policy is never actually used resulting in a W=1 > build warning: > > net/sched/cls_flo

Re: [PATCH net v2] net: sched: cls_flower: validate nested enc_opts_policy to avoid warning

2018-11-09 Thread Jiri Pirko
Sat, Nov 10, 2018 at 06:06:26AM CET, jakub.kicin...@netronome.com wrote: >TCA_FLOWER_KEY_ENC_OPTS and TCA_FLOWER_KEY_ENC_OPTS_MASK can only >currently contain further nested attributes, which are parsed by >hand, so the policy is never actually used resulting in a W=1 >build warning: > >net/sched/c

[PATCH net v2] net: sched: cls_flower: validate nested enc_opts_policy to avoid warning

2018-11-09 Thread Jakub Kicinski
TCA_FLOWER_KEY_ENC_OPTS and TCA_FLOWER_KEY_ENC_OPTS_MASK can only currently contain further nested attributes, which are parsed by hand, so the policy is never actually used resulting in a W=1 build warning: net/sched/cls_flower.c:492:1: warning: ‘enc_opts_policy’ defined but not used [-Wunused-c