#include <linux/compiler.h>
#include <linux/kernel.h>
#include <linux/fs.h>
#include <linux/pagemap.h>
#include <linux/skbuff.h>
#include <linux/rxrpc.h>
#include <linux/key.h>
#include <linux/workqueue.h>
#include <linux/sched.h>
#include <linux/fscache.h>
#include <linux/backing-dev.h>
#include "afs.h"
#include "afs_vl.h"
#define AFS_CELL_MAX_ADDRS 15
struct pagevec;
struct afs_call;
typedef enum {
AFS_VL_NEW,
AFS_VL_CREATING,
AFS_VL_VALID,
AFS_VL_NO_VOLUME,
AFS_VL_UPDATING,
AFS_VL_VOLUME_DELETED,
AFS_VL_UNCERTAIN,
} __attribute__((packed)) afs_vlocation_state_t;
struct afs_mount_params {
bool rwpath;
bool force;
bool autocell;
afs_voltype_t type;
int volnamesz;
const char *volname;
struct afs_cell *cell;
struct afs_volume *volume;
struct key *key;
};
struct afs_wait_mode {
void (*rx_wakeup)(struct afs_call *call);
int (*wait)(struct afs_call *call);
void (*async_complete)(void *reply, int error);
};
extern const struct afs_wait_mode afs_sync_call;
extern const struct afs_wait_mode afs_async_call;
struct afs_call {
const struct afs_call_type *type;
const struct afs_wait_mode *wait_mode;
wait_queue_head_t waitq;
struct work_struct async_work;
struct work_struct work;
struct sk_buff_head rx_queue;
struct rxrpc_call *rxcall;
struct key *key;
struct afs_server *server;
void *request;
struct address_space *mapping;
struct afs_writeback *wb;
void *buffer;
void *reply;
void *reply2;
void *reply3;
void *reply4;
pgoff_t first;
pgoff_t last;
enum {
AFS_CALL_REQUESTING,
AFS_CALL_AWAIT_REPLY,
AFS_CALL_AWAIT_OP_ID,
AFS_CALL_AWAIT_REQUEST,
AFS_CALL_REPLYING,
AFS_CALL_AWAIT_ACK,
AFS_CALL_COMPLETE,
AFS_CALL_BUSY,
AFS_CALL_ABORTED,
AFS_CALL_ERROR,
} state;
int error;
unsigned request_size;
unsigned reply_max;
unsigned reply_size;
unsigned first_offset;
unsigned last_to;
unsigned short offset;
unsigned char unmarshall;
bool incoming;
bool send_pages;
u16 service_id;
__be16 port;
__be32 operation_ID;
u32 count;
__be32 tmp;
afs_dataversion_t store_version;
};
struct afs_call_type {
const char *name;
int (*deliver)(struct afs_call *call, struct sk_buff *skb,
bool last);
int (*abort_to_error)(u32 abort_code);
void (*destructor)(struct afs_call *call);
};
struct afs_writeback {
struct list_head link;
struct work_struct writer;
struct afs_vnode *vnode;
struct key *key;
wait_queue_head_t waitq;
pgoff_t first;
pgoff_t point;
pgoff_t last;
unsigned offset_first;
unsigned to_last;
int num_conflicts;
int usage;
bool conflicts;
enum {
AFS_WBACK_SYNCING,
AFS_WBACK_PENDING,
AFS_WBACK_CONFLICTING,
AFS_WBACK_WRITING,
AFS_WBACK_COMPLETE
} state __attribute__((packed));
};
struct afs_super_info {
struct afs_volume *volume;
char rwparent;
};
static inline struct afs_super_info *AFS_FS_S(struct super_block *sb)
{
return sb->s_fs_info;
}
extern struct file_system_type afs_fs_type;
struct afs_cache_cell {
char name[AFS_MAXCELLNAME];
struct in_addr vl_servers[15];
};
struct afs_cell {
atomic_t usage;
struct list_head link;
struct key *anonymous_key;
struct list_head proc_link;
struct proc_dir_entry *proc_dir;
#ifdef CONFIG_AFS_FSCACHE
struct fscache_cookie *cache;
#endif
rwlock_t servers_lock;
struct list_head servers;
struct rw_semaphore vl_sem;
struct list_head vl_list;
spinlock_t vl_lock;
unsigned short vl_naddrs;
unsigned short vl_curr_svix;
struct in_addr vl_addrs[AFS_CELL_MAX_ADDRS];
char name[0];
};
struct afs_cache_vlocation {
uint8_t name[AFS_MAXVOLNAME + 1];
uint8_t nservers;
uint8_t vidmask;
uint8_t srvtmask[8];
#define AFS_VOL_VTM_RW 0x01
#define AFS_VOL_VTM_RO 0x02
#define AFS_VOL_VTM_BAK 0x04
afs_volid_t vid[3];
struct in_addr servers[8];
time_t rtime;
};
struct afs_cache_vhash {
afs_voltype_t vtype;
uint8_t hash_bucket;
} __attribute__((packed));
struct afs_vlocation {
atomic_t usage;
time_t time_of_death;
struct list_head link;
struct list_head grave;
struct list_head update;
struct afs_cell *cell;
#ifdef CONFIG_AFS_FSCACHE
struct fscache_cookie *cache;
#endif
struct afs_cache_vlocation vldb;
struct afs_volume *vols[3];
wait_queue_head_t waitq;
time_t update_at;
spinlock_t lock;
afs_vlocation_state_t state;
unsigned short upd_rej_cnt;
unsigned short upd_busy_cnt;
bool valid;
};
struct afs_server {
atomic_t usage;
time_t time_of_death;
struct in_addr addr;
struct afs_cell *cell;
struct list_head link;
struct list_head grave;
struct rb_node master_rb;
struct rw_semaphore sem;
struct rb_root fs_vnodes;
unsigned long fs_act_jif;
unsigned long fs_dead_jif;
spinlock_t fs_lock;
int fs_state;
struct rb_root cb_promises;
struct delayed_work cb_updater;
struct delayed_work cb_break_work;
wait_queue_head_t cb_break_waitq;
spinlock_t cb_lock;
struct afs_callback cb_break[64];
atomic_t cb_break_n;
u8 cb_break_head;
u8 cb_break_tail;
};
struct afs_volume {
atomic_t usage;
struct afs_cell *cell;
struct afs_vlocation *vlocation;
#ifdef CONFIG_AFS_FSCACHE
struct fscache_cookie *cache;
#endif
afs_volid_t vid;
afs_voltype_t type;
char type_force;
unsigned short nservers;
unsigned short rjservers;
struct afs_server *servers[8];
struct rw_semaphore server_sem;
struct backing_dev_info bdi;
};
struct afs_cache_vnode {
afs_vnodeid_t vnode_id;
unsigned vnode_unique;
afs_dataversion_t data_version;
};
struct afs_vnode {
struct inode vfs_inode;
struct afs_volume *volume;
struct afs_server *server;
struct afs_fid fid;
struct afs_file_status status;
#ifdef CONFIG_AFS_FSCACHE
struct fscache_cookie *cache;
#endif
struct afs_permits *permits;
struct mutex permits_lock;
struct mutex validate_lock;
wait_queue_head_t update_waitq;
int update_cnt;
spinlock_t writeback_lock;
spinlock_t lock;
unsigned long flags;
#define AFS_VNODE_CB_BROKEN 0
#define AFS_VNODE_UNSET 1
#define AFS_VNODE_MODIFIED 2
#define AFS_VNODE_ZAP_DATA 3
#define AFS_VNODE_DELETED 4
#define AFS_VNODE_MOUNTPOINT 5
#define AFS_VNODE_LOCKING 6
#define AFS_VNODE_READLOCKED 7
#define AFS_VNODE_WRITELOCKED 8
#define AFS_VNODE_UNLOCKING 9
#define AFS_VNODE_AUTOCELL 10
#define AFS_VNODE_PSEUDODIR 11
long acl_order;
struct list_head writebacks;
struct list_head pending_locks;
struct list_head granted_locks;
struct delayed_work lock_work;
struct key *unlock_key;
struct rb_node server_rb;
struct rb_node cb_promise;
struct work_struct cb_broken_work;
time_t cb_expires;
time_t cb_expires_at;
unsigned cb_version;
unsigned cb_expiry;
afs_callback_type_t cb_type;
bool cb_promised;
};
struct afs_permit {
struct key *key;
afs_access_t access_mask;
};
struct afs_permits {
struct rcu_head rcu;
int count;
struct afs_permit permits[0];
};
struct afs_interface {
struct in_addr address;
struct in_addr netmask;
unsigned mtu;
};
struct afs_uuid {
u32 time_low;
u16 time_mid;
u16 time_hi_and_version;
#define AFS_UUID_TO_UNIX_TIME 0x01b21dd213814000ULL
#define AFS_UUID_TIMEHI_MASK 0x0fff
#define AFS_UUID_VERSION_TIME 0x1000
#define AFS_UUID_VERSION_NAME 0x3000
#define AFS_UUID_VERSION_RANDOM 0x4000
u8 clock_seq_hi_and_reserved;
#define AFS_UUID_CLOCKHI_MASK 0x3f
#define AFS_UUID_VARIANT_STD 0x80
u8 clock_seq_low;
u8 node[6];
};
#ifdef CONFIG_AFS_FSCACHE
extern struct fscache_netfs afs_cache_netfs;
extern struct fscache_cookie_def afs_cell_cache_index_def;
extern struct fscache_cookie_def afs_vlocation_cache_index_def;
extern struct fscache_cookie_def afs_volume_cache_index_def;
extern struct fscache_cookie_def afs_vnode_cache_index_def;
#else
#define afs_cell_cache_index_def (*(struct fscache_cookie_def *) NULL)
#define afs_vlocation_cache_index_def (*(struct fscache_cookie_def *) NULL)
#define afs_volume_cache_index_def (*(struct fscache_cookie_def *) NULL)
#define afs_vnode_cache_index_def (*(struct fscache_cookie_def *) NULL)
#endif
extern void afs_init_callback_state(struct afs_server *);
extern void afs_broken_callback_work(struct work_struct *);
extern void afs_break_callbacks(struct afs_server *, size_t,
struct afs_callback[]);
extern void afs_discard_callback_on_delete(struct afs_vnode *);
extern void afs_give_up_callback(struct afs_vnode *);
extern void afs_dispatch_give_up_callbacks(struct work_struct *);
extern void afs_flush_callback_breaks(struct afs_server *);
extern int __init afs_callback_update_init(void);
extern void afs_callback_update_kill(void);
extern struct rw_semaphore afs_proc_cells_sem;
extern struct list_head afs_proc_cells;
#define afs_get_cell(C) do { atomic_inc(&(C)->usage); } while(0)
extern int afs_cell_init(char *);
extern struct afs_cell *afs_cell_create(const char *, unsigned, char *, bool);
extern struct afs_cell *afs_cell_lookup(const char *, unsigned, bool);
extern struct afs_cell *afs_grab_cell(struct afs_cell *);
extern void afs_put_cell(struct afs_cell *);
extern void afs_cell_purge(void);
extern bool afs_cm_incoming_call(struct afs_call *);
extern const struct inode_operations afs_dir_inode_operations;
extern const struct dentry_operations afs_fs_dentry_operations;
extern const struct file_operations afs_dir_file_operations;
extern const struct address_space_operations afs_fs_aops;
extern const struct inode_operations afs_file_inode_operations;
extern const struct file_operations afs_file_operations;
extern int afs_open(struct inode *, struct file *);
extern int afs_release(struct inode *, struct file *);
extern int afs_page_filler(void *, struct page *);
extern void __exit afs_kill_lock_manager(void);
extern void afs_lock_work(struct work_struct *);
extern void afs_lock_may_be_available(struct afs_vnode *);
extern int afs_lock(struct file *, int, struct file_lock *);
extern int afs_flock(struct file *, int, struct file_lock *);
extern int afs_fs_fetch_file_status(struct afs_server *, struct key *,
struct afs_vnode *, struct afs_volsync *,
const struct afs_wait_mode *);
extern int afs_fs_give_up_callbacks(struct afs_server *,
const struct afs_wait_mode *);
extern int afs_fs_fetch_data(struct afs_server *, struct key *,
struct afs_vnode *, off_t, size_t, struct page *,
const struct afs_wait_mode *);
extern int afs_fs_create(struct afs_server *, struct key *,
struct afs_vnode *, const char *, umode_t,
struct afs_fid *, struct afs_file_status *,
struct afs_callback *,
const struct afs_wait_mode *);
extern int afs_fs_remove(struct afs_server *, struct key *,
struct afs_vnode *, const char *, bool,
const struct afs_wait_mode *);
extern int afs_fs_link(struct afs_server *, struct key *, struct afs_vnode *,
struct afs_vnode *, const char *,
const struct afs_wait_mode *);
extern int afs_fs_symlink(struct afs_server *, struct key *,
struct afs_vnode *, const char *, const char *,
struct afs_fid *, struct afs_file_status *,
const struct afs_wait_mode *);
extern int afs_fs_rename(struct afs_server *, struct key *,
struct afs_vnode *, const char *,
struct afs_vnode *, const char *,
const struct afs_wait_mode *);
extern int afs_fs_store_data(struct afs_server *, struct afs_writeback *,
pgoff_t, pgoff_t, unsigned, unsigned,
const struct afs_wait_mode *);
extern int afs_fs_setattr(struct afs_server *, struct key *,
struct afs_vnode *, struct iattr *,
const struct afs_wait_mode *);
extern int afs_fs_get_volume_status(struct afs_server *, struct key *,
struct afs_vnode *,
struct afs_volume_status *,
const struct afs_wait_mode *);
extern int afs_fs_set_lock(struct afs_server *, struct key *,
struct afs_vnode *, afs_lock_type_t,
const struct afs_wait_mode *);
extern int afs_fs_extend_lock(struct afs_server *, struct key *,
struct afs_vnode *,
const struct afs_wait_mode *);
extern int afs_fs_release_lock(struct afs_server *, struct key *,
struct afs_vnode *,
const struct afs_wait_mode *);
extern struct inode *afs_iget_autocell(struct inode *, const char *, int,
struct key *);
extern struct inode *afs_iget(struct super_block *, struct key *,
struct afs_fid *, struct afs_file_status *,
struct afs_callback *);
extern void afs_zap_data(struct afs_vnode *);
extern int afs_validate(struct afs_vnode *, struct key *);
extern int afs_getattr(struct vfsmount *, struct dentry *, struct kstat *);
extern int afs_setattr(struct dentry *, struct iattr *);
extern void afs_evict_inode(struct inode *);
extern int afs_drop_inode(struct inode *);
extern struct workqueue_struct *afs_wq;
extern struct afs_uuid afs_uuid;
extern int afs_abort_to_error(u32);
extern const struct inode_operations afs_mntpt_inode_operations;
extern const struct inode_operations afs_autocell_inode_operations;
extern const struct file_operations afs_mntpt_file_operations;
extern struct vfsmount *afs_d_automount(struct path *);
extern int afs_mntpt_check_symlink(struct afs_vnode *, struct key *);
extern void afs_mntpt_kill_timer(void);
extern int afs_proc_init(void);
extern void afs_proc_cleanup(void);
extern int afs_proc_cell_setup(struct afs_cell *);
extern void afs_proc_cell_remove(struct afs_cell *);
extern int afs_open_socket(void);
extern void afs_close_socket(void);
extern int afs_make_call(struct in_addr *, struct afs_call *, gfp_t,
const struct afs_wait_mode *);
extern struct afs_call *afs_alloc_flat_call(const struct afs_call_type *,
size_t, size_t);
extern void afs_flat_call_destructor(struct afs_call *);
extern void afs_transfer_reply(struct afs_call *, struct sk_buff *);
extern void afs_send_empty_reply(struct afs_call *);
extern void afs_send_simple_reply(struct afs_call *, const void *, size_t);
extern int afs_extract_data(struct afs_call *, struct sk_buff *, bool, void *,
size_t);
extern void afs_clear_permits(struct afs_vnode *);
extern void afs_cache_permit(struct afs_vnode *, struct key *, long);
extern void afs_zap_permits(struct rcu_head *);
extern struct key *afs_request_key(struct afs_cell *);
extern int afs_permission(struct inode *, int, unsigned int);
extern spinlock_t afs_server_peer_lock;
#define afs_get_server(S) \
do { \
_debug("GET SERVER %d", atomic_read(&(S)->usage)); \
atomic_inc(&(S)->usage); \
} while(0)
extern struct afs_server *afs_lookup_server(struct afs_cell *,
const struct in_addr *);
extern struct afs_server *afs_find_server(const struct in_addr *);
extern void afs_put_server(struct afs_server *);
extern void __exit afs_purge_servers(void);
extern int afs_fs_init(void);
extern void afs_fs_exit(void);
extern int afs_get_ipv4_interfaces(struct afs_interface *, size_t, bool);
extern int afs_get_MAC_address(u8 *, size_t);
extern int afs_vl_get_entry_by_name(struct in_addr *, struct key *,
const char *, struct afs_cache_vlocation *,
const struct afs_wait_mode *);
extern int afs_vl_get_entry_by_id(struct in_addr *, struct key *,
afs_volid_t, afs_voltype_t,
struct afs_cache_vlocation *,
const struct afs_wait_mode *);
#define afs_get_vlocation(V) do { atomic_inc(&(V)->usage); } while(0)
extern int __init afs_vlocation_update_init(void);
extern struct afs_vlocation *afs_vlocation_lookup(struct afs_cell *,
struct key *,
const char *, size_t);
extern void afs_put_vlocation(struct afs_vlocation *);
extern void afs_vlocation_purge(void);
static inline struct afs_vnode *AFS_FS_I(struct inode *inode)
{
return container_of(inode, struct afs_vnode, vfs_inode);
}
static inline struct inode *AFS_VNODE_TO_I(struct afs_vnode *vnode)
{
return &vnode->vfs_inode;
}
extern void afs_vnode_finalise_status_update(struct afs_vnode *,
struct afs_server *);
extern int afs_vnode_fetch_status(struct afs_vnode *, struct afs_vnode *,
struct key *);
extern int afs_vnode_fetch_data(struct afs_vnode *, struct key *,
off_t, size_t, struct page *);
extern int afs_vnode_create(struct afs_vnode *, struct key *, const char *,
umode_t, struct afs_fid *, struct afs_file_status *,
struct afs_callback *, struct afs_server **);
extern int afs_vnode_remove(struct afs_vnode *, struct key *, const char *,
bool);
extern int afs_vnode_link(struct afs_vnode *, struct afs_vnode *, struct key *,
const char *);
extern int afs_vnode_symlink(struct afs_vnode *, struct key *, const char *,
const char *, struct afs_fid *,
struct afs_file_status *, struct afs_server **);
extern int afs_vnode_rename(struct afs_vnode *, struct afs_vnode *,
struct key *, const char *, const char *);
extern int afs_vnode_store_data(struct afs_writeback *, pgoff_t, pgoff_t,
unsigned, unsigned);
extern int afs_vnode_setattr(struct afs_vnode *, struct key *, struct iattr *);
extern int afs_vnode_get_volume_status(struct afs_vnode *, struct key *,
struct afs_volume_status *);
extern int afs_vnode_set_lock(struct afs_vnode *, struct key *,
afs_lock_type_t);
extern int afs_vnode_extend_lock(struct afs_vnode *, struct key *);
extern int afs_vnode_release_lock(struct afs_vnode *, struct key *);
#define afs_get_volume(V) do { atomic_inc(&(V)->usage); } while(0)
extern void afs_put_volume(struct afs_volume *);
extern struct afs_volume *afs_volume_lookup(struct afs_mount_params *);
extern struct afs_server *afs_volume_pick_fileserver(struct afs_vnode *);
extern int afs_volume_release_fileserver(struct afs_vnode *,
struct afs_server *, int);
extern int afs_set_page_dirty(struct page *);
extern void afs_put_writeback(struct afs_writeback *);
extern int afs_write_begin(struct file *file, struct address_space *mapping,
loff_t pos, unsigned len, unsigned flags,
struct page **pagep, void **fsdata);
extern int afs_write_end(struct file *file, struct address_space *mapping,
loff_t pos, unsigned len, unsigned copied,
struct page *page, void *fsdata);
extern int afs_writepage(struct page *, struct writeback_control *);
extern int afs_writepages(struct address_space *, struct writeback_control *);
extern void afs_pages_written_back(struct afs_vnode *, struct afs_call *);
extern ssize_t afs_file_write(struct kiocb *, const struct iovec *,
unsigned long, loff_t);
extern int afs_writeback_all(struct afs_vnode *);
extern int afs_fsync(struct file *, int);
extern unsigned afs_debug;
#define dbgprintk(FMT,...) \
printk("[%-6.6s] "FMT"\n", current->comm ,##__VA_ARGS__)
#define kenter(FMT,...) dbgprintk("==> %s("FMT")",__func__ ,##__VA_ARGS__)
#define kleave(FMT,...) dbgprintk("<== %s()"FMT"",__func__ ,##__VA_ARGS__)
#define kdebug(FMT,...) dbgprintk(" "FMT ,##__VA_ARGS__)
#if defined(__KDEBUG)
#define _enter(FMT,...) kenter(FMT,##__VA_ARGS__)
#define _leave(FMT,...) kleave(FMT,##__VA_ARGS__)
#define _debug(FMT,...) kdebug(FMT,##__VA_ARGS__)
#elif defined(CONFIG_AFS_DEBUG)
#define AFS_DEBUG_KENTER 0x01
#define AFS_DEBUG_KLEAVE 0x02
#define AFS_DEBUG_KDEBUG 0x04
#define _enter(FMT,...) \
do { \
if (unlikely(afs_debug & AFS_DEBUG_KENTER)) \
kenter(FMT,##__VA_ARGS__); \
} while (0)
#define _leave(FMT,...) \
do { \
if (unlikely(afs_debug & AFS_DEBUG_KLEAVE)) \
kleave(FMT,##__VA_ARGS__); \
} while (0)
#define _debug(FMT,...) \
do { \
if (unlikely(afs_debug & AFS_DEBUG_KDEBUG)) \
kdebug(FMT,##__VA_ARGS__); \
} while (0)
#else
#define _enter(FMT,...) no_printk("==> %s("FMT")",__func__ ,##__VA_ARGS__)
#define _leave(FMT,...) no_printk("<== %s()"FMT"",__func__ ,##__VA_ARGS__)
#define _debug(FMT,...) no_printk(" "FMT ,##__VA_ARGS__)
#endif
#if 1
#define ASSERT(X) \
do { \
if (unlikely(!(X))) { \
printk(KERN_ERR "\n"); \
printk(KERN_ERR "AFS: Assertion failed\n"); \
BUG(); \
} \
} while(0)
#define ASSERTCMP(X, OP, Y) \
do { \
if (unlikely(!((X) OP (Y)))) { \
printk(KERN_ERR "\n"); \
printk(KERN_ERR "AFS: Assertion failed\n"); \
printk(KERN_ERR "%lu " #OP " %lu is false\n", \
(unsigned long)(X), (unsigned long)(Y)); \
printk(KERN_ERR "0x%lx " #OP " 0x%lx is false\n", \
(unsigned long)(X), (unsigned long)(Y)); \
BUG(); \
} \
} while(0)
#define ASSERTRANGE(L, OP1, N, OP2, H) \
do { \
if (unlikely(!((L) OP1 (N)) || !((N) OP2 (H)))) { \
printk(KERN_ERR "\n"); \
printk(KERN_ERR "AFS: Assertion failed\n"); \
printk(KERN_ERR "%lu "#OP1" %lu "#OP2" %lu is false\n", \
(unsigned long)(L), (unsigned long)(N), \
(unsigned long)(H)); \
printk(KERN_ERR "0x%lx "#OP1" 0x%lx "#OP2" 0x%lx is false\n", \
(unsigned long)(L), (unsigned long)(N), \
(unsigned long)(H)); \
BUG(); \
} \
} while(0)
#define ASSERTIF(C, X) \
do { \
if (unlikely((C) && !(X))) { \
printk(KERN_ERR "\n"); \
printk(KERN_ERR "AFS: Assertion failed\n"); \
BUG(); \
} \
} while(0)
#define ASSERTIFCMP(C, X, OP, Y) \
do { \
if (unlikely((C) && !((X) OP (Y)))) { \
printk(KERN_ERR "\n"); \
printk(KERN_ERR "AFS: Assertion failed\n"); \
printk(KERN_ERR "%lu " #OP " %lu is false\n", \
(unsigned long)(X), (unsigned long)(Y)); \
printk(KERN_ERR "0x%lx " #OP " 0x%lx is false\n", \
(unsigned long)(X), (unsigned long)(Y)); \
BUG(); \
} \
} while(0)
#else
#define ASSERT(X) \
do { \
} while(0)
#define ASSERTCMP(X, OP, Y) \
do { \
} while(0)
#define ASSERTRANGE(L, OP1, N, OP2, H) \
do { \
} while(0)
#define ASSERTIF(C, X) \
do { \
} while(0)
#define ASSERTIFCMP(C, X, OP, Y) \
do { \
} while(0)
#endif