Re: [PATCH staging 3/3] wilc1000 : Use BIT() macro where possible

2015-09-27 Thread Dan Carpenter
On Sun, Sep 27, 2015 at 09:37:08PM -0700, Anish Bhatt wrote: > If you mean -Woverflow, then that's a gcc warning, not a static checker > warning. Yes, I know. GCC doesn't warn for me. What are you doing different. It is a stupid warning. It would be better to fix GCC instead. regards, dan ca

Re: [PATCH staging 3/3] wilc1000 : Use BIT() macro where possible

2015-09-27 Thread Anish Bhatt
On Fri, Sep 25, 2015 at 10:47 PM, Dan Carpenter wrote: > On Fri, Sep 25, 2015 at 09:14:29AM -0700, Anish Bhatt wrote: >> On Fri, Sep 25, 2015 at 3:50 AM, Dan Carpenter >> wrote: >> > On Fri, Sep 25, 2015 at 12:45:17AM -0700, Anish Bhatt wrote: >> >> @@ -1672,11 +1673,11 @@ static int wilc_wlan_s

Re: [PATCH 30/73] staging/lustre: use 64-bit times for request times

2015-09-27 Thread Dilger, Andreas
On 2015/09/27, 10:45 PM, "gr...@linuxhacker.ru" wrote: >From: Arnd Bergmann > >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. Unfo

Re: [lustre-devel] [PATCH 04/73] staging/lustre: tracefile: document seconds overflow

2015-09-27 Thread Drokin, Oleg
On Sep 27, 2015, at 8:38 PM, Dilger, Andreas wrote: > On 2015/09/27, 10:45 PM, "gr...@linuxhacker.ru" > wrote: > >> From: Arnd Bergmann >> >> The lustre tracefile has a timestamp defined as >> >> __u32 ph_sec; >> __u64 ph_usec; >> >> which seems completely backwards, as the micros

Re: [PATCH 04/73] staging/lustre: tracefile: document seconds overflow

2015-09-27 Thread Dilger, Andreas
On 2015/09/27, 10:45 PM, "gr...@linuxhacker.ru" wrote: >From: Arnd Bergmann > >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

Re: [PATCH 25/73] staging/lustre: use 64-bit times in debug print

2015-09-27 Thread Dilger, Andreas
On 2015/09/27, 10:45 PM, "gr...@linuxhacker.ru" wrote: >From: Arnd Bergmann > >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 >Signed-off-by: Oleg Drokin >--- > drivers/staging/lust

Confidential notice

2015-09-27 Thread Mr. Abdon Deguenon
Attn: This is a legal confidential text for public records search. My name is Abdon Deguenon,a personal attorney to a deceased who may relate to you (name withheld for security reason) who died with no Will or Next of Kin.My firm is seeking for the next of kin.He died with his family in an auto

[PATCH 40/73] staging/lustre/llog: remove unused server code

2015-09-27 Thread green
From: Arnd Bergmann 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, becaus

[PATCH 72/73] staging/lustre/obdclass: Remove unused nid_hash

2015-09-27 Thread green
From: Oleg Drokin nid_hash is used on export to faster find clients based on their NID. There's no use for that on the client. Signed-off-by: Oleg Drokin --- .../staging/lustre/lustre/include/lustre_export.h | 1 - drivers/staging/lustre/lustre/include/obd.h| 2 - drivers/staging/lu

[PATCH 46/73] staging/lustre: Remove mds/ost capabilities support

2015-09-27 Thread green
From: Oleg Drokin Client capabilities is an outdated feature that never worked properly, so let's get rid of the client support since modern servers don't have this support either. The patch is big, but since it just removes one large feature, so it's hopefully easy to verify. Signed-off-by: Ol

[PATCH 71/73] staging/lustre/fid: Remove unused struct lu_server_seq

2015-09-27 Thread green
From: Oleg Drokin Signed-off-by: Oleg Drokin --- drivers/staging/lustre/lustre/include/lustre_fid.h | 51 -- 1 file changed, 51 deletions(-) diff --git a/drivers/staging/lustre/lustre/include/lustre_fid.h b/drivers/staging/lustre/lustre/include/lustre_fid.h index bbe3ff8..

[PATCH 21/73] staging/lustre: use 64-bit times for ksnd_connd

2015-09-27 Thread green
From: Arnd Bergmann 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 Signed-off-by: Oleg Drokin --- drivers/staging/lustre/lnet/klnds/socklnd/socklnd.c| 2 +-

[PATCH 69/73] staging/lustre/fid: Remove unused seq_client_get_seq function

2015-09-27 Thread green
From: Oleg Drokin Also while we are at it, remove seq_site_fini forward declaration as there's no such function anymore. Signed-off-by: Oleg Drokin --- drivers/staging/lustre/lustre/fid/fid_request.c| 51 -- drivers/staging/lustre/lustre/include/lustre_fid.h | 3 -- 2

[PATCH 50/73] staging/lustre/ptlrpc: Remove server-specific health checks

2015-09-27 Thread green
From: Oleg Drokin ptlrpc_service_health_check is only used on a service, so it makes no point to retain it in the client code. Also removing it's helpers: ptlrpc_svcpt_health_check and ptlrpc_nrs_req_peek_nolock Signed-off-by: Arnd Bergmann Signed-off-by: Oleg Drokin --- drivers/staging/lustr

[PATCH 54/73] staging/lustre: Remove unused statfs_pack()

2015-09-27 Thread green
From: Oleg Drokin It's only used on the server. Signed-off-by: Arnd Bergmann Signed-off-by: Oleg Drokin --- drivers/staging/lustre/lustre/include/lustre_lib.h | 1 - drivers/staging/lustre/lustre/obdclass/statfs_pack.c | 14 -- 2 files changed, 15 deletions(-) diff --git a/dri

[PATCH 52/73] staging/lustre: Remove unused reply state batches code

2015-09-27 Thread green
From: Oleg Drokin rs_batch is used on the server only. Signed-off-by: Arnd Bergmann Signed-off-by: Oleg Drokin --- drivers/staging/lustre/lustre/include/lustre_net.h | 6 +- drivers/staging/lustre/lustre/ptlrpc/service.c | 145 - 2 files changed, 1 insertion(+), 150

[PATCH 68/73] staging/lustre/fid: seq_client_init/fini don't need to be exported

2015-09-27 Thread green
From: Oleg Drokin In fact they could be static as they are only used inside this file, so remove EXPORT_SYMBOL and declarations. Also seq_client_init is always called with srv = NULL, so just drop this argument. Signed-off-by: Oleg Drokin --- drivers/staging/lustre/lustre/fid/fid_request.c

[PATCH 49/73] staging/lustre: Remove unused lustre_acl_xattr_merge2posix()

2015-09-27 Thread green
From: Oleg Drokin Apparently this is only used only on the metadata server. Signed-off-by: Arnd Bergmann Signed-off-by: Oleg Drokin --- .../staging/lustre/lustre/include/lustre_eacl.h| 4 - drivers/staging/lustre/lustre/obdclass/acl.c | 119 - 2 files changed,

[PATCH 60/73] staging/lustre: Remove unused function class_handle_hash_back()

2015-09-27 Thread green
From: Oleg Drokin No callers left. Signed-off-by: Arnd Bergmann Signed-off-by: Oleg Drokin --- drivers/staging/lustre/lustre/include/lustre_handles.h | 1 - drivers/staging/lustre/lustre/obdclass/lustre_handles.c | 13 - 2 files changed, 14 deletions(-) diff --git a/drivers/sta

[PATCH 43/73] staging/lustre: Remove unused lprocfs_alloc/free_md_stats

2015-09-27 Thread green
From: Oleg Drokin 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 Signed-off-by: Oleg Drokin --- .../staging/lustre/lustre/include/lprocfs_status.h | 4 - .../lustre/lustre/obd

[PATCH 41/73] staging/lustre: remove dt_object implementation

2015-09-27 Thread green
From: Arnd Bergmann Nothing uses dt_object now, so we can kill the implementation and the stale references. Signed-off-by: Arnd Bergmann Signed-off-by: Oleg Drokin --- drivers/staging/lustre/lustre/fid/lproc_fid.c |1 - drivers/staging/lustre/lustre/fld/fld_cache.c |1 - dri

[PATCH 48/73] staging/lustre: Remove unused target_print_req()

2015-09-27 Thread green
From: Oleg Drokin This is a server-side request printing function, so we don't really need it on the client. Signed-off-by: Arnd Bergmann Signed-off-by: Oleg Drokin --- .../staging/lustre/lustre/include/lprocfs_status.h | 4 --- .../staging/lustre/lustre/ptlrpc/lproc_ptlrpc.c| 30 ---

[PATCH 55/73] staging/lustre: Remove unused ptlrpcd_add_rqset()

2015-09-27 Thread green
From: Oleg Drokin No point in retaining it if it's unused. Signed-off-by: Arnd Bergmann Signed-off-by: Oleg Drokin --- drivers/staging/lustre/lustre/include/lustre_net.h | 1 - drivers/staging/lustre/lustre/ptlrpc/ptlrpcd.c | 42 -- 2 files changed, 43 deletions(-) d

[PATCH 51/73] staging/lustre: Remove unused req_capsule_server_grow

2015-09-27 Thread green
From: Oleg Drokin It's only used on the server Signed-off-by: Arnd Bergmann Signed-off-by: Oleg Drokin --- .../lustre/lustre/include/lustre_req_layout.h | 3 -- drivers/staging/lustre/lustre/ptlrpc/layout.c | 62 -- 2 files changed, 65 deletions(-) diff --git a

[PATCH 20/73] staging/lustre: use 64-bit llite debugfs timestamps

2015-09-27 Thread green
From: Arnd Bergmann 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

[PATCH 53/73] staging/lustre: Remove high-priority request callbacks

2015-09-27 Thread green
From: Oleg Drokin This function is only used on the server where real high-priority requests actually exist. This deletes ptlrpc_hpreq_handler() and ptlrpc_request_change_export() Signed-off-by: Arnd Bergmann Signed-off-by: Oleg Drokin --- drivers/staging/lustre/lustre/include/lustre_net.h |

[PATCH 42/73] staging/lustre/obdclass: Remove unused lprocfs_alloc/free_obd_stats

2015-09-27 Thread green
From: Oleg Drokin 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 Signed-off-by: Oleg Drokin --- .../staging/lustre/lustre/include/lprocfs_status.h | 4 - .../

[PATCH 61/73] staging/lustre: Remove unused function server_name2svname()

2015-09-27 Thread green
From: Oleg Drokin All users are only in the server code Signed-off-by: Arnd Bergmann Signed-off-by: Oleg Drokin --- .../staging/lustre/lustre/include/lustre_disk.h| 2 -- drivers/staging/lustre/lustre/obdclass/obd_mount.c | 27 -- 2 files changed, 29 deletions(-) dif

[PATCH 45/73] staging/lustre: Remove unused debugfs/procfs helpers

2015-09-27 Thread green
From: Oleg Drokin These particular helpers are unused so let's get rid of them: ldebugfs_add_symlink, lprocfs_rd_u64, lprocfs_rd_atomic, lprocfs_wr_atomic, lprocfs_rd_name, lprocfs_seq_read_frac_helper Signed-off-by: Arnd Bergmann Signed-off-by: Oleg Drokin --- .../staging/lustre/lustre/inclu

[PATCH 47/73] staging/lustre: partially use time64_t for capa expiry

2015-09-27 Thread green
From: Arnd Bergmann Here, we actually have a problem in 2038 or at the latest in 2106 when the lc_expiry variable on the wire protocol overflows, including on 64-bit architectures. Now that the actual code was removed, only on-the wire structure is left so we add in a y2038 warning to remind who

[PATCH 44/73] staging/lustre: Remove unused lprocfs_init_ldlm_stats

2015-09-27 Thread green
From: Oleg Drokin This is unused anywhere in the client code. Signed-off-by: Arnd Bergmann Signed-off-by: Oleg Drokin --- .../staging/lustre/lustre/include/lprocfs_status.h | 1 - .../lustre/lustre/obdclass/lprocfs_status.c| 23 -- 2 files changed, 24 deletions(-)

[PATCH 70/73] staging/lustre/fid: Get rid of lcs_srv in lu_client_seq

2015-09-27 Thread green
From: Oleg Drokin Since we know lcs_srv is always NULL, just get rid of it completely and fix up all the code to assume it was never there. Signed-off-by: Oleg Drokin --- drivers/staging/lustre/lustre/fid/fid_request.c| 48 -- drivers/staging/lustre/lustre/fid/lproc_fid

[PATCH 67/73] staging/lustre/fid: Remove server fid function declarations

2015-09-27 Thread green
From: Oleg Drokin Those functions are not present anywhere in the client code. Signed-off-by: Oleg Drokin --- drivers/staging/lustre/lustre/include/lustre_fid.h | 24 -- 1 file changed, 24 deletions(-) diff --git a/drivers/staging/lustre/lustre/include/lustre_fid.h b/driv

[PATCH 34/73] staging/lustre: remove unused time handling functions

2015-09-27 Thread green
From: Arnd Bergmann 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 Signed-off-by: Oleg Drokin --- .../lustre/include/linux/libcfs/libcfs_t

[PATCH 39/73] staging/lustre: Remove obd_export_evict_by_nid/uuid

2015-09-27 Thread green
From: Oleg Drokin These functions only make sense on the server. Signed-off-by: Oleg Drokin --- drivers/staging/lustre/lustre/include/obd_class.h | 2 - drivers/staging/lustre/lustre/obdclass/genops.c | 90 --- 2 files changed, 92 deletions(-) diff --git a/drivers/stagi

[PATCH 64/73] staging/lustre/ptlrpc: secure wrapping code cleanup

2015-09-27 Thread green
From: Oleg Drokin Drop unused functions. Signed-off-by: Arnd Bergmann Signed-off-by: Oleg Drokin --- drivers/staging/lustre/lustre/include/lustre_sec.h | 20 -- drivers/staging/lustre/lustre/ptlrpc/sec.c | 116 drivers/staging/lustre/lustre/ptlrpc/sec_bulk.c| 329 ---

[PATCH 65/73] staging/lustre: Drop unused obdo_from_la() and la_from_obdo()

2015-09-27 Thread green
From: Oleg Drokin They are no longer used anywhere. Signed-off-by: Arnd Bergmann Signed-off-by: Oleg Drokin --- .../lustre/lustre/obdclass/linux/linux-obdo.c | 137 - 1 file changed, 137 deletions(-) diff --git a/drivers/staging/lustre/lustre/obdclass/linux/linux-obd

[PATCH 14/73] staging/lustre: use 64-bit times for cfs_srand seed

2015-09-27 Thread green
From: Arnd Bergmann 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:

[PATCH 73/73] staging/lustre: Remove server-only recovery-related bits

2015-09-27 Thread green
From: Oleg Drokin This patch is a first stab at trying to remove structure fields from obd_export and obd structures that are only used on the server or make sense on the server. These include tracking requests in recovery, various recovery stages, lists of recovered and not yet recovered clients

[PATCH 59/73] staging/lustre/obdclass: Remove unused functions from genops.c

2015-09-27 Thread green
From: Oleg Drokin These functions are mostly used on the server. class_uuid2obd, get_devices_count, class_obd_list, class_conn2obd, class_conn2cliimp, class_connected_export, obd_exports_barrier, kuc_* (kernel-userspace communications). Signed-off-by: Arnd Bergmann Signed-off-by: Oleg Drokin

[PATCH 35/73] staging/lustre: remove class_disconnect_export_list

2015-09-27 Thread green
From: Arnd Bergmann More code that makes no sense on the client and that can be removed without replacement. Signed-off-by: Arnd Bergmann Signed-off-by: Oleg Drokin --- drivers/staging/lustre/lustre/include/obd_class.h | 3 - drivers/staging/lustre/lustre/obdclass/genops.c| 115 ---

[PATCH 32/73] staging/lustre/lov: remove a bit of dead code

2015-09-27 Thread green
From: Arnd Bergmann 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 Signed-off-by: Oleg Drokin --- drivers/staging/lustre/lustre/include/obd.h | 62 - 1

[PATCH 31/73] staging/lustre: remove the ping evictor

2015-09-27 Thread green
From: Arnd Bergmann This code is never used on the client and can simply be removed. Signed-off-by: Arnd Bergmann Signed-off-by: Oleg Drokin --- drivers/staging/lustre/lustre/include/lustre_net.h | 2 - drivers/staging/lustre/lustre/include/obd.h| 1 - drivers/staging/lustre/lustr

[PATCH 38/73] staging/lustre/obdclass: Remove unused lprocfs_wr_evict_client

2015-09-27 Thread green
From: Oleg Drokin This is only used on the servers to evict clients. Signed-off-by: Oleg Drokin --- .../staging/lustre/lustre/include/lprocfs_status.h | 2 - .../staging/lustre/lustre/ptlrpc/lproc_ptlrpc.c| 49 -- 2 files changed, 51 deletions(-) diff --git a/drivers/

[PATCH 26/73] staging/lustre: use 64-bit times in another debug print

2015-09-27 Thread green
From: Arnd Bergmann 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-b

[PATCH 37/73] staging/lustre: remove CFS_TIME_T definition

2015-09-27 Thread green
From: Arnd Bergmann 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

[PATCH 28/73] staging/lustre: use 64-bit times for ptlrpc sec expiry

2015-09-27 Thread green
From: Arnd Bergmann 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 Signed-off-by: Oleg Drokin --- .../staging/l

[PATCH 58/73] staging/lustre/ldlm: Remove unused round_timeout function

2015-09-27 Thread green
From: Oleg Drokin It's not referenced anywhere anymore. Signed-off-by: Arnd Bergmann Signed-off-by: Oleg Drokin --- drivers/staging/lustre/lustre/ldlm/ldlm_lockd.c | 5 - 1 file changed, 5 deletions(-) diff --git a/drivers/staging/lustre/lustre/ldlm/ldlm_lockd.c b/drivers/staging/lustre

[PATCH 36/73] staging/lustre/ptlrpc: Remove ptlrpc_update_export_timer()

2015-09-27 Thread green
From: Oleg Drokin 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 ---

[PATCH 63/73] staging/lustre/ptlrpc: Drop unused client code

2015-09-27 Thread green
From: Oleg Drokin These client request/import functions are not used anywhere, so drop them. Signed-off-by: Arnd Bergmann Signed-off-by: Oleg Drokin --- drivers/staging/lustre/lustre/include/lustre_net.h | 13 --- drivers/staging/lustre/lustre/ptlrpc/client.c | 95 --

[PATCH 62/73] staging/lustre/obdclass: Drop unused code from obdo.c

2015-09-27 Thread green
From: Oleg Drokin These functions are not even referenced in any header files anymore. Signed-off-by: Arnd Bergmann Signed-off-by: Oleg Drokin --- drivers/staging/lustre/lustre/obdclass/obdo.c | 170 -- 1 file changed, 170 deletions(-) diff --git a/drivers/staging/lus

[PATCH 16/73] staging/lustre: use 64-bit timestamps for selftest

2015-09-27 Thread green
From: Arnd Bergmann 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 m

[PATCH 66/73] staging/lustre: remove lots of dead code

2015-09-27 Thread green
From: Oleg Drokin This is a large patch to remove all dead code from obdclass and ptlrpc, purely removing functions and declarations now, so despite the size should be easy enough to verify. Signed-off-by: Arnd Bergmann Signed-off-by: Oleg Drokin --- .../lustre/lustre/include/lustre/lustre_id

[PATCH 33/73] staging/lustre: remove wrappers for timer functions

2015-09-27 Thread green
From: Arnd Bergmann 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_arc

[PATCH 30/73] staging/lustre: use 64-bit times for request times

2015-09-27 Thread green
From: Arnd Bergmann 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

[PATCH 22/73] staging/lustre: use 64-bit time for ni_last_alive

2015-09-27 Thread green
From: Arnd Bergmann 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 Signed-off-by: Oleg Drokin --- drivers/staging/lustre/include/

[PATCH 29/73] staging/lustre: use 64-bit times for ptlrpc_sec

2015-09-27 Thread green
From: Arnd Bergmann 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 Signed-off-by: Oleg Drokin --- drivers/staging/lustre/lustre/i

[PATCH 23/73] staging/lustre: use 64-bit time for selftest

2015-09-27 Thread green
From: Arnd Bergmann 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 Signed-off-by: Oleg Drokin --- drivers/staging/lustre/l

[PATCH 24/73] staging/lustre: use 64-bit times in ptlrpc_enc_page_pool

2015-09-27 Thread green
From: Arnd Bergmann 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 Signed-off-by: Oleg Drokin --- drivers/staging/lust

[PATCH 25/73] staging/lustre: use 64-bit times in debug print

2015-09-27 Thread green
From: Arnd Bergmann 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 Signed-off-by: Oleg Drokin --- drivers/staging/lustre/lustre/libcfs/debug.c | 4 ++-- 1 file changed, 2 insertions(+),

[PATCH 27/73] staging/lustre: use 64-bit timestamps for mdc

2015-09-27 Thread green
From: Arnd Bergmann 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

[PATCH 57/73] staging/lustre: Remove unused lu_object functions.

2015-09-27 Thread green
From: Oleg Drokin Quite a bunch of them are only used on the server. lu_object_put_nocache, lu_object_invariant, lu_dev_del_linkage, lu_context_tags_update, lu_context_tags_clear, lu_session_tags_update, lu_session_tags_clear, lu_env_refill_by_tags, lu_printk_printer, lu_object_assign_fid, lu_obj

[PATCH 56/73] staging/lustre: Remove unused functions and definitions from cl_object

2015-09-27 Thread green
From: Oleg Drokin cl_object_header_fini, cl_object_has_locks, cl_attr2lvb, cl_page_list_own, cl_page_list_unmap, cl_2queue_assume, cl_io_print, cl_enqueue, also cleanup extern declarations in cl_object.h Signed-off-by: Arnd Bergmann Signed-off-by: Oleg Drokin --- drivers/staging/lustre/lustre

[PATCH 19/73] staging/lustre: use 64-bit time for adaptive timeout

2015-09-27 Thread green
From: Arnd Bergmann 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 Signed-off-by: Oleg Drokin --- drivers/staging/lustre/lustre/include/lustre_import.h | 6 +++--- dri

[PATCH 11/73] staging/lustre: use 'long' return type for cfs_duration_sec()

2015-09-27 Thread green
From: Arnd Bergmann 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

[PATCH 18/73] staging/lustre: use 64-bit time for debugfs output

2015-09-27 Thread green
From: Arnd Bergmann 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 Signed-off-by: Oleg Drokin --- .../staging/lustre/lustre/include/lustre_import.h | 4 +-- .../lustre/lustre/obdclass/l

[PATCH 13/73] staging/lustre: use 64-bit ibn_incarnation computation

2015-09-27 Thread green
From: Arnd Bergmann 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 Signed-off-by: Oleg Drokin --- drivers/staging/lustre/lnet/klnds/o2iblnd/o2iblnd.c | 7

[PATCH 10/73] staging/lustre: use 64-bit time LNetCtl()

2015-09-27 Thread green
From: Arnd Bergmann 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 Signed-off-by: Oleg Drok

[PATCH 12/73] staging/lustre: use jiffies_to_*() instead of cfs_duration_usec

2015-09-27 Thread green
From: Arnd Bergmann 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 doe

[PATCH 17/73] staging/lustre: use 64-bit time for pl_recalc

2015-09-27 Thread green
From: Arnd Bergmann 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 d

[PATCH 15/73] staging/lustre: use 64-bit computation in s2dhms()

2015-09-27 Thread green
From: Arnd Bergmann 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 Signed-off-by: Oleg Drokin --- drivers/s

[PATCH 09/73] staging/lustre: avoid unnecessary timeval conversion

2015-09-27 Thread green
From: Arnd Bergmann 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 conversi

[PATCH 00/73] Lustre y2038 time cleanups and unused code removal

2015-09-27 Thread green
From: Oleg Drokin This big set of patches started with Arnd Bergmann doing some y2038 proofing on the Lustre code and then it was noticed that some parts f the code are not really needed on the client so some of the unused functionality (both time related and not) piled on. I did some chopping o

[PATCH 04/73] staging/lustre: tracefile: document seconds overflow

2015-09-27 Thread green
From: Arnd Bergmann 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 unsi

[PATCH 02/73] staging/lustre: use 64-bit inode timestamps internally

2015-09-27 Thread green
From: Arnd Bergmann 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 se

[PATCH 05/73] staging/lustre: use 64-bit timestamps in debugfs output

2015-09-27 Thread green
From: Arnd Bergmann 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 Signed-off-by: Oleg Drokin --- drivers/staging/lustre/lustre/osc/lproc_osc.c | 16 1 file changed, 8 insertions(

[PATCH 08/73] staging/lustre: change rq_at_index type

2015-09-27 Thread green
From: Arnd Bergmann 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 Signed-off-by

[PATCH 03/73] staging/lustre: obd: remove unused data structures

2015-09-27 Thread green
From: Arnd Bergmann 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:

[PATCH 07/73] staging/lustre: use ktime_t for calculating elapsed time

2015-09-27 Thread green
From: Arnd Bergmann 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 Si

[PATCH 06/73] staging/lustre: use time64_t for l_last_activity

2015-09-27 Thread green
From: Arnd Bergmann 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 Bergman

[PATCH 01/73] staging/lustre: use jiffies for lp_last_query times

2015-09-27 Thread green
From: Arnd Bergmann 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 B

[PATCH v2] staging: rtl8723au: Fix resource leak

2015-09-27 Thread Mateusz Kulikowski
Firmware was not released properly if kmemdup fails. Addresses-Coverity-Id: 1269118 Signed-off-by: Mateusz Kulikowski --- drivers/staging/rtl8723au/hal/rtl8723a_hal_init.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/staging/rtl8723au/hal/rtl8723a_hal_init.c b

Re: [PATCH 1/2] Staging: iio: cdc: Prefer using the BIT macro

2015-09-27 Thread Shraddha Barke
On Sun, 27 Sep 2015, Jonathan Cameron wrote: On 26/09/15 18:14, Lars-Peter Clausen wrote: On 09/25/2015 07:23 PM, Shraddha Barke wrote: Replace bit shifting on 1 with the BIT(x) macro Signed-off-by: Shraddha Barke Acked-by: Lars-Peter Clausen This is a good little patch, so applied to

[PATCH] staging: rtl8723au: Fix resource leak

2015-09-27 Thread Mateusz Kulikowski
Firmware was not released properly if kmemdup fails. Addresses-Coverity-Id: 1269118 Signed-off-by: Mateusz Kulikowski --- drivers/staging/rtl8723au/hal/rtl8723a_hal_init.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/staging/rtl8723au/hal/rtl8723a_hal_init.c b/dri

Re: [PATCH] Removed extra spaces, and error from checkpatch.pl

2015-09-27 Thread Greg KH
On Sun, Sep 27, 2015 at 01:59:17PM +0530, Pinkesh Jain wrote: > There were many warnings and error given by checkpatch.pl and most of them > were > almost of the same type so i believed a single patch is enough to do the > cleanup. > > 1. Remove errors of the struct declaration (foo*bar to foo *b

[PATCH] drivers: staging: wilc1000: Replace message queue with standard Linux lists

2015-09-27 Thread Chandra S Gorentla
The message queue is replaced with standard Linux linked list. A check for return value of receive method is added. Signed-off-by: Chandra S Gorentla --- drivers/staging/wilc1000/host_interface.c | 7 +++- drivers/staging/wilc1000/wilc_msgqueue.c | 62 ++- drivers/

Re: [PATCH 2/2] Staging: iio: cdc: Remove unnecessary dev_info

2015-09-27 Thread Jonathan Cameron
On 26/09/15 18:14, Lars-Peter Clausen wrote: > On 09/25/2015 07:23 PM, Shraddha Barke wrote: >> Remove dev_info as the information can be obtained by other means >> >> Signed-off-by: Shraddha Barke > > Acked-by: Lars-Peter Clausen Applied, thanks Shraddha, Keep up the good work, these drivers h

Re: [PATCH 1/2] Staging: iio: cdc: Prefer using the BIT macro

2015-09-27 Thread Jonathan Cameron
On 26/09/15 18:14, Lars-Peter Clausen wrote: > On 09/25/2015 07:23 PM, Shraddha Barke wrote: >> Replace bit shifting on 1 with the BIT(x) macro >> >> Signed-off-by: Shraddha Barke > > Acked-by: Lars-Peter Clausen > This is a good little patch, so applied to the togreg branch of iio.git. This w

[PATCH v2] staging: sm750fb: replace twoToPowerOfx with shift operator

2015-09-27 Thread Mike Rapoport
The function twoToPowerOfx that iteratively calculates the power of 2 may be replaced with shift operator Signed-off-by: Mike Rapoport --- v2: - fix changelog spelling - break long line drivers/staging/sm750fb/ddk750_chip.c | 18 -- 1 file changed, 4 insertions(+), 14 deletions(

Confidential notice

2015-09-27 Thread Mr. Abdon Deguenon
Attn: This is a legal confidential text for public records search. My name is Abdon Deguenon,a personal attorney to a deceased who may relate to you (name withheld for security reason) who died with no Will or Next of Kin.My firm is seeking for the next of kin.He died with his family in an auto