Fixes some little warnings about "Defined but not used ..." by #ifdef'ing
things
Signed-off-by: Paolo 'Blaisorblade' Giarrusso <blaisorblade_spam@yahoo.it>
Cc: Jeff Dike <jdike@addtoit.com>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
#include <sys/time.h>
#include <signal.h>
#include <errno.h>
+#include <string.h>
#include "user_util.h"
#include "kern_util.h"
#include "user.h"
static int first_tick;
static unsigned long long prev_tsc;
+#ifdef CONFIG_UML_REAL_TIME_CLOCK
static long long delta; /* Deviation per interval */
+#endif
extern unsigned long long host_hz;
}
if(first_tick){
-#if defined(CONFIG_UML_REAL_TIME_CLOCK)
+#ifdef CONFIG_UML_REAL_TIME_CLOCK
unsigned long long tsc;
/* We've had 1 tick */
tsc = time_stamp();
static struct inode_operations hostfs_dir_iops;
static struct address_space_operations hostfs_link_aops;
+#ifndef MODULE
static int __init hostfs_args(char *options, int *add)
{
char *ptr;
" The only flag currently supported is 'append', which specifies that all\n"
" files opened by hostfs will be opened in append mode.\n\n"
);
+#endif
static char *dentry_name(struct dentry *dentry, int extra)
{