1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17
#ifndef CEPH_CRUSH_TYPES_H #define CEPH_CRUSH_TYPES_H #ifdef KERNEL # define free(x) kfree(x) #else # include <stdlib.h> #endif #include <linux/types.h> /* just for int types */ #ifndef BUG_ON # define BUG_ON(x) ceph_assert(!(x)) #endif #endif