summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorDavid S. Miller <davem@davemloft.net>2019-08-31 23:46:13 -0700
committerDavid S. Miller <davem@davemloft.net>2019-08-31 23:46:13 -0700
commit38320f69403d5037b3c7c8bf1754278ba96f3b2a (patch)
tree485f61fcd5409c48b7e32d722b2d3cb802f3f833 /include
parent1b6ca07b68797e18a5eb04359e47620780df3ea0 (diff)
parent58b6be4175a4b4a58210bf171ac90886244da98c (diff)
Merge branch 'Minor-cleanup-in-devlink'
Parav Pandit says: ==================== Minor cleanup in devlink Two minor cleanup in devlink. Patch-1 Explicitly defines devlink port index as unsigned int Patch-2 Uses switch-case to handle different port flavours attributes ==================== Acked-by: Jakub Kicinski <jakub.kicinski@netronome.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'include')
-rw-r--r--include/net/devlink.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/net/devlink.h b/include/net/devlink.h
index 7f43c48f54cd..13523b0a0642 100644
--- a/include/net/devlink.h
+++ b/include/net/devlink.h
@@ -75,7 +75,7 @@ struct devlink_port {
struct list_head list;
struct list_head param_list;
struct devlink *devlink;
- unsigned index;
+ unsigned int index;
bool registered;
spinlock_t type_lock; /* Protects type and type_dev
* pointer consistency.