GitHub/LineageOS/android_kernel_motorola_exynos9610.git
9 years agostaging/lustre: Remove unused lprocfs_init_ldlm_stats
Oleg Drokin [Sun, 27 Sep 2015 20:45:44 +0000 (16:45 -0400)]
staging/lustre: Remove unused lprocfs_init_ldlm_stats

This is unused anywhere in the client code.

Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Signed-off-by: Oleg Drokin <green@linuxhacker.ru>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
9 years agostaging/lustre: Remove unused lprocfs_alloc/free_md_stats
Oleg Drokin [Sun, 27 Sep 2015 20:45:43 +0000 (16:45 -0400)]
staging/lustre: Remove unused lprocfs_alloc/free_md_stats

This code is not called anywhere in the current client code,
so we can remove it.
Also remove a helper function lprocfs_init_mps_stats

Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Signed-off-by: Oleg Drokin <green@linuxhacker.ru>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
9 years agostaging/lustre/obdclass: Remove unused lprocfs_alloc/free_obd_stats
Oleg Drokin [Sun, 27 Sep 2015 20:45:42 +0000 (16:45 -0400)]
staging/lustre/obdclass: Remove unused lprocfs_alloc/free_obd_stats

obd_stats in the form present were only used on the server,
so let's remove them from the client code
This also removes lprocfs_init_ops_stats helper.

Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Signed-off-by: Oleg Drokin <green@linuxhacker.ru>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
9 years agostaging/lustre: remove dt_object implementation
Arnd Bergmann [Sun, 27 Sep 2015 20:45:41 +0000 (16:45 -0400)]
staging/lustre: remove dt_object implementation

Nothing uses dt_object now, so we can kill the implementation
and the stale references.

Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Signed-off-by: Oleg Drokin <green@linuxhacker.ru>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
9 years agostaging/lustre/llog: remove unused server code
Arnd Bergmann [Sun, 27 Sep 2015 20:45:40 +0000 (16:45 -0400)]
staging/lustre/llog: remove unused server code

Most of the code in llog.c and llog_cat.c is completely unused
on the client and can be removed, as a preparation for removing
the dt_object code.

Two tricky parts are:

 - In llog_cat_close(), we rely on the fact that llh_flags never
   contains LLOG_F_ZAP_WHEN_EMPTY, because nobody ever sets that
   flag.

 - In llog_read_header(), we check the return value of the lpi_cb
   callback, and again we know that it cannot be LLOG_PROC_BREAK
   or LLOG_DEL_RECORD and can remove the respective code path.

Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Signed-off-by: Oleg Drokin <green@linuxhacker.ru>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
9 years agostaging/lustre: Remove obd_export_evict_by_nid/uuid
Oleg Drokin [Sun, 27 Sep 2015 20:45:39 +0000 (16:45 -0400)]
staging/lustre: Remove obd_export_evict_by_nid/uuid

These functions only make sense on the server.

Signed-off-by: Oleg Drokin <green@linuxhacker.ru>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
9 years agostaging/lustre/obdclass: Remove unused lprocfs_wr_evict_client
Oleg Drokin [Sun, 27 Sep 2015 20:45:38 +0000 (16:45 -0400)]
staging/lustre/obdclass: Remove unused lprocfs_wr_evict_client

This is only used on the servers to evict clients.

Signed-off-by: Oleg Drokin <green@linuxhacker.ru>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
9 years agostaging/lustre: remove CFS_TIME_T definition
Arnd Bergmann [Sun, 27 Sep 2015 20:45:37 +0000 (16:45 -0400)]
staging/lustre: remove CFS_TIME_T definition

The CFS_TIME_T macro serves no real purpose as we stopped using time_t
and changed over to time64_t, so we can remove the last remaining uses
of this.

Two uses of this macro are incorrect and refer to jiffies values
rather than time_t, and one refers to an inode timespec that gets
changed separately.

Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Signed-off-by: Oleg Drokin <green@linuxhacker.ru>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
9 years agostaging/lustre/ptlrpc: Remove ptlrpc_update_export_timer()
Oleg Drokin [Sun, 27 Sep 2015 20:45:36 +0000 (16:45 -0400)]
staging/lustre/ptlrpc: Remove ptlrpc_update_export_timer()

This is only used on the server to keep track of alive clients
and feeds into ping evictor (that was removed from the client code).
Also remove struct obd's obd_exports_timed and
struct obd_export's exp_obd_chain_timed used to keep track of that

Signed-off-by: Oleg Drokin <green@linuxhacker.ru>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
9 years agostaging/lustre: remove class_disconnect_export_list
Arnd Bergmann [Sun, 27 Sep 2015 20:45:35 +0000 (16:45 -0400)]
staging/lustre: remove class_disconnect_export_list

More code that makes no sense on the client and that can be
removed without replacement.

Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Signed-off-by: Oleg Drokin <green@linuxhacker.ru>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
9 years agostaging/lustre: remove unused time handling functions
Arnd Bergmann [Sun, 27 Sep 2015 20:45:34 +0000 (16:45 -0400)]
staging/lustre: remove unused time handling functions

A bunch of API functions deal with time values but are now
completely unused in lustre. This removes them in order to
remove all references to time_t from the header files.

Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Signed-off-by: Oleg Drokin <green@linuxhacker.ru>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
9 years agostaging/lustre: remove wrappers for timer functions
Arnd Bergmann [Sun, 27 Sep 2015 20:45:33 +0000 (16:45 -0400)]
staging/lustre: remove wrappers for timer functions

This is a simple cleanup that I did after noticing that the abstraction
for the timer functions in completely pointless, and the one user (ptlrpc)
can just as well call the native Linux functions.

For good measure, this also removes the empty libcfs_arch_init()
and libcfs_arch_cleanup() functions that are defined in the
same file.

Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Signed-off-by: Oleg Drokin <green@linuxhacker.ru>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
9 years agostaging/lustre/lov: remove a bit of dead code
Arnd Bergmann [Sun, 27 Sep 2015 20:45:32 +0000 (16:45 -0400)]
staging/lustre/lov: remove a bit of dead code

lov_stripe_md_cmp lov_lum_lsm_cmp lov_lum_swab_if_needed functions
have not been in used for a long time, so lets just remove them.

Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Signed-off-by: Oleg Drokin <green@linuxhacker.ru>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
9 years agostaging/lustre: remove the ping evictor
Arnd Bergmann [Sun, 27 Sep 2015 20:45:31 +0000 (16:45 -0400)]
staging/lustre: remove the ping evictor

This code is never used on the client and can simply be removed.

Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Signed-off-by: Oleg Drokin <green@linuxhacker.ru>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
9 years agostaging/lustre: use 64-bit times for request times
Arnd Bergmann [Sun, 27 Sep 2015 20:45:30 +0000 (16:45 -0400)]
staging/lustre: use 64-bit times for request times

All request timestamps and deadlines in lustre are recorded in time_t
and timeval units, which overflow in 2038 on 32-bit systems.

In this patch, I'm converting them to time64_t and timespec64,
respectively. Unfortunately, this makes a relatively large patch,
but I could not find an obvious way to split it up some more without
breaking atomicity of the change.

Also unfortunately, this introduces two instances of div_u64_rem()
in the request path, which can be slow on 32-bit architectures. This
can probably be avoided by a larger restructuring of the code, but
it is unlikely that lustre is used in performance critical setups
on 32-bit architectures, so it seems better to optimize for correctness
rather than speed here.

Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Signed-off-by: Oleg Drokin <green@linuxhacker.ru>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
9 years agostaging/lustre: use 64-bit times for ptlrpc_sec
Arnd Bergmann [Sun, 27 Sep 2015 20:45:29 +0000 (16:45 -0400)]
staging/lustre: use 64-bit times for ptlrpc_sec

Here we use an unsigned long to store the timeout for gc,
which is probably safe until 2106, but this patch converts it
to use ktime_get_real_seconds() and time64_t for consistency.

Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Signed-off-by: Oleg Drokin <green@linuxhacker.ru>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
9 years agostaging/lustre: use 64-bit times for ptlrpc sec expiry
Arnd Bergmann [Sun, 27 Sep 2015 20:45:28 +0000 (16:45 -0400)]
staging/lustre: use 64-bit times for ptlrpc sec expiry

The exp_flvr_expire and imp_sec_expire are defined as 'unsigned long',
which doesn't overflow until 2106, but to be on the safe side, this
changes the code to use time64_t like we do everywhere else.

Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Signed-off-by: Oleg Drokin <green@linuxhacker.ru>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
9 years agostaging/lustre: use 64-bit timestamps for mdc
Arnd Bergmann [Sun, 27 Sep 2015 20:45:27 +0000 (16:45 -0400)]
staging/lustre: use 64-bit timestamps for mdc

These three are timestamps that are sent over the wire in mdc_lib
and the obd logging 64-bit values, but are generated using the 32-bit
get_seconds() function, which will eventually overflow.

Changing them to use 64-bit ktime_get_real_seconds() solves the problem.

Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Signed-off-by: Oleg Drokin <green@linuxhacker.ru>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
9 years agostaging/lustre: use 64-bit times in another debug print
Arnd Bergmann [Sun, 27 Sep 2015 20:45:26 +0000 (16:45 -0400)]
staging/lustre: use 64-bit times in another debug print

The ll_setattr_raw() function prints the new inode timestamps
along with the current time using '%lu', which overflows in
2106. This changes the printing of the current time for
now, the other two will change when we migrate the VFS code
to use 64-bit timestamps.

Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Signed-off-by: Oleg Drokin <green@linuxhacker.ru>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
9 years agostaging/lustre: use 64-bit times in debug print
Arnd Bergmann [Sun, 27 Sep 2015 20:45:25 +0000 (16:45 -0400)]
staging/lustre: use 64-bit times in debug print

This adapts the format string and get_seconds() call to not
overflow in 2038 in the libcfs_debug_dumplog_internal()
function.

Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Signed-off-by: Oleg Drokin <green@linuxhacker.ru>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
9 years agostaging/lustre: use 64-bit times in ptlrpc_enc_page_pool
Arnd Bergmann [Sun, 27 Sep 2015 20:45:24 +0000 (16:45 -0400)]
staging/lustre: use 64-bit times in ptlrpc_enc_page_pool

ptlrpc_enc_page_pool computes time deltas using 'long' values from
get_seconds(). This is probably safe beyond y2038, but it's better
to go use monotonic times and 64-bit here for consistency.

Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Signed-off-by: Oleg Drokin <green@linuxhacker.ru>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
9 years agostaging/lustre: use 64-bit time for selftest
Arnd Bergmann [Sun, 27 Sep 2015 20:45:23 +0000 (16:45 -0400)]
staging/lustre: use 64-bit time for selftest

The lustre selftest code has multiple time stamps that are kept
as 'time_t' or 'unsigned long' and can therefore overflow on
32-bit systems.

This changes the code to use time64_t instead.

Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Signed-off-by: Oleg Drokin <green@linuxhacker.ru>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
9 years agostaging/lustre: use 64-bit time for ni_last_alive
Arnd Bergmann [Sun, 27 Sep 2015 20:45:22 +0000 (16:45 -0400)]
staging/lustre: use 64-bit time for ni_last_alive

The ni_last_alive member of lnet_ni uses a 'long' to store a timestamp,
which breaks on 32-bit systems in 2038.

This changes it to use time64_t and the respective functions for it.

Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Signed-off-by: Oleg Drokin <green@linuxhacker.ru>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
9 years agostaging/lustre: use 64-bit times for ksnd_connd
Arnd Bergmann [Sun, 27 Sep 2015 20:45:21 +0000 (16:45 -0400)]
staging/lustre: use 64-bit times for ksnd_connd

The connection starting/failing time stamps will overflow in 2038
on 32-bit machines, so we need to use time64_t and ktime_get_real_seconds()
instead.

Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Signed-off-by: Oleg Drokin <green@linuxhacker.ru>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
9 years agostaging/lustre: use 64-bit llite debugfs timestamps
Arnd Bergmann [Sun, 27 Sep 2015 20:45:20 +0000 (16:45 -0400)]
staging/lustre: use 64-bit llite debugfs timestamps

The llite debugfs interface contains timestamps that are computed
from timeval, which overflows in 2038 on 32-bit systems.

This changes the output to use a timespec64 type to avoid the
overflow. I also change the format to print the sub-second portion
as 9 digits (nanoseconds) for clarity, rather than printing six
digits without leading zeroes.

Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Signed-off-by: Oleg Drokin <green@linuxhacker.ru>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
9 years agostaging/lustre: use 64-bit time for adaptive timeout
Arnd Bergmann [Sun, 27 Sep 2015 20:45:19 +0000 (16:45 -0400)]
staging/lustre: use 64-bit time for adaptive timeout

The adaptive timeout handling stores absolute times in 32-bit time_t
quantities, which will overflow in 2038.

This changes it to use time64_t.

Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Signed-off-by: Oleg Drokin <green@linuxhacker.ru>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
9 years agostaging/lustre: use 64-bit time for debugfs output
Arnd Bergmann [Sun, 27 Sep 2015 20:45:18 +0000 (16:45 -0400)]
staging/lustre: use 64-bit time for debugfs output

This time is only printed in debugfs, and can be easily converted
to 64-bit to avoid overflowing on 32-bit systems in 2038.

Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Signed-off-by: Oleg Drokin <green@linuxhacker.ru>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
9 years agostaging/lustre: use 64-bit time for pl_recalc
Arnd Bergmann [Sun, 27 Sep 2015 20:45:17 +0000 (16:45 -0400)]
staging/lustre: use 64-bit time for pl_recalc

The ldlm pool calculates elapsed time by comparing the previous and
current get_seconds() values, which is unsafe on 32-bit machines
after 2038.

This changes the code to use time64_t and ktime_get_real_seconds(),
keeping the 'real' instead of 'monotonic' time because of the
debug prints.

Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Signed-off-by: Oleg Drokin <green@linuxhacker.ru>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
9 years agostaging/lustre: use 64-bit timestamps for selftest
Arnd Bergmann [Sun, 27 Sep 2015 20:45:16 +0000 (16:45 -0400)]
staging/lustre: use 64-bit timestamps for selftest

The wire protocol for the ping uses a 64-bit seconds/microseconds
pair, but this won't work when one side uses a 32-bit timeval
to look up the current time beyond 2038.

This changes the code to use ktime_get_real_ts64() to create
a timestamp that has the right format on all machines.

Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Signed-off-by: Oleg Drokin <green@linuxhacker.ru>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
9 years agostaging/lustre: use 64-bit computation in s2dhms()
Arnd Bergmann [Sun, 27 Sep 2015 20:45:15 +0000 (16:45 -0400)]
staging/lustre: use 64-bit computation in s2dhms()

The s2dhms computes the day/hour/minute/second values from a time_t,
which stops working in 2038. This changes the code to take a time64_t
argument, and use div_u64_rem() to implement the first division.

Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Signed-off-by: Oleg Drokin <green@linuxhacker.ru>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
9 years agostaging/lustre: use 64-bit times for cfs_srand seed
Arnd Bergmann [Sun, 27 Sep 2015 20:45:14 +0000 (16:45 -0400)]
staging/lustre: use 64-bit times for cfs_srand seed

Several functions in Lustre call cfs_srand with do_gettimeofday
as the seed to get a pseudo-random number.
There is no bug here, but changing it to use ktime_get_ts64()
gets us closer to deprecating do_gettimeofday() and makes it slightly
more random.

Affected functions are:
lnet_shuffle_seed, init_lustre_lite and class_handle_init

Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Signed-off-by: Oleg Drokin <green@linuxhacker.ru>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
9 years agostaging/lustre: use 64-bit ibn_incarnation computation
Arnd Bergmann [Sun, 27 Sep 2015 20:45:13 +0000 (16:45 -0400)]
staging/lustre: use 64-bit ibn_incarnation computation

ibn_incarnation is a 64-bit value, but using timeval to compute
it will cause an overflow in 2038. This changes it to use
ktime_get_real_ts64() instead.

Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Signed-off-by: Oleg Drokin <green@linuxhacker.ru>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
9 years agostaging/lustre: use jiffies_to_*() instead of cfs_duration_usec
Arnd Bergmann [Sun, 27 Sep 2015 20:45:12 +0000 (16:45 -0400)]
staging/lustre: use jiffies_to_*() instead of cfs_duration_usec

The cfs_duration_usec() function has a timeval as its output, which we
want to avoid in general because of the y2038 problem.

There are only two locations remaining in lustre, so we can for now
replace one with jiffies_to_timeval(), which is a generic kernel function
that does the same thing, the other can just use jiffies_to_usecs()
and completely avoid the timeval.

This is not a full solution yet, but it's a small step that lets us
build a larger portion of lustre without this reference to timeval in
a header file, and avoid triggering automated checking tools that wants
to warn about timeval.

Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Signed-off-by: Oleg Drokin <green@linuxhacker.ru>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
9 years agostaging/lustre: use 'long' return type for cfs_duration_sec()
Arnd Bergmann [Sun, 27 Sep 2015 20:45:11 +0000 (16:45 -0400)]
staging/lustre: use 'long' return type for cfs_duration_sec()

The cfs_duration_sec() converts a relative jiffies value into seconds,
and returns that number as a time_t. We know that a 32-bit type is
enough here, because the result is order of magnitudes smaller than
the difference in jiffies that is also expressed as a 'long', so
we can safely replace the time_t type with long as well.

Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Signed-off-by: Oleg Drokin <green@linuxhacker.ru>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
9 years agostaging/lustre: use 64-bit time LNetCtl()
Arnd Bergmann [Sun, 27 Sep 2015 20:45:10 +0000 (16:45 -0400)]
staging/lustre: use 64-bit time LNetCtl()

This ioctl function passes a 64-bit time argument but then performs
a computation with a 32-bit get_seconds() value.

In order to avoid overflow here, this changes the code to use
64-bit math and ktime_get_real_seconds().

Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Signed-off-by: Oleg Drokin <green@linuxhacker.ru>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
9 years agostaging/lustre: avoid unnecessary timeval conversion
Arnd Bergmann [Sun, 27 Sep 2015 20:45:09 +0000 (16:45 -0400)]
staging/lustre: avoid unnecessary timeval conversion

The lnet_eq_wait_locked tries to wait for time to pass or an event to
wake up the wait queue. The entire logic seems to be a very elaborate
reimplementation of wait_event().

I'm not trying to clean up the entire logic here, but this at least
gets rid of the multi-way conversion between miliseconds, timeval
and jiffies.

Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Signed-off-by: Oleg Drokin <green@linuxhacker.ru>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
9 years agostaging/lustre: change rq_at_index type
Arnd Bergmann [Sun, 27 Sep 2015 20:45:08 +0000 (16:45 -0400)]
staging/lustre: change rq_at_index type

The rq_at_index member of ptlrpc_request is incorrectly declared as
time_t, when it is only used as an index into an array, and assigned
from a __u32 variable.

This changes the type to u32, so we can kill off another use of time_t.

Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Signed-off-by: Oleg Drokin <green@linuxhacker.ru>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
9 years agostaging/lustre: use ktime_t for calculating elapsed time
Arnd Bergmann [Sun, 27 Sep 2015 20:45:07 +0000 (16:45 -0400)]
staging/lustre: use ktime_t for calculating elapsed time

process_param2_config() tries to print how much time has passed
across a call_usermodehelper() function, and uses struct timeval
for that.

We want to remove this structure, so this is better expressed
in terms of ktime_t and ktime_us_delta().

Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Signed-off-by: Oleg Drokin <green@linuxhacker.ru>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
9 years agostaging/lustre: use time64_t for l_last_activity
Arnd Bergmann [Sun, 27 Sep 2015 20:45:06 +0000 (16:45 -0400)]
staging/lustre: use time64_t for l_last_activity

The l_last_activity struct member is used to keep track lock hold
times, and it is printed for debugging purposes. For the elapsed
time, we can use 'long' here, but it's better to use time64_t
for storing the real time to avoid an overflow in 2038.

Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Signed-off-by: Oleg Drokin <green@linuxhacker.ru>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
9 years agostaging/lustre: use 64-bit timestamps in debugfs output
Arnd Bergmann [Sun, 27 Sep 2015 20:45:05 +0000 (16:45 -0400)]
staging/lustre: use 64-bit timestamps in debugfs output

Some lustre debugfs files contain the current time. Make sure
we use a format here that does not overflow in 2038.

Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Signed-off-by: Oleg Drokin <green@linuxhacker.ru>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
9 years agostaging/lustre: tracefile: document seconds overflow
Arnd Bergmann [Sun, 27 Sep 2015 20:45:04 +0000 (16:45 -0400)]
staging/lustre: tracefile: document seconds overflow

The lustre tracefile has a timestamp defined as

       __u32 ph_sec;
       __u64 ph_usec;

which seems completely backwards, as the microsecond portion of
a time stamp will always fit into a __u32 value, while the second
portion will overflow in 2038 or 2106 (in case of unsigned seconds).

Changing this would unfortunately change the format in an incompatible
way, breaking all existing user space tools that access the data.

This uses ktime_get_real_ts64() to replace the insufficient
do_gettimeofday() and then truncates the seconds portion to
an u32 type, along with comments to explain the result.

A possible alternative would be the use of ktime_get_ts64() to
read a monotonic timestamp that never overflows, but this would
trigger a check in user space 'hdr->ph_sec < (1 << 30)' that
attempts to ensure that the values are within a reasonable range.

Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Signed-off-by: Oleg Drokin <green@linuxhacker.ru>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
9 years agostaging/lustre: obd: remove unused data structures
Arnd Bergmann [Sun, 27 Sep 2015 20:45:03 +0000 (16:45 -0400)]
staging/lustre: obd: remove unused data structures

We want to get rid of all uses of time_t, and it turns out
that obd.h contains a bunch of them that are completely unused.

This removes those structures, along with a couple of other
structures and functions in the same file that also turned
out to be unused.

Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Signed-off-by: Oleg Drokin <green@linuxhacker.ru>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
9 years agostaging/lustre: use 64-bit inode timestamps internally
Arnd Bergmann [Sun, 27 Sep 2015 20:45:02 +0000 (16:45 -0400)]
staging/lustre: use 64-bit inode timestamps internally

Lustre has 64-bit timestamps in its network data structures, but
on 32 bit systems, it converts them directly into time_t, which is
32 bit wide.

This changes the code to use 64-bit time stamps for files. The Linux
VFS code still uses time_t though, and will be changed in a separate
patch series.

Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Signed-off-by: Oleg Drokin <green@linuxhacker.ru>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
9 years agostaging/lustre: use jiffies for lp_last_query times
Arnd Bergmann [Sun, 27 Sep 2015 20:45:01 +0000 (16:45 -0400)]
staging/lustre: use jiffies for lp_last_query times

The recently introduced lnet_peer_set_alive() function uses
get_seconds() to read the current time into a shared variable,
but all other uses of that variable compare it to jiffies values.

This changes the current use to jiffies as well for consistency.

Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Fixes: af3fa7c71bf ("staging/lustre/lnet: peer aliveness status and NI status")
Cc: Liang Zhen <liang.zhen@intel.com>
Cc: James Simmons <uja.ornl@gmail.com>
Cc: Isaac Huang <he.huang@intel.com>
Signed-off-by: Oleg Drokin <oleg.drokin@intel.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
9 years agoStaging: lustre: Fix warning detected by coccicheck
Jayavant Kenjalkar [Sun, 27 Sep 2015 05:45:21 +0000 (11:15 +0530)]
Staging: lustre: Fix warning detected by coccicheck

Removing redundant semicolon as detected by coccicheck.

Signed-off-by: Jayavant Kenjalkar <jgkenjalkar@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
9 years agostaging: lustre: make non-exported functions static
Anton Gerasimov [Wed, 23 Sep 2015 21:08:17 +0000 (00:08 +0300)]
staging: lustre: make non-exported functions static

Declare non-exported functions as static.

Signed-off-by: Anton Gerasimov <anton.gerasimov@openmailbox.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
9 years agostaging: lustre: include header with local ptlrpc declarations
Anton Gerasimov [Wed, 23 Sep 2015 21:04:04 +0000 (00:04 +0300)]
staging: lustre: include header with local ptlrpc declarations

Include the header with declarations of variables that are shared between
several sources in ptlrpc module into the appropriate source files.

Signed-off-by: Anton Gerasimov <anton.gerasimov@openmailbox.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
9 years agostaging: lustre: moved extern declarations to a header
Anton Gerasimov [Wed, 23 Sep 2015 21:02:28 +0000 (00:02 +0300)]
staging: lustre: moved extern declarations to a header

This patch moves declarations of variables used in several files
across the ptlrpc module from source files to a local header.

Signed-off-by: Anton Gerasimov <anton.gerasimov@openmailbox.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
9 years agostaging: lustre: lustre_dlm_flags: stop using C99 comments
Mike Rapoport [Tue, 22 Sep 2015 04:44:03 +0000 (07:44 +0300)]
staging: lustre: lustre_dlm_flags: stop using C99 comments

Convert C99-style // comments to C89-style comments and fix C99_COMMENTS
checpatch errors.

Signed-off-by: Mike Rapoport <mike.rapoport@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
9 years agostaging: lustre: fix handling lustre_posix_acl_xattr_filter result
Andrzej Hajda [Mon, 21 Sep 2015 13:33:37 +0000 (15:33 +0200)]
staging: lustre: fix handling lustre_posix_acl_xattr_filter result

The function can return negative value.

The problem has been detected using proposed semantic patch
scripts/coccinelle/tests/unsigned_lesser_than_zero.cocci [1].

[1]: http://permalink.gmane.org/gmane.linux.kernel/2038576

Signed-off-by: Andrzej Hajda <a.hajda@samsung.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
9 years agostaging: lustre: remove invalid check
Andrzej Hajda [Mon, 21 Sep 2015 13:33:58 +0000 (15:33 +0200)]
staging: lustre: remove invalid check

Unsigned cannot be negative.

The problem has been detected using proposed semantic patch
scripts/coccinelle/tests/unsigned_lesser_than_zero.cocci [1].

[1]: http://permalink.gmane.org/gmane.linux.kernel/2038576

Signed-off-by: Andrzej Hajda <a.hajda@samsung.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
9 years agostaging/rdma: Kconfig change STAGING_RDMA to be tristate.
Ira Weiny [Mon, 28 Sep 2015 18:05:48 +0000 (14:05 -0400)]
staging/rdma: Kconfig change STAGING_RDMA to be tristate.

STAGING_RDMA was failing to build when INFINIBAND was set to 'm' and
STAGING_RDMA was set to 'y'.

Making this a tristate properly inherits the 'm' from the INFINIBAND setting.

Reviewed-by: Dalessandro, Dennis <dennis.dalessandro@intel.com>
Reviewed-by: John, Jubin <jubin.john@intel.com>
Reviewed-by: Mike Marciniszyn <mike.marciniszyn@intel.com>
Signed-off-by: Ira Weiny <ira.weiny@intel.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
9 years agostaging: rdma: add a blank line after function
Geliang Tang [Mon, 21 Sep 2015 15:39:08 +0000 (23:39 +0800)]
staging: rdma: add a blank line after function

Fixed warnings found by checkpatch.pl:

Please use a blank line after function/struct/union/enum declarations
  FILE: drivers/staging/rdma/amso1100/c2_mq.c:158:
  FILE: drivers/staging/rdma/hfi1/file_ops.c:2069:
  FILE: drivers/staging/rdma/hfi1/sdma.c:744:
  FILE: drivers/staging/rdma/hfi1/verbs.c:1202:

Signed-off-by: Geliang Tang <geliangtang@163.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
9 years agoIB/hfi1: class_name_user() should be static
Geliang Tang [Mon, 21 Sep 2015 14:18:14 +0000 (22:18 +0800)]
IB/hfi1: class_name_user() should be static

Fixes the following sparse warning:
  drivers/staging/rdma/hfi1/device.c:127:12:
  warning: symbol 'class_name_user' was not declared. Should it be static?

Signed-off-by: Geliang Tang <geliangtang@163.com>
Acked-by: Mike Marciniszyn <mike.marciniszyn@intel.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
9 years agoIB/hfi1: use kvfree() in sdma.c
Geliang Tang [Mon, 21 Sep 2015 11:43:05 +0000 (04:43 -0700)]
IB/hfi1: use kvfree() in sdma.c

Use kvfree() instead of open-coding it.

Signed-off-by: Geliang Tang <geliangtang@163.com>
Acked-by: Mike Marciniszyn <mike.marciniszyn@intel.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
9 years agostaging/rdma/hfi1: do not use u8 to store a 32-bit integer
Nicolas Iooss [Sun, 20 Sep 2015 14:07:15 +0000 (16:07 +0200)]
staging/rdma/hfi1: do not use u8 to store a 32-bit integer

hfi1_rc_hdrerr() stores the result of be32_to_cpu() into opcode, which
is a local variable declared as u8.  Later this variable is used in a
24-bit logical right shift, which makes clang complains (when building
an allmodconfig kernel with LLVMLinux patches):

    drivers/staging/rdma/hfi1/rc.c:2399:9: warning: shift count >= width
    of type [-Wshift-count-overflow]
        opcode >>= 24;
               ^   ~~

All of this lead to the point that opcode may have been designed to be
a 32-bit integer instead of an 8-bit one.  Therefore make this variable
u32.

Signed-off-by: Nicolas Iooss <nicolas.iooss_linux@m4x.org>
Acked-by: Mike Marciniszyn <mike.marciniszyn@intel.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
9 years agostaging: rtl8192e: Rename dm_ctrl_initgain_byrssi
Mateusz Kulikowski [Sun, 20 Sep 2015 08:24:14 +0000 (10:24 +0200)]
staging: rtl8192e: Rename dm_ctrl_initgain_byrssi

Use naming schema found in other rtlwifi devices.
Rename dm_ctrl_initgain_byrssi to _rtl92e_dm_ctrl_initgain_byrssi.

Signed-off-by: Mateusz Kulikowski <mateusz.kulikowski@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
9 years agostaging: rtl8192e: Rename firmware_check_ready
Mateusz Kulikowski [Sun, 20 Sep 2015 08:24:13 +0000 (10:24 +0200)]
staging: rtl8192e: Rename firmware_check_ready

Use naming schema found in other rtlwifi devices.
Rename firmware_check_ready to _rtl92e_fw_check_ready.

Signed-off-by: Mateusz Kulikowski <mateusz.kulikowski@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
9 years agostaging: rtl8192e: Rename r8192_wx_set_enc
Mateusz Kulikowski [Sun, 20 Sep 2015 08:24:12 +0000 (10:24 +0200)]
staging: rtl8192e: Rename r8192_wx_set_enc

Use naming schema found in other rtlwifi devices.
Rename r8192_wx_set_enc to _rtl92e_wx_set_enc.

Signed-off-by: Mateusz Kulikowski <mateusz.kulikowski@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
9 years agostaging: rtl8192e: Rename dm_tx_update_tssi_weak_signal
Mateusz Kulikowski [Sun, 20 Sep 2015 08:24:11 +0000 (10:24 +0200)]
staging: rtl8192e: Rename dm_tx_update_tssi_weak_signal

Use naming schema found in other rtlwifi devices.
Rename dm_tx_update_tssi_weak_signal to
_rtl92e_dm_tx_update_tssi_weak_signal.

Signed-off-by: Mateusz Kulikowski <mateusz.kulikowski@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
9 years agostaging: rtl8192e: Rename dm_tx_update_tssi_strong_signal
Mateusz Kulikowski [Sun, 20 Sep 2015 08:24:10 +0000 (10:24 +0200)]
staging: rtl8192e: Rename dm_tx_update_tssi_strong_signal

Use naming schema found in other rtlwifi devices.
Rename dm_tx_update_tssi_strong_signal to
_rtl92e_dm_tx_update_tssi_strong_signal.

Signed-off-by: Mateusz Kulikowski <mateusz.kulikowski@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
9 years agostaging: rtl8192e: Rename dm_TXPowerTrackingCallback_TSSI
Mateusz Kulikowski [Sun, 20 Sep 2015 08:20:09 +0000 (10:20 +0200)]
staging: rtl8192e: Rename dm_TXPowerTrackingCallback_TSSI

Use naming schema found in other rtlwifi devices.
Rename dm_TXPowerTrackingCallback_TSSI to
_rtl92e_dm_tx_power_tracking_callback_tssi.

Signed-off-by: Mateusz Kulikowski <mateusz.kulikowski@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
9 years agostaging: rtl8192e: Rename dm_TXPowerTrackingCallback_ThermalMeter
Mateusz Kulikowski [Sun, 20 Sep 2015 08:20:08 +0000 (10:20 +0200)]
staging: rtl8192e: Rename dm_TXPowerTrackingCallback_ThermalMeter

Use naming schema found in other rtlwifi devices.
Rename dm_TXPowerTrackingCallback_ThermalMeter to
_rtl92e_dm_tx_power_tracking_cb_thermal.

Signed-off-by: Mateusz Kulikowski <mateusz.kulikowski@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
9 years agostaging: rtl8192e: Rename dm_txpower_reset_recovery
Mateusz Kulikowski [Sun, 20 Sep 2015 08:20:07 +0000 (10:20 +0200)]
staging: rtl8192e: Rename dm_txpower_reset_recovery

Use naming schema found in other rtlwifi devices.
Rename dm_txpower_reset_recovery to _rtl92e_dm_tx_power_reset_recovery.

Signed-off-by: Mateusz Kulikowski <mateusz.kulikowski@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
9 years agostaging: rtl8192e: Rename dm_StartSWFsync
Mateusz Kulikowski [Sun, 20 Sep 2015 08:20:06 +0000 (10:20 +0200)]
staging: rtl8192e: Rename dm_StartSWFsync

Use naming schema found in other rtlwifi devices.
Rename dm_StartSWFsync to _rtl92e_dm_start_sw_fsync.

Signed-off-by: Mateusz Kulikowski <mateusz.kulikowski@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
9 years agostaging: rtl8192e: Rename dm_StartHWFsync
Mateusz Kulikowski [Sun, 20 Sep 2015 08:20:05 +0000 (10:20 +0200)]
staging: rtl8192e: Rename dm_StartHWFsync

Use naming schema found in other rtlwifi devices.
Rename dm_StartHWFsync to _rtl92e_dm_start_hw_fsync.

Signed-off-by: Mateusz Kulikowski <mateusz.kulikowski@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
9 years agostaging: rtl8192e: Rename dm_send_rssi_tofw
Mateusz Kulikowski [Sun, 20 Sep 2015 08:20:04 +0000 (10:20 +0200)]
staging: rtl8192e: Rename dm_send_rssi_tofw

Use naming schema found in other rtlwifi devices.
Rename dm_send_rssi_tofw to _rtl92e_dm_send_rssi_to_fw.

Signed-off-by: Mateusz Kulikowski <mateusz.kulikowski@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
9 years agostaging: rtl8192e: Rename dm_rxpath_sel_byrssi
Mateusz Kulikowski [Sun, 20 Sep 2015 08:20:03 +0000 (10:20 +0200)]
staging: rtl8192e: Rename dm_rxpath_sel_byrssi

Use naming schema found in other rtlwifi devices.
Rename dm_rxpath_sel_byrssi to _rtl92e_dm_rx_path_sel_byrssi.

Signed-off-by: Mateusz Kulikowski <mateusz.kulikowski@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
9 years agostaging: rtl8192e: Rename dm_pd_th
Mateusz Kulikowski [Sun, 20 Sep 2015 08:20:02 +0000 (10:20 +0200)]
staging: rtl8192e: Rename dm_pd_th

Use naming schema found in other rtlwifi devices.
Rename dm_pd_th to _rtl92e_dm_pd_th.

Signed-off-by: Mateusz Kulikowski <mateusz.kulikowski@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
9 years agostaging: rtl8192e: Rename dm_Init_WA_Broadcom_IOT
Mateusz Kulikowski [Sun, 20 Sep 2015 08:20:01 +0000 (10:20 +0200)]
staging: rtl8192e: Rename dm_Init_WA_Broadcom_IOT

Use naming schema found in other rtlwifi devices.
Rename dm_Init_WA_Broadcom_IOT to _rtl92e_dm_init_wa_broadcom_iot.

Signed-off-by: Mateusz Kulikowski <mateusz.kulikowski@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
9 years agostaging: rtl8192e: Rename dm_InitializeTXPowerTracking_TSSI
Mateusz Kulikowski [Sun, 20 Sep 2015 08:20:00 +0000 (10:20 +0200)]
staging: rtl8192e: Rename dm_InitializeTXPowerTracking_TSSI

Use naming schema found in other rtlwifi devices.
Rename dm_InitializeTXPowerTracking_TSSI to
_rtl92e_dm_initialize_tx_power_tracking_tssi.

Signed-off-by: Mateusz Kulikowski <mateusz.kulikowski@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
9 years agostaging: rtl8192e: Rename dm_init_rxpath_selection
Mateusz Kulikowski [Sun, 20 Sep 2015 08:19:59 +0000 (10:19 +0200)]
staging: rtl8192e: Rename dm_init_rxpath_selection

Use naming schema found in other rtlwifi devices.
Rename dm_init_rxpath_selectio to _rtl92e_dm_init_rx_path_selection.

Signed-off-by: Mateusz Kulikowski <mateusz.kulikowski@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
9 years agostaging: rtl8192e: Rename dm_InitializeTXPowerTracking_ThermalMeter
Mateusz Kulikowski [Sun, 20 Sep 2015 08:19:58 +0000 (10:19 +0200)]
staging: rtl8192e: Rename dm_InitializeTXPowerTracking_ThermalMeter

Use naming schema found in other rtlwifi devices.
Rename dm_InitializeTXPowerTracking_ThermalMeter to
_rtl92e_dm_init_tx_power_tracking_thermal.

Signed-off-by: Mateusz Kulikowski <mateusz.kulikowski@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
9 years agostaging: rtl8192e: Rename dm_initial_gain
Mateusz Kulikowski [Sun, 20 Sep 2015 08:19:57 +0000 (10:19 +0200)]
staging: rtl8192e: Rename dm_initial_gain

Use naming schema found in other rtlwifi devices.
Rename dm_initial_gain to _rtl92e_dm_initial_gain.

Signed-off-by: Mateusz Kulikowski <mateusz.kulikowski@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
9 years agostaging: rtl8192e: Rename dm_init_fsync
Mateusz Kulikowski [Sun, 20 Sep 2015 08:19:56 +0000 (10:19 +0200)]
staging: rtl8192e: Rename dm_init_fsync

Use naming schema found in other rtlwifi devices.
Rename dm_init_fsync to _rtl92e_dm_init_fsync.

Signed-off-by: Mateusz Kulikowski <mateusz.kulikowski@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
9 years agostaging: rtl8192e: Rename dm_init_dynamic_txpower
Mateusz Kulikowski [Sun, 20 Sep 2015 08:19:55 +0000 (10:19 +0200)]
staging: rtl8192e: Rename dm_init_dynamic_txpower

Use naming schema found in other rtlwifi devices.
Rename dm_init_dynamic_txpower to _rtl92e_dm_init_dynamic_tx_power.

Signed-off-by: Mateusz Kulikowski <mateusz.kulikowski@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
9 years agostaging: rtl8192e: Rename dm_init_ctstoself
Mateusz Kulikowski [Sun, 20 Sep 2015 08:19:54 +0000 (10:19 +0200)]
staging: rtl8192e: Rename dm_init_ctstoself

Use naming schema found in other rtlwifi devices.
Rename dm_init_ctstoself to _rtl92e_dm_init_cts_to_self.

Signed-off-by: Mateusz Kulikowski <mateusz.kulikowski@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
9 years agostaging: rtl8192e: Rename dm_init_bandwidth_autoswitch
Mateusz Kulikowski [Sun, 20 Sep 2015 08:19:53 +0000 (10:19 +0200)]
staging: rtl8192e: Rename dm_init_bandwidth_autoswitch

Use naming schema found in other rtlwifi devices.
Rename dm_init_bandwidth_autoswitch to
_rtl92e_dm_init_bandwidth_autoswitch.

Signed-off-by: Mateusz Kulikowski <mateusz.kulikowski@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
9 years agostaging: rtl8192e: Rename dm_fsync_timer_callback
Mateusz Kulikowski [Sun, 20 Sep 2015 08:19:52 +0000 (10:19 +0200)]
staging: rtl8192e: Rename dm_fsync_timer_callback

Use naming schema found in other rtlwifi devices.
Rename dm_fsync_timer_callback to _rtl92e_dm_fsync_timer_callback.

Signed-off-by: Mateusz Kulikowski <mateusz.kulikowski@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
9 years agostaging: rtl8192e: Rename dm_EndSWFsync
Mateusz Kulikowski [Sun, 20 Sep 2015 08:19:51 +0000 (10:19 +0200)]
staging: rtl8192e: Rename dm_EndSWFsync

Use naming schema found in other rtlwifi devices.
Rename dm_EndSWFsync to _rtl92e_dm_end_sw_fsync.

Signed-off-by: Mateusz Kulikowski <mateusz.kulikowski@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
9 years agostaging: rtl8192e: Rename dm_EndHWFsync
Mateusz Kulikowski [Sun, 20 Sep 2015 08:19:50 +0000 (10:19 +0200)]
staging: rtl8192e: Rename dm_EndHWFsync

Use naming schema found in other rtlwifi devices.
Rename dm_EndHWFsync to _rtl92e_dm_end_hw_fsync.

Signed-off-by: Mateusz Kulikowski <mateusz.kulikowski@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
9 years agostaging: rtl8192e: Rename dm_dynamic_txpower
Mateusz Kulikowski [Sun, 20 Sep 2015 08:19:49 +0000 (10:19 +0200)]
staging: rtl8192e: Rename dm_dynamic_txpower

Use naming schema found in other rtlwifi devices.
Rename dm_dynamic_txpower to _rtl92e_dm_dynamic_tx_power.

Signed-off-by: Mateusz Kulikowski <mateusz.kulikowski@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
9 years agostaging: rtl8192e: Rename dm_dig_init
Mateusz Kulikowski [Sun, 20 Sep 2015 08:19:48 +0000 (10:19 +0200)]
staging: rtl8192e: Rename dm_dig_init

Use naming schema found in other rtlwifi devices.
Rename dm_dig_init to _rtl92e_dm_dig_init.

Signed-off-by: Mateusz Kulikowski <mateusz.kulikowski@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
9 years agostaging: rtl8192e: Rename dm_deInit_fsync
Mateusz Kulikowski [Sun, 20 Sep 2015 08:19:47 +0000 (10:19 +0200)]
staging: rtl8192e: Rename dm_deInit_fsync

Use naming schema found in other rtlwifi devices.
Rename dm_deInit_fsync to _rtl92e_dm_deinit_fsync.

Signed-off-by: Mateusz Kulikowski <mateusz.kulikowski@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
9 years agostaging: rtl8192e: Rename dm_ctstoself
Mateusz Kulikowski [Sun, 20 Sep 2015 08:19:46 +0000 (10:19 +0200)]
staging: rtl8192e: Rename dm_ctstoself

Use naming schema found in other rtlwifi devices.
Rename dm_ctstoself to _rtl92e_dm_cts_to_self.

Signed-off-by: Mateusz Kulikowski <mateusz.kulikowski@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
9 years agostaging: rtl8192e: Rename dm_ctrl_initgain_byrssi_highpwr
Mateusz Kulikowski [Sun, 20 Sep 2015 08:19:45 +0000 (10:19 +0200)]
staging: rtl8192e: Rename dm_ctrl_initgain_byrssi_highpwr

Use naming schema found in other rtlwifi devices.
Rename dm_ctrl_initgain_byrssi_highpwr to
_rtl92e_dm_ctrl_initgain_byrssi_highpwr.

Signed-off-by: Mateusz Kulikowski <mateusz.kulikowski@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
9 years agostaging: rtl8192e: Rename dm_ctrl_initgain_byrssi_by_fwfalse_alarm
Mateusz Kulikowski [Sun, 20 Sep 2015 08:19:44 +0000 (10:19 +0200)]
staging: rtl8192e: Rename dm_ctrl_initgain_byrssi_by_fwfalse_alarm

Use naming schema found in other rtlwifi devices.
Rename dm_ctrl_initgain_byrssi_by_fwfalse_alarm to
_rtl92e_dm_ctrl_initgain_byrssi_false_alarm.

Signed-off-by: Mateusz Kulikowski <mateusz.kulikowski@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
9 years agostaging: rtl8192e: Rename dm_ctrl_initgain_byrssi_by_driverrssi
Mateusz Kulikowski [Sun, 20 Sep 2015 08:19:43 +0000 (10:19 +0200)]
staging: rtl8192e: Rename dm_ctrl_initgain_byrssi_by_driverrssi

Use naming schema found in other rtlwifi devices.
Rename dm_ctrl_initgain_byrssi_by_driverrssi to
_rtl92e_dm_ctrl_initgain_byrssi_driver.

Signed-off-by: Mateusz Kulikowski <mateusz.kulikowski@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
9 years agostaging: rtl8192e: Rename dm_cs_ratio
Mateusz Kulikowski [Sun, 20 Sep 2015 08:19:42 +0000 (10:19 +0200)]
staging: rtl8192e: Rename dm_cs_ratio

Use naming schema found in other rtlwifi devices.
Rename dm_cs_ratio to _rtl92e_dm_cs_ratio.

Signed-off-by: Mateusz Kulikowski <mateusz.kulikowski@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
9 years agostaging: rtl8192e: Rename dm_check_txrateandretrycount
Mateusz Kulikowski [Sun, 20 Sep 2015 08:19:41 +0000 (10:19 +0200)]
staging: rtl8192e: Rename dm_check_txrateandretrycount

Use naming schema found in other rtlwifi devices.
Rename dm_check_txrateandretrycount to
_rtl92e_dm_check_txrateandretrycount.

Signed-off-by: Mateusz Kulikowski <mateusz.kulikowski@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
9 years agostaging: rtl8192e: Rename dm_CheckTXPowerTracking_TSSI
Mateusz Kulikowski [Sun, 20 Sep 2015 08:19:40 +0000 (10:19 +0200)]
staging: rtl8192e: Rename dm_CheckTXPowerTracking_TSSI

Use naming schema found in other rtlwifi devices.
Rename dm_CheckTXPowerTracking_TSSI to
_rtl92e_dm_check_tx_power_tracking_tssi.

Signed-off-by: Mateusz Kulikowski <mateusz.kulikowski@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
9 years agostaging: rtl8192e: Rename dm_CheckTXPowerTracking_ThermalMeter
Mateusz Kulikowski [Sun, 20 Sep 2015 08:19:39 +0000 (10:19 +0200)]
staging: rtl8192e: Rename dm_CheckTXPowerTracking_ThermalMeter

Use naming schema found in other rtlwifi devices.
Rename dm_CheckTXPowerTracking_ThermalMeter to
_rtl92e_dm_check_tx_power_tracking_thermal.

Signed-off-by: Mateusz Kulikowski <mateusz.kulikowski@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
9 years agostaging: rtl8192e: Rename dm_check_txpower_tracking
Mateusz Kulikowski [Sun, 20 Sep 2015 08:19:38 +0000 (10:19 +0200)]
staging: rtl8192e: Rename dm_check_txpower_tracking

Use naming schema found in other rtlwifi devices.
Rename dm_check_txpower_tracking to _rtl92e_dm_check_tx_power_tracking.

Signed-off-by: Mateusz Kulikowski <mateusz.kulikowski@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
9 years agostaging: rtl8192e: Rename dm_check_rx_path_selection
Mateusz Kulikowski [Sun, 20 Sep 2015 08:19:37 +0000 (10:19 +0200)]
staging: rtl8192e: Rename dm_check_rx_path_selection

Use naming schema found in other rtlwifi devices.
Rename dm_check_rx_path_selection to _rtl92e_dm_check_rx_path_selection.

Signed-off-by: Mateusz Kulikowski <mateusz.kulikowski@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
9 years agostaging: rtl8192e: Rename dm_CheckRfCtrlGPIO
Mateusz Kulikowski [Sun, 20 Sep 2015 08:19:36 +0000 (10:19 +0200)]
staging: rtl8192e: Rename dm_CheckRfCtrlGPIO

Use naming schema found in other rtlwifi devices.
Rename dm_CheckRfCtrlGPIO to _rtl92e_dm_check_rf_ctrl_gpio.

Signed-off-by: Mateusz Kulikowski <mateusz.kulikowski@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
9 years agostaging: rtl8192e: Rename dm_check_rate_adaptive
Mateusz Kulikowski [Sun, 20 Sep 2015 08:19:35 +0000 (10:19 +0200)]
staging: rtl8192e: Rename dm_check_rate_adaptive

Use naming schema found in other rtlwifi devices.
Rename dm_check_rate_adaptive to _rtl92e_dm_check_rate_adaptive.

Signed-off-by: Mateusz Kulikowski <mateusz.kulikowski@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
9 years agostaging: rtl8192e: Rename dm_check_pbc_gpio
Mateusz Kulikowski [Sun, 20 Sep 2015 08:19:34 +0000 (10:19 +0200)]
staging: rtl8192e: Rename dm_check_pbc_gpio

Use naming schema found in other rtlwifi devices.
Rename dm_check_pbc_gpio to _rtl92e_dm_check_pbc_gpio.

Signed-off-by: Mateusz Kulikowski <mateusz.kulikowski@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
9 years agostaging: rtl8192e: Rename dm_check_fsync
Mateusz Kulikowski [Sun, 20 Sep 2015 08:19:33 +0000 (10:19 +0200)]
staging: rtl8192e: Rename dm_check_fsync

Use naming schema found in other rtlwifi devices.
Rename dm_check_fsync to _rtl92e_dm_check_fsync.

Signed-off-by: Mateusz Kulikowski <mateusz.kulikowski@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
9 years agostaging: rtl8192e: Rename dm_check_edca_turbo
Mateusz Kulikowski [Sun, 20 Sep 2015 08:19:32 +0000 (10:19 +0200)]
staging: rtl8192e: Rename dm_check_edca_turbo

Use naming schema found in other rtlwifi devices.
Rename dm_check_edca_turbo to _rtl92e_dm_check_edca_turbo.

Signed-off-by: Mateusz Kulikowski <mateusz.kulikowski@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
9 years agostaging: rtl8192e: Rename dm_check_ac_dc_power
Mateusz Kulikowski [Sun, 20 Sep 2015 08:19:31 +0000 (10:19 +0200)]
staging: rtl8192e: Rename dm_check_ac_dc_power

Use naming schema found in other rtlwifi devices.
Rename dm_check_ac_dc_power to _rtl92e_dm_check_ac_dc_power.

Signed-off-by: Mateusz Kulikowski <mateusz.kulikowski@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>