Tracking bug for static code analysis fixes. (LU-2753)

[LU-2675] clang: code cleanups for sparse static analyzer Created: 24/Jan/13  Updated: 09/Sep/16  Resolved: 27/Jan/15

Status: Resolved
Project: Lustre
Component/s: None
Affects Version/s: Lustre 2.4.0
Fix Version/s: Lustre 2.7.0

Type: Technical task Priority: Minor
Reporter: John Hammond Assignee: John Hammond
Resolution: Fixed Votes: 0
Labels: None

Issue Links:
Related
is related to LU-871 clang: minor code cleanups Resolved
is related to LU-8599 Restore lshowmount utility Resolved
is related to LU-4962 oops in ll_intent_file_open() during ... Resolved
is related to LUDOC-349 remove documentation of obsolete load... Resolved
Epic: RoDC, cleanup
Rank (Obsolete): 6248

 Description   

Tracking for minor cleanups suggested by sparse checker.



 Comments   
Comment by John Hammond [ 24/Jan/13 ]

http://review.whamcloud.com/5166 make bitfield (un)signedness explicit

Comment by John Hammond [ 25/Jan/13 ]

http://review.whamcloud.com/5175 remove User Mode Linux specific code

Comment by John Hammond [ 25/Jan/13 ]

http://review.whamcloud.com/5177 remove unused mkdirdeep.c lltrace.h

Comment by John Hammond [ 25/Jan/13 ]

http://review.whamcloud.com/5178 static and extern corrections for libcfs

Comment by John Hammond [ 28/Jan/13 ]

http://review.whamcloud.com/5190 remove unused recov_thread.c and llog code

Comment by John Hammond [ 20/Feb/13 ]

5166: make bitfield (un)signedness explicit landed.
5175: remove User Mode Linux specific code landed.

Comment by John Hammond [ 04/Mar/13 ]

http://review.whamcloud.com/5580 echo: remove #if 0-ed out regions from echo_client.c

Comment by John Hammond [ 04/Mar/13 ]

http://review.whamcloud.com/5581 lov: remove some dead lov code

Comment by John Hammond [ 14/Jun/13 ]

http://review.whamcloud.com/6660 lvfs: cleanup lvfs.h and collateral

Comment by John Hammond [ 12/Jul/13 ]

http://review.whamcloud.com/6969 cleanup: define sparse annotations for libcfs

Comment by Jodi Levi (Inactive) [ 02/Jun/14 ]

Patches have landed to Master. If more work is needed, please reopen a new ticket.

Comment by Gerrit Updater [ 25/Nov/14 ]

John L. Hammond (john.hammond@intel.com) uploaded a new patch: http://review.whamcloud.com/12849
Subject: LU-2675 llite: remove lli_lvb
Project: fs/lustre-release
Branch: master
Current Patch Set: 1
Commit: 71221e7d27dfdab6ad7703d38a61b583349131af

Comment by Gerrit Updater [ 25/Nov/14 ]

John L. Hammond (john.hammond@intel.com) uploaded a new patch: http://review.whamcloud.com/12850
Subject: LU-2675 llite: remove some cl wrappers
Project: fs/lustre-release
Branch: master
Current Patch Set: 1
Commit: 08468ad376f32ce13e9d7f9d9ff33773df26a1f6

Comment by Gerrit Updater [ 25/Nov/14 ]

John L. Hammond (john.hammond@intel.com) uploaded a new patch: http://review.whamcloud.com/12851
Subject: LU-2675 llapi: find_param cleanup part II
Project: fs/lustre-release
Branch: master
Current Patch Set: 1
Commit: c4903fb9ed29e7533f2d4952dd914a227902dbf2

Comment by Gerrit Updater [ 01/Dec/14 ]

John L. Hammond (john.hammond@intel.com) uploaded a new patch: http://review.whamcloud.com/12893
Subject: LU-2675 mdc: remove mdc_sendpage()
Project: fs/lustre-release
Branch: master
Current Patch Set: 1
Commit: b37b334193fc18b43ea3b0689c5746da8171255e

Comment by Gerrit Updater [ 03/Dec/14 ]

John L. Hammond (john.hammond@intel.com) uploaded a new patch: http://review.whamcloud.com/12922
Subject: LU-2675 obd: remove destroy cookie handling
Project: fs/lustre-release
Branch: master
Current Patch Set: 1
Commit: bb3e63fd06dd9545326ba6ed773fe6734abe695d

Comment by Gerrit Updater [ 04/Dec/14 ]

Oleg Drokin (oleg.drokin@intel.com) merged in patch http://review.whamcloud.com/12113/
Subject: LU-2675 md: remove unused code from md_object.h
Project: fs/lustre-release
Branch: master
Current Patch Set:
Commit: e18a3a687ccc08fa3907f2687c0a3da30fd79958

Comment by Gerrit Updater [ 04/Dec/14 ]

Oleg Drokin (oleg.drokin@intel.com) merged in patch http://review.whamcloud.com/12115/
Subject: LU-2675 lmv: remove lmv_init_

{lock,unlock}

()
Project: fs/lustre-release
Branch: master
Current Patch Set:
Commit: 7c814c2971be916520bd552f44173b41140ebac6

Comment by Gerrit Updater [ 04/Dec/14 ]

Oleg Drokin (oleg.drokin@intel.com) merged in patch http://review.whamcloud.com/12117/
Subject: LU-2675 lnet: remove ulnds
Project: fs/lustre-release
Branch: master
Current Patch Set:
Commit: 86b8c3319b01e5ab03b1285012db1c7b18ddd908

Comment by Gerrit Updater [ 04/Dec/14 ]

Oleg Drokin (oleg.drokin@intel.com) merged in patch http://review.whamcloud.com/12231/
Subject: LU-2675 obd: remove client_obd_lock_t
Project: fs/lustre-release
Branch: master
Current Patch Set:
Commit: 79c00733d0b4f8662b630fa2c6c1d475eb7556d2

Comment by Gerrit Updater [ 04/Dec/14 ]

John L. Hammond (john.hammond@intel.com) uploaded a new patch: http://review.whamcloud.com/12932
Subject: LU-2675 lnet: remove lnet/include/lnet/linux/
Project: fs/lustre-release
Branch: master
Current Patch Set: 1
Commit: daa878f5b16c45809609534abec8035414a1d3dc

Comment by Isaac Huang (Inactive) [ 05/Dec/14 ]

Now that the lnet/ulnds code has been removed, the code under lnet/lnet that supports userspace LNDs should be removed as well. To find such code, just:

grep __KERNEL__ lnet/lnet/*.[ch]
Comment by John Hammond [ 05/Dec/14 ]

Isaac,

Yes. I will push a patch eventually to do this. I would like to sort out the headers a bit first. lib-types.h contains some structures and defines that are shared by kernel space and user space, and some that are kernel only. I could move the shared stuff to lnet/types.h, or to some other header, or to a new header. Once it is clear which headers are shared I will unifdef _KERNEL_ all the others along with the appropriate .c files.

Comment by Gerrit Updater [ 09/Dec/14 ]

Oleg Drokin (oleg.drokin@intel.com) merged in patch http://review.whamcloud.com/12849/
Subject: LU-2675 llite: remove lli_lvb
Project: fs/lustre-release
Branch: master
Current Patch Set:
Commit: 0c6776db8cce84fd623c76a18df93759f2fcaed4

Comment by Jodi Levi (Inactive) [ 09/Dec/14 ]

Patch landed to Master.
Please open a new specific ticket if there is any additional work needed.

Comment by Amir Shehata (Inactive) [ 17/Dec/14 ]

As part of this change we should ensure that we remove the_lnet.ln_eq_waitni and associated logic, since this is not used at all for the LNet Kernel code.

Comment by Isaac Huang (Inactive) [ 18/Dec/14 ]

Also, many Doxygen comments over lnet APIs (those whose names begin with LNet) include stuff that only applies to user space. Those can be removed as well.

Comment by Gerrit Updater [ 18/Dec/14 ]

Oleg Drokin (oleg.drokin@intel.com) merged in patch http://review.whamcloud.com/12851/
Subject: LU-2675 llapi: find_param cleanup part II
Project: fs/lustre-release
Branch: master
Current Patch Set:
Commit: 530763d717189fd57c48b352ba4d13a751a2ba64

Comment by Gerrit Updater [ 18/Dec/14 ]

Oleg Drokin (oleg.drokin@intel.com) merged in patch http://review.whamcloud.com/12893/
Subject: LU-2675 mdc: remove mdc_sendpage()
Project: fs/lustre-release
Branch: master
Current Patch Set:
Commit: 017c04a20bb9adc42faf0c6b8226e5109008ee80

Comment by Gerrit Updater [ 18/Dec/14 ]

John L. Hammond (john.hammond@intel.com) uploaded a new patch: http://review.whamcloud.com/13121
Subject: LU-2675 lnet: assume a kernel build
Project: fs/lustre-release
Branch: master
Current Patch Set: 1
Commit: 2b19d2d27cd6cbe5e791de40505ad55d0dc0d37a

Comment by Gerrit Updater [ 18/Dec/14 ]

John L. Hammond (john.hammond@intel.com) uploaded a new patch: http://review.whamcloud.com/13123
Subject: LU-2675 obd: remove linux/obd.h
Project: fs/lustre-release
Branch: master
Current Patch Set: 1
Commit: cac5222019f65561c3b9d1eb10e7e403faba3b32

Comment by Gerrit Updater [ 26/Dec/14 ]

Oleg Drokin (oleg.drokin@intel.com) merged in patch http://review.whamcloud.com/12850/
Subject: LU-2675 llite: remove some cl wrappers
Project: fs/lustre-release
Branch: master
Current Patch Set:
Commit: 1224f40d2e5be236b76b4013e4d926b77a56a3da

Comment by Gerrit Updater [ 26/Dec/14 ]

Oleg Drokin (oleg.drokin@intel.com) merged in patch http://review.whamcloud.com/12932/
Subject: LU-2675 lnet: remove lnet/include/lnet/linux/
Project: fs/lustre-release
Branch: master
Current Patch Set:
Commit: aab1d832130ee5c181cf7e0e5aa555244d150b00

Comment by Gerrit Updater [ 26/Dec/14 ]

Oleg Drokin (oleg.drokin@intel.com) merged in patch http://review.whamcloud.com/13123/
Subject: LU-2675 obd: remove linux/obd.h
Project: fs/lustre-release
Branch: master
Current Patch Set:
Commit: ff56dc60715dd40bfbf5acd7e46637a098eef52f

Comment by Gerrit Updater [ 29/Dec/14 ]

John L. Hammond (john.hammond@intel.com) uploaded a new patch: http://review.whamcloud.com/13196
Subject: LU-2675 build: remove obsolete Kernelenv files
Project: fs/lustre-release
Branch: master
Current Patch Set: 1
Commit: 74b124ccad08e9400da643fc46fda9d2e0b44020

Comment by Gerrit Updater [ 04/Jan/15 ]

Oleg Drokin (oleg.drokin@intel.com) merged in patch http://review.whamcloud.com/13196/
Subject: LU-2675 build: remove obsolete Kernelenv files
Project: fs/lustre-release
Branch: master
Current Patch Set:
Commit: 4a2c8c8db7b106f24cb0d44a8973ef2a6d3725c5

Comment by Gerrit Updater [ 07/Jan/15 ]

John L. Hammond (john.hammond@intel.com) uploaded a new patch: http://review.whamcloud.com/13271
Subject: LU-2675 lustre: remove lustre/include/linux/
Project: fs/lustre-release
Branch: master
Current Patch Set: 1
Commit: e131d84e8c00a640a4aa178567064604f08f3b07

Comment by Gerrit Updater [ 10/Jan/15 ]

Oleg Drokin (oleg.drokin@intel.com) merged in patch http://review.whamcloud.com/13271/
Subject: LU-2675 lustre: remove lustre/include/linux/
Project: fs/lustre-release
Branch: master
Current Patch Set:
Commit: bca975c7fa261ffb926e8a18d5869b886c65f447

Comment by Gerrit Updater [ 10/Jan/15 ]

James Simmons (uja.ornl@gmail.com) uploaded a new patch: http://review.whamcloud.com/13339
Subject: LU-2675 build: Fix build issue with lustre-core.m4
Project: fs/lustre-release
Branch: master
Current Patch Set: 1
Commit: 7a1871ba81eafe9f69e260d6cf36715911d715b7

Comment by Gerrit Updater [ 22/Jan/15 ]

Li Xi (pkuelelixi@gmail.com) uploaded a new patch: http://review.whamcloud.com/13495
Subject: LU-2675 lustre: remove lustre/include/linux for debian
Project: fs/lustre-release
Branch: master
Current Patch Set: 1
Commit: 1d42b88d14492a5cd45efd25d79b9750bd9e3e18

Comment by Gerrit Updater [ 27/Jan/15 ]

Oleg Drokin (oleg.drokin@intel.com) merged in patch http://review.whamcloud.com/13495/
Subject: LU-2675 lustre: remove lustre/include/linux for debian
Project: fs/lustre-release
Branch: master
Current Patch Set:
Commit: 47f51b79b0edf3869ab8dc1dc0e133ca1e9c4349

Comment by Jodi Levi (Inactive) [ 27/Jan/15 ]

Patches landed to Master.

Comment by Gerrit Updater [ 03/Feb/15 ]

Oleg Drokin (oleg.drokin@intel.com) merged in patch http://review.whamcloud.com/13121/
Subject: LU-2675 lnet: assume a kernel build
Project: fs/lustre-release
Branch: master
Current Patch Set:
Commit: faeb94fe81e4646b3121c263521d30e0e83fa71f

Comment by Gerrit Updater [ 09/Feb/15 ]

Isaac Huang (he.huang@intel.com) uploaded a new patch: http://review.whamcloud.com/13698
Subject: LU-2675 lnet: remove unnecessary goto
Project: fs/lustre-release
Branch: master
Current Patch Set: 1
Commit: 1cba6a5beedbdd4bc1c30a4d354d8e9e89516a1f

Comment by Gerrit Updater [ 31/Mar/15 ]

Oleg Drokin (oleg.drokin@intel.com) merged in patch http://review.whamcloud.com/13698/
Subject: LU-2675 lnet: remove unnecessary goto
Project: fs/lustre-release
Branch: master
Current Patch Set:
Commit: 015d4763eb41be60731aa62aac58b568c9fc2b16

Comment by Gerrit Updater [ 15/Dec/15 ]

Andreas Dilger (andreas.dilger@intel.com) uploaded a new patch: http://review.whamcloud.com/17593
Subject: LU-2675 utils: restore lshowmount utility
Project: fs/lustre-release
Branch: master
Current Patch Set: 1
Commit: 7a0ab07dfb55bf853bf2b0f22e75d845acbe209d

Generated at Sat Feb 10 01:27:14 UTC 2024 using Jira 9.4.14#940014-sha1:734e6822bbf0d45eff9af51f82432957f73aa32c.