mirror of
https://github.com/SCST-project/scst.git
synced 2026-05-14 09:11:27 +00:00
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:
@@ -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;
|
||||
|
||||
@@ -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];
|
||||
|
||||
Reference in New Issue
Block a user