]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitc781ad38ecffb93264e4b9b50f1de06c61d90c27
treececb6d66bbc96d379c9b72b231653c41edc07534
parentfa0a2a593a26a922545671e6b98621822d94ef5d
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