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'
This commit is contained in:
Gleb Chesnokov
2022-08-09 17:51:48 +03:00
parent 1e168e6676
commit 4649a6abd4
2 changed files with 2 additions and 2 deletions

View File

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

View File

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