OSDN Git Service

devlink: Make port index data type as unsigned int
authorParav Pandit <parav@mellanox.com>
Fri, 30 Aug 2019 10:39:44 +0000 (05:39 -0500)
committerDavid S. Miller <davem@davemloft.net>
Sun, 1 Sep 2019 06:46:13 +0000 (23:46 -0700)
commitc7282b501f22a21ac8dfb6d3856aa1a92a7df5d5
treececb6d66bbc96d379c9b72b231653c41edc07534
parent1b6ca07b68797e18a5eb04359e47620780df3ea0
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>
include/net/devlink.h
net/core/devlink.c