mirror of
https://github.com/edk2-porting/linux-next.git
synced 2024-12-15 16:53:54 +08:00
devlink: move tracepoint definitions into core.c
Move remaining tracepoint definitions to most suitable file core.c. Signed-off-by: Jiri Pirko <jiri@nvidia.com> Link: https://lore.kernel.org/r/20230828061657.300667-14-jiri@resnulli.us Signed-off-by: Jakub Kicinski <kuba@kernel.org>
This commit is contained in:
parent
9edbe6f36c
commit
890c556674
@ -5,9 +5,15 @@
|
||||
*/
|
||||
|
||||
#include <net/genetlink.h>
|
||||
#define CREATE_TRACE_POINTS
|
||||
#include <trace/events/devlink.h>
|
||||
|
||||
#include "devl_internal.h"
|
||||
|
||||
EXPORT_TRACEPOINT_SYMBOL_GPL(devlink_hwmsg);
|
||||
EXPORT_TRACEPOINT_SYMBOL_GPL(devlink_hwerr);
|
||||
EXPORT_TRACEPOINT_SYMBOL_GPL(devlink_trap_report);
|
||||
|
||||
DEFINE_XARRAY_FLAGS(devlinks, XA_FLAGS_ALLOC);
|
||||
|
||||
void *devlink_priv(struct devlink *devlink)
|
||||
|
@ -28,15 +28,9 @@
|
||||
#include <net/net_namespace.h>
|
||||
#include <net/sock.h>
|
||||
#include <net/devlink.h>
|
||||
#define CREATE_TRACE_POINTS
|
||||
#include <trace/events/devlink.h>
|
||||
|
||||
#include "devl_internal.h"
|
||||
|
||||
EXPORT_TRACEPOINT_SYMBOL_GPL(devlink_hwmsg);
|
||||
EXPORT_TRACEPOINT_SYMBOL_GPL(devlink_hwerr);
|
||||
EXPORT_TRACEPOINT_SYMBOL_GPL(devlink_trap_report);
|
||||
|
||||
const struct genl_small_ops devlink_nl_small_ops[40] = {
|
||||
{
|
||||
.cmd = DEVLINK_CMD_PORT_SET,
|
||||
|
Loading…
Reference in New Issue
Block a user