Warning cleanups for kernel module build
authorMarc Dionne <marc.c.dionne@gmail.com>
Sat, 18 Jul 2009 04:15:01 +0000 (00:15 -0400)
committerRuss Allbery <rra@stanford.edu>
Sun, 19 Jul 2009 00:36:40 +0000 (17:36 -0700)
commitb4783c245d233a0883a29241351869d616a9f6a4
tree9f328c49d4841a28dec367c35b5c273f15a9dd9e
parentf6e46babd8e3a0d51d31ae381748516330f5b84d
Warning cleanups for kernel module build

Take care of various warnings (about 70) during a libafs build.
A non-exhaustive list of changes:
- Unused variables, in some cases to be IFDEFed along with the code
that uses it
- Cast some const char * to char * for the afs_* functions
- Move afs_UFSCacheFetchProc and afs_UFSCacheStoreProc declarations
to afs_prototypes.h
- Include afsutil.h in error_msg.c to get strlcpy
- Change type of argument 3 in export_sysname, to match what the callers
are actually doing
- Rework a few lines in pthread_glock.c to avoid a warning about unused
value
- Fix a warning in rpc_scan.c that really looks like a bug (but
probably harmless in our case)

Reviewed-on: http://gerrit.openafs.org/http://gerrit.openafs.org/151
Reviewed-by: Russ Allbery <rra@stanford.edu>
Tested-by: Russ Allbery <rra@stanford.edu>
18 files changed:
src/afs/LINUX/osi_file.c
src/afs/LINUX/osi_misc.c
src/afs/LINUX/osi_vnodeops.c
src/afs/afs_dcache.c
src/afs/afs_osi_pag.c
src/afs/afs_pag_call.c
src/afs/afs_pag_cred.c
src/afs/afs_prototypes.h
src/afs/afs_vcache.c
src/afs/afs_warn.c
src/afs/exporter.h
src/comerr/error_msg.c
src/des/read_pssword.c
src/dir/dir.c
src/rx/LINUX/rx_knet.c
src/rxgen/rpc_parse.c
src/rxgen/rpc_scan.c
src/util/pthread_glock.c