1
0
Fork 0
alistair23-linux/include/linux/ceph
Arnd Bergmann a0f2b65275 ceph: fix symbol versioning for ceph_monc_do_statfs
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 dc53324060 ("genksyms: fix typeof() handling"),
but that is not sufficient for the expression we have here.

Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Fixes: fcd00b68bb ("libceph: DEFINE_RB_FUNCS macro")
Cc: Jan Beulich <jbeulich@suse.com>
Cc: Michal Marek <mmarek@suse.cz>
Signed-off-by: Ilya Dryomov <idryomov@gmail.com>
2016-07-28 15:32:53 +02:00
..
auth.h libceph: make authorizer destruction independent of ceph_auth_client 2016-04-25 20:54:13 +02:00
buffer.h
ceph_debug.h
ceph_features.h libceph: revamp subs code, switch to SUBSCRIBE2 protocol 2016-03-25 18:51:38 +01:00
ceph_frag.h ceph: make logical calculation functions return bool 2016-05-26 01:15:39 +02:00
ceph_fs.h libceph: fsmap.user subscription support 2016-07-28 03:00:40 +02:00
ceph_hash.h
debugfs.h
decode.h libceph: add start en/decoding block helpers 2016-07-28 02:55:36 +02:00
libceph.h ceph: fix symbol versioning for ceph_monc_do_statfs 2016-07-28 15:32:53 +02:00
mdsmap.h
messenger.h
mon_client.h libceph: fsmap.user subscription support 2016-07-28 03:00:40 +02:00
msgpool.h libceph: fix some missing includes 2016-07-28 02:55:35 +02:00
msgr.h
osd_client.h libceph: fix some missing includes 2016-07-28 02:55:35 +02:00
osdmap.h libceph: rados pool namespace support 2016-07-28 02:55:37 +02:00
pagelist.h
rados.h libceph: support for sending notifies 2016-05-26 01:15:28 +02:00
string_table.h libceph: introduce reference counted string 2016-07-28 02:55:37 +02:00
types.h