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>
This commit is contained in:

committed by
David S. Miller

parent
1b6ca07b68
commit
c7282b501f
@@ -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.
|
||||
|
Reference in New Issue
Block a user