devlink: stop using NL_SET_ERR_MSG_MOD
authorJacob Keller <jacob.e.keller@intel.com>
Thu, 9 Feb 2023 22:20:45 +0000 (14:20 -0800)
committerDavid S. Miller <davem@davemloft.net>
Mon, 13 Feb 2023 09:37:29 +0000 (09:37 +0000)
commit6d86bb0a5cb82bd459b017f180bdc47bec561b2d
treecf9b661fda04e864e927705db4611d4dda305298
parent68762148d1b011d47bc2ceed7321739b5aea1e63
devlink: stop using NL_SET_ERR_MSG_MOD

NL_SET_ERR_MSG_MOD inserts the KBUILD_MODNAME and a ':' before the actual
extended error message. The devlink feature hasn't been able to be compiled
as a module since commit f4b6bcc7002f ("net: devlink: turn devlink into a
built-in").

Stop using NL_SET_ERR_MSG_MOD, and just use the base NL_SET_ERR_MSG. This
aligns the extended error messages better with the NL_SET_ERR_MSG_ATTR
messages as well.

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