aboutsummaryrefslogtreecommitdiff
path: root/scripts/gcc-plugins/cyc_complexity_plugin.c
diff options
context:
space:
mode:
authorJacob Keller <[email protected]>2020-03-26 11:37:08 -0700
committerDavid S. Miller <[email protected]>2020-03-26 19:39:26 -0700
commite8937681797c9af491c8a1e362a9db4f4aa1f471 (patch)
treeaa3bd2e62c552bae9769e1c8e5b7d178668684d0 /scripts/gcc-plugins/cyc_complexity_plugin.c
parent6739ce85919e4fa1d60b8a6e779f54b7156bc960 (diff)
devlink: prepare to support region operations
Modify the devlink region code in preparation for adding new operations on regions. Create a devlink_region_ops structure, and move the name pointer from within the devlink_region structure into the ops structure (similar to the devlink_health_reporter_ops). This prepares the regions to enable support of additional operations in the future such as requesting snapshots, or accessing the region directly without a snapshot. In order to re-use the constant strings in the mlx4 driver their declaration must be changed to 'const char * const' to ensure the compiler realizes that both the data and the pointer cannot change. Signed-off-by: Jacob Keller <[email protected]> Reviewed-by: Jakub Kicinski <[email protected]> Reviewed-by: Jiri Pirko <[email protected]> Signed-off-by: David S. Miller <[email protected]>
Diffstat (limited to 'scripts/gcc-plugins/cyc_complexity_plugin.c')
0 files changed, 0 insertions, 0 deletions