devlink: drop the filter argument from devlinks_xa_find_get
commit 8861c093 upstream. Looks like devlinks_xa_find_get() was intended to get the mark from the @filter argument. It doesn't actually use @filter, passing DEVLINK_REGISTERED to xa_find_fn() directly. Walking marks other than registered is unlikely so drop @filter argument completely. Reviewed-by:Jiri Pirko <jiri@nvidia.com> Reviewed-by:
Jacob Keller <jacob.e.keller@intel.com> Signed-off-by:
Jakub Kicinski <kuba@kernel.org> [ Ido: Moved the changes from core.c and devl_internal.h to leftover.c ] Stable-dep-of: d7727819 ("devlink: bump the instance index directly when iterating") Signed-off-by:
Ido Schimmel <idosch@nvidia.com> Signed-off-by:
Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Loading
Please sign in to comment