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];