Skip to contentSkip to conversation

Kernel warnings in CEPH

DISCUSSION Stephen Hemminger 3 participants 3 messages May 19, 2017

lore
Share & tools
lore
#0 lore raw

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]

#1 lore raw

Stephen, Is it the latest source code of Ceph ?

#2 lore raw
In reply to Stephen Hemminger
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