aboutsummaryrefslogtreecommitdiff
path: root/lib/mpi/mpi-internal.h
diff options
context:
space:
mode:
authorBreno Leitao <[email protected]>2023-08-11 02:31:57 -0700
committerJakub Kicinski <[email protected]>2023-08-17 19:25:42 -0700
commitb0a9e2c9a99f64e3c59e8a32a11b90c667201203 (patch)
tree3e7a6c5c6a18a32a56733245a436c1b36e41f537 /lib/mpi/mpi-internal.h
parentf3add6dec36d9d747929918ba1d7ce8866e1c054 (diff)
netconsole: Create a allocation helper
De-duplicate the initialization and allocation code for struct netconsole_target. The same allocation and initialization code is duplicated in two different places in the netconsole subsystem, when the netconsole target is initialized by command line parameters (alloc_param_target()), and dynamically by sysfs (make_netconsole_target()). Create a helper function, and call it from the two different functions. Suggested-by: Eric Dumazet <[email protected]> Signed-off-by: Breno Leitao <[email protected]> Reviewed-by: Simon Horman <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Jakub Kicinski <[email protected]>
Diffstat (limited to 'lib/mpi/mpi-internal.h')
0 files changed, 0 insertions, 0 deletions