From 4649a6abd4c613b24920859cd119af5cc8523de4 Mon Sep 17 00:00:00 2001 From: Gleb Chesnokov Date: Tue, 9 Aug 2022 17:51:48 +0300 Subject: [PATCH] scst/include/backport.h, scst_sysfs: Prefer 'unsigned int' over bare 'unsigned' The bare "unsigned" type implicitly means "unsigned int", but the preferred coding style is to use the complete type name. This patch fixes the following checkpatch warnings: WARNING:UNSPECIFIED_INT: Prefer 'unsigned int' to bare use of 'unsigned' --- scst/include/backport.h | 2 +- scst/src/scst_sysfs.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/scst/include/backport.h b/scst/include/backport.h index ef6932114..8f8256b63 100644 --- a/scst/include/backport.h +++ b/scst/include/backport.h @@ -842,7 +842,7 @@ struct nvmefc_fcp_req { #if LINUX_VERSION_CODE < KERNEL_VERSION(3, 18, 0) && \ (!defined(RHEL_MAJOR) || RHEL_MAJOR -0 < 7) -typedef unsigned percpu_count_t; +typedef unsigned int percpu_count_t; #define READ_REF_COUNT(ref) atomic_read(&(ref)->count) #else typedef unsigned long percpu_count_t; diff --git a/scst/src/scst_sysfs.c b/scst/src/scst_sysfs.c index 0c9087112..dca533024 100644 --- a/scst/src/scst_sysfs.c +++ b/scst/src/scst_sysfs.c @@ -4349,7 +4349,7 @@ static ssize_t scst_sess_latency_show(struct kobject *kobj, #else uint64_t sum = 0, sumsq = 0; #endif - unsigned count = 0, numst = 0; + unsigned int count = 0, numst = 0; u64 d_min_div_10, d_max_div_10, avg_div_10, stddev_div_10; u32 d_min_mod_10, d_max_mod_10, avg_mod_10, stddev_mod_10; char state_name[32];