summaryrefslogtreecommitdiff
path: root/include/linux
diff options
context:
space:
mode:
Diffstat (limited to 'include/linux')
-rw-r--r--include/linux/cpufreq.h3
-rw-r--r--include/linux/devfs_fs_kernel.h27
-rw-r--r--include/linux/ext3_fs.h2
-rw-r--r--include/linux/mm.h5
-rw-r--r--include/linux/moduleloader.h3
-rw-r--r--include/linux/msdos_fs.h3
-rw-r--r--include/linux/smp_lock.h2
-rw-r--r--include/linux/tpqic02.h2
8 files changed, 16 insertions, 31 deletions
diff --git a/include/linux/cpufreq.h b/include/linux/cpufreq.h
index e99b9c3c1d01..3dc9062bd414 100644
--- a/include/linux/cpufreq.h
+++ b/include/linux/cpufreq.h
@@ -311,4 +311,7 @@ void cpufreq_frequency_table_put_attr(unsigned int cpu);
#endif /* CONFIG_CPU_FREQ_TABLE */
+/* Currently exported only for the proc interface, remove when that goes */
+extern struct cpufreq_driver *cpufreq_driver;
+
#endif /* _LINUX_CPUFREQ_H */
diff --git a/include/linux/devfs_fs_kernel.h b/include/linux/devfs_fs_kernel.h
index 34ebe93c6194..f12addd1daeb 100644
--- a/include/linux/devfs_fs_kernel.h
+++ b/include/linux/devfs_fs_kernel.h
@@ -11,20 +11,7 @@
#define DEVFS_SUPER_MAGIC 0x1373
-#define DEVFS_FL_NONE 0x000 /* This helps to make code more readable
- no, it doesn't --hch */
-#define DEVFS_FL_DEFAULT DEVFS_FL_NONE
-
-
-typedef struct devfs_entry * devfs_handle_t;
-
-struct gendisk;
-
#ifdef CONFIG_DEVFS_FS
-extern devfs_handle_t devfs_register (devfs_handle_t dir, const char *name,
- unsigned int flags,
- unsigned int major, unsigned int minor,
- umode_t mode, void *ops, void *info);
extern int devfs_mk_bdev(dev_t dev, umode_t mode, const char *fmt, ...)
__attribute__((format (printf, 3, 4)));
extern int devfs_mk_cdev(dev_t dev, umode_t mode, const char *fmt, ...)
@@ -36,19 +23,8 @@ extern void devfs_remove(const char *fmt, ...)
__attribute__((format (printf, 1, 2)));
extern int devfs_register_tape(const char *name);
extern void devfs_unregister_tape(int num);
-extern void devfs_register_partition(struct gendisk *dev, int part);
extern void mount_devfs_fs(void);
#else /* CONFIG_DEVFS_FS */
-static inline devfs_handle_t devfs_register (devfs_handle_t dir,
- const char *name,
- unsigned int flags,
- unsigned int major,
- unsigned int minor,
- umode_t mode,
- void *ops, void *info)
-{
- return NULL;
-}
static inline int devfs_mk_bdev(dev_t dev, umode_t mode, const char *fmt, ...)
{
return 0;
@@ -75,9 +51,6 @@ static inline int devfs_register_tape (const char *name)
static inline void devfs_unregister_tape(int num)
{
}
-static inline void devfs_register_partition(struct gendisk *dev, int part)
-{
-}
static inline void mount_devfs_fs (void)
{
return;
diff --git a/include/linux/ext3_fs.h b/include/linux/ext3_fs.h
index b3da32479e13..c2f36c9d8022 100644
--- a/include/linux/ext3_fs.h
+++ b/include/linux/ext3_fs.h
@@ -625,6 +625,8 @@ struct dx_hash_info
u32 *seed;
};
+#define EXT3_HTREE_EOF 0x7fffffff
+
#ifdef __KERNEL__
/*
* Control parameters used by ext3_htree_next_block
diff --git a/include/linux/mm.h b/include/linux/mm.h
index 6aa89d73f65b..51f5377ec8fc 100644
--- a/include/linux/mm.h
+++ b/include/linux/mm.h
@@ -23,8 +23,13 @@ extern int page_cluster;
#include <asm/page.h>
#include <asm/pgtable.h>
+#include <asm/processor.h>
#include <asm/atomic.h>
+#ifndef MM_VM_SIZE
+#define MM_VM_SIZE(mm) TASK_SIZE
+#endif
+
/*
* Linux kernel virtual memory manager primitives.
* The idea being to have a "virtual" mm in the same way
diff --git a/include/linux/moduleloader.h b/include/linux/moduleloader.h
index 0c9e9a69f8ba..eb1033957486 100644
--- a/include/linux/moduleloader.h
+++ b/include/linux/moduleloader.h
@@ -41,4 +41,7 @@ int module_finalize(const Elf_Ehdr *hdr,
const Elf_Shdr *sechdrs,
struct module *mod);
+/* Any cleanup needed when module leaves. */
+void module_arch_cleanup(struct module *mod);
+
#endif
diff --git a/include/linux/msdos_fs.h b/include/linux/msdos_fs.h
index 2945cb406b64..bd09a8135e79 100644
--- a/include/linux/msdos_fs.h
+++ b/include/linux/msdos_fs.h
@@ -146,8 +146,7 @@ struct fat_boot_fsinfo {
__u32 reserved1[120]; /* Nothing as far as I can tell */
__u32 signature2; /* 0x61417272L */
__u32 free_clusters; /* Free cluster count. -1 if unknown */
- __u32 next_cluster; /* Most recently allocated cluster.
- * Unused under Linux. */
+ __u32 next_cluster; /* Most recently allocated cluster */
__u32 reserved2[4];
};
diff --git a/include/linux/smp_lock.h b/include/linux/smp_lock.h
index 5a0b83a677d9..80fbd56eb3e4 100644
--- a/include/linux/smp_lock.h
+++ b/include/linux/smp_lock.h
@@ -5,7 +5,7 @@
#include <linux/sched.h>
#include <linux/spinlock.h>
-#if CONFIG_SMP || CONFIG_PREEMPT
+#if defined(CONFIG_SMP) || defined(CONFIG_PREEMPT)
extern spinlock_t kernel_flag;
diff --git a/include/linux/tpqic02.h b/include/linux/tpqic02.h
index 2972cb2f827c..f980d4ff01fe 100644
--- a/include/linux/tpqic02.h
+++ b/include/linux/tpqic02.h
@@ -12,7 +12,7 @@
#include <linux/config.h>
-#if CONFIG_QIC02_TAPE || CONFIG_QIC02_TAPE_MODULE
+#if defined(CONFIG_QIC02_TAPE) || defined(CONFIG_QIC02_TAPE_MODULE)
/* need to have QIC02_TAPE_DRIVE and QIC02_TAPE_IFC expand to something */
#include <linux/mtio.h>