Kernel warnings in CEPH
Building kernel with CEPH and warnings enabled shows several missing prototypes and unused variables. Please fix.
net/ceph/ceph_common.c:62:13: warning: no previous prototype for ‘ceph_file_part’ [-Wmissing-prototypes] net/ceph/messenger.c: In function ‘write_partial_message_data’:net/ceph/messenger.c:1580:8: warning: variable ‘need_crc’ set but not used [-Wunused-but-set-variable] net/ceph/mon_client.c: In function ‘ceph_monmap_decode’:net/ceph/mon_client.c:46:6: warning: variable ‘version’ set but not used [-Wunused-but-set-variable] net/ceph/auth_x.c: In function ‘process_one_ticket’:net/ceph/auth_x.c:146:19: warning: variable ‘blob_struct_v’ set but not used [-Wunused-but-set-variable]
Stephen, Is it the latest source code of Ceph ?
Quoted 11 lines · Stephen Hemminger
Building kernel with CEPH and warnings enabled shows several missing prototypes and unused variables. Please fix.
net/ceph/ceph_common.c:62:13: warning: no previous prototype for ‘ceph_file_part’ [-Wmissing-prototypes]net/ceph/messenger.c: In function ‘write_partial_message_data’:net/ceph/messenger.c:1580:8: warning: variable ‘need_crc’ set but not used [-Wunused-but-set-variable]net/ceph/mon_client.c: In function ‘ceph_monmap_decode’:net/ceph/mon_client.c:46:6: warning: variable ‘version’ set but not used [-Wunused-but-set-variable]net/ceph/auth_x.c: In function ‘process_one_ticket’:net/ceph/auth_x.c:146:19: warning: variable ‘blob_struct_v’ set but not used [-Wunused-but-set-variable]
I'll fix these up.
Thanks,
Ilya