]> git.baikalelectronics.ru Git - kernel.git/commit
nexthop: Fix type of event_type in call_nexthop_notifiers
authorNathan Chancellor <natechancellor@gmail.com>
Wed, 27 May 2020 08:00:20 +0000 (01:00 -0700)
committerDavid S. Miller <davem@davemloft.net>
Wed, 27 May 2020 18:22:37 +0000 (11:22 -0700)
commit945b4de53c67feaac2738614ac127b53c666c565
treef35fec2e5e5f468361783287a33587b53067c7dc
parent6cac459fbcafad1ecfb79bd5a354c0879c2df778
nexthop: Fix type of event_type in call_nexthop_notifiers

Clang warns:

net/ipv4/nexthop.c:841:30: warning: implicit conversion from enumeration
type 'enum nexthop_event_type' to different enumeration type 'enum
fib_event_type' [-Wenum-conversion]
        call_nexthop_notifiers(net, NEXTHOP_EVENT_DEL, nh);
        ~~~~~~~~~~~~~~~~~~~~~~      ^~~~~~~~~~~~~~~~~
1 warning generated.

Use the right type for event_type so that clang does not warn.

Fixes: 9be0a781d886 ("nexthop: add support for notifiers")
Link: https://github.com/ClangBuiltLinux/linux/issues/1038
Signed-off-by: Nathan Chancellor <natechancellor@gmail.com>
Reviewed-by: David Ahern <dsahern@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/ipv4/nexthop.c