]> git.proxmox.com Git - mirror_ubuntu-kernels.git/commit
devlink: put couple of WARN_ONs in devlink_param_driverinit_value_get()
authorJiri Pirko <jiri@nvidia.com>
Thu, 26 Jan 2023 07:58:34 +0000 (08:58 +0100)
committerDavid S. Miller <davem@davemloft.net>
Fri, 27 Jan 2023 12:32:02 +0000 (12:32 +0000)
commit3f716a620e1314aa9abe69052bdc9df719372bd4
treef85435a8674af2941a752addbe9ce7ffc45e7af0
parent85fe0b324c830ac671b811efc70ea80c3dcb2390
devlink: put couple of WARN_ONs in devlink_param_driverinit_value_get()

Put couple of WARN_ONs in devlink_param_driverinit_value_get() function
to clearly indicate, that it is a driver bug if used without reload
support or for non-driverinit param.

Signed-off-by: Jiri Pirko <jiri@nvidia.com>
Reviewed-by: Jakub Kicinski <kuba@kernel.org>
Reviewed-by: Jacob Keller <jacob.e.keller@intel.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/devlink/leftover.c