aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/include/net/devlink.h
diff options
context:
space:
mode:
authorParav Pandit <parav@mellanox.com>2019-08-30 05:39:44 -0500
committerDavid S. Miller <davem@davemloft.net>2019-08-31 23:46:13 -0700
commitc7282b501f22a21ac8dfb6d3856aa1a92a7df5d5 (patch)
treececb6d66bbc96d379c9b72b231653c41edc07534 /include/net/devlink.h
parentMerge branch 'net-tls-add-socket-diag' (diff)
downloadwireguard-linux-c7282b501f22a21ac8dfb6d3856aa1a92a7df5d5.tar.xz
wireguard-linux-c7282b501f22a21ac8dfb6d3856aa1a92a7df5d5.zip
devlink: Make port index data type as unsigned int
Devlink port index attribute is returned to users as u32 through netlink response. Change index data type from 'unsigned' to 'unsigned int' to avoid below checkpatch.pl warning. WARNING: Prefer 'unsigned int' to bare use of 'unsigned' 81: FILE: include/net/devlink.h:81: + unsigned index; Acked-by: Jiri Pirko <jiri@mellanox.com> Signed-off-by: Parav Pandit <parav@mellanox.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'include/net/devlink.h')
-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.