diff options
author | Jinchao Wang <wjc@cdjrlc.com> | 2021-06-28 19:19:07 +0200 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2021-07-21 17:30:09 +0200 |
commit | e7deeb9d79d8691f1e6c4c6707471ec3d7b9886b (patch) | |
tree | dde746355f52d2158a3b54893c6f1728e2245c70 /drivers/base/node.c | |
parent | cacheinfo: clear cache_leaves(cpu) in free_cache_attributes() (diff) | |
download | linux-e7deeb9d79d8691f1e6c4c6707471ec3d7b9886b.tar.xz linux-e7deeb9d79d8691f1e6c4c6707471ec3d7b9886b.zip |
driver: base: Prefer unsigned int to bare use of unsigned
Fix checkpatch warnings:
WARNING: Prefer 'unsigned int' to bare use of 'unsigned'
Signed-off-by: Jinchao Wang <wjc@cdjrlc.com>
Link: https://lore.kernel.org/r/20210628171907.63646-2-wjc@cdjrlc.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/base/node.c')
-rw-r--r-- | drivers/base/node.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/drivers/base/node.c b/drivers/base/node.c index 4a4ae868ad9f..2bc9089f3e78 100644 --- a/drivers/base/node.c +++ b/drivers/base/node.c @@ -75,7 +75,7 @@ static DEVICE_ATTR_RO(cpulist); struct node_access_nodes { struct device dev; struct list_head list_node; - unsigned access; + unsigned int access; #ifdef CONFIG_HMEM_REPORTING struct node_hmem_attrs hmem_attrs; #endif @@ -122,7 +122,7 @@ static void node_access_release(struct device *dev) } static struct node_access_nodes *node_init_node_access(struct node *node, - unsigned access) + unsigned int access) { struct node_access_nodes *access_node; struct device *dev; @@ -187,7 +187,7 @@ static struct attribute *access_attrs[] = { * @access: The access class the for the given attributes */ void node_set_perf_attrs(unsigned int nid, struct node_hmem_attrs *hmem_attrs, - unsigned access) + unsigned int access) { struct node_access_nodes *c; struct node *node; @@ -711,7 +711,7 @@ int register_cpu_under_node(unsigned int cpu, unsigned int nid) */ int register_memory_node_under_compute_node(unsigned int mem_nid, unsigned int cpu_nid, - unsigned access) + unsigned int access) { struct node *init_node, *targ_node; struct node_access_nodes *initiator, *target; |