• Arnd Bergmann's avatar
    ceph: fix symbol versioning for ceph_monc_do_statfs · a0f2b652
    Arnd Bergmann authored
    The genksyms helper in the kernel cannot parse a type definition
    like "typeof(((type *)0)->keyfld)" that is used in the DEFINE_RB_FUNCS
    helper, causing the following EXPORT_SYMBOL() statement to be ignored
    when computing the crcs, and triggering a warning about this:
    
    WARNING: "ceph_monc_do_statfs" [fs/ceph/ceph.ko] has no CRC
    
    To work around the problem, we can rewrite the type to reference
    an undefined 'extern' symbol instead of a NULL pointer. This is
    evidently ok for genksyms, and it no longer complains about the
    line when calling it with 'genksyms -w'.
    
    I've looked briefly into extending genksyms instead, but it seems
    really hard to do. Jan Beulich introduced basic support for 'typeof'
    a while ago in dc533240 ("genksyms: fix typeof() handling"),
    but that is not sufficient for the expression we have here.
    Signed-off-by: 's avatarArnd Bergmann <arnd@arndb.de>
    Fixes: fcd00b68 ("libceph: DEFINE_RB_FUNCS macro")
    Cc: Jan Beulich <jbeulich@suse.com>
    Cc: Michal Marek <mmarek@suse.cz>
    Signed-off-by: 's avatarIlya Dryomov <idryomov@gmail.com>
    a0f2b652
Name
Last commit
Last update
..
auth.h Loading commit data...
buffer.h Loading commit data...
ceph_debug.h Loading commit data...
ceph_features.h Loading commit data...
ceph_frag.h Loading commit data...
ceph_fs.h Loading commit data...
ceph_hash.h Loading commit data...
debugfs.h Loading commit data...
decode.h Loading commit data...
libceph.h Loading commit data...
mdsmap.h Loading commit data...
messenger.h Loading commit data...
mon_client.h Loading commit data...
msgpool.h Loading commit data...
msgr.h Loading commit data...
osd_client.h Loading commit data...
osdmap.h Loading commit data...
pagelist.h Loading commit data...
rados.h Loading commit data...
string_table.h Loading commit data...
types.h Loading commit data...