Commit 24255033 authored by Linus Torvalds's avatar Linus Torvalds

Fix up various odds and ends after big merges..

parent 4376dc0e
...@@ -22,16 +22,14 @@ ...@@ -22,16 +22,14 @@
#include <asm/uaccess.h> #include <asm/uaccess.h>
struct vfsmount *do_kern_mount(const char *type, int flags, char *name, void *data); extern struct vfsmount *do_kern_mount(const char *type, int flags, char *name, void *data);
int do_remount_sb(struct super_block *sb, int flags, void * data); extern int do_remount_sb(struct super_block *sb, int flags, void * data);
int __init init_rootfs(void); extern int __init init_rootfs(void);
static struct list_head *mount_hashtable; static struct list_head *mount_hashtable;
static int hash_mask, hash_bits; static int hash_mask, hash_bits;
static kmem_cache_t *mnt_cache; static kmem_cache_t *mnt_cache;
extern void init_rootfs(void);
static inline unsigned long hash(struct vfsmount *mnt, struct dentry *dentry) static inline unsigned long hash(struct vfsmount *mnt, struct dentry *dentry)
{ {
unsigned long tmp = ((unsigned long) mnt / L1_CACHE_BYTES); unsigned long tmp = ((unsigned long) mnt / L1_CACHE_BYTES);
......
...@@ -388,7 +388,6 @@ static struct file_system_type futex_fs_type = { ...@@ -388,7 +388,6 @@ static struct file_system_type futex_fs_type = {
name: "futexfs", name: "futexfs",
get_sb: futexfs_get_sb, get_sb: futexfs_get_sb,
kill_sb: kill_anon_super, kill_sb: kill_anon_super,
fs_flags: FS_NOMOUNT,
}; };
static int __init init(void) static int __init init(void)
......
...@@ -469,7 +469,7 @@ static client_t *get_event_dest_client(snd_seq_event_t *event, int filter) ...@@ -469,7 +469,7 @@ static client_t *get_event_dest_client(snd_seq_event_t *event, int filter)
if (! dest->accept_input) if (! dest->accept_input)
goto __not_avail; goto __not_avail;
if ((dest->filter & SNDRV_SEQ_FILTER_USE_EVENT) && if ((dest->filter & SNDRV_SEQ_FILTER_USE_EVENT) &&
! test_bit(event->type, &dest->event_filter)) ! test_bit(event->type, dest->event_filter))
goto __not_avail; goto __not_avail;
if (filter && !(dest->filter & filter)) if (filter && !(dest->filter & filter))
goto __not_avail; goto __not_avail;
......
...@@ -544,10 +544,10 @@ int snd_seq_queue_use(int queueid, int client, int use) ...@@ -544,10 +544,10 @@ int snd_seq_queue_use(int queueid, int client, int use)
return -EINVAL; return -EINVAL;
down(&queue->timer_mutex); down(&queue->timer_mutex);
if (use) { if (use) {
if (!test_and_set_bit(client, &queue->clients_bitmap)) if (!test_and_set_bit(client, queue->clients_bitmap))
queue->clients++; queue->clients++;
} else { } else {
if (test_and_clear_bit(client, &queue->clients_bitmap)) if (test_and_clear_bit(client, queue->clients_bitmap))
queue->clients--; queue->clients--;
} }
if (queue->clients) { if (queue->clients) {
...@@ -575,7 +575,7 @@ int snd_seq_queue_is_used(int queueid, int client) ...@@ -575,7 +575,7 @@ int snd_seq_queue_is_used(int queueid, int client)
q = queueptr(queueid); q = queueptr(queueid);
if (q == NULL) if (q == NULL)
return -EINVAL; /* invalid queue */ return -EINVAL; /* invalid queue */
result = test_bit(client, &q->clients_bitmap) ? 1 : 0; result = test_bit(client, q->clients_bitmap) ? 1 : 0;
queuefree(q); queuefree(q);
return result; return result;
} }
......
...@@ -265,7 +265,7 @@ void snd_ac97_write_cache(ac97_t *ac97, unsigned short reg, unsigned short value ...@@ -265,7 +265,7 @@ void snd_ac97_write_cache(ac97_t *ac97, unsigned short reg, unsigned short value
spin_lock(&ac97->reg_lock); spin_lock(&ac97->reg_lock);
ac97->write(ac97, reg, ac97->regs[reg] = value); ac97->write(ac97, reg, ac97->regs[reg] = value);
spin_unlock(&ac97->reg_lock); spin_unlock(&ac97->reg_lock);
set_bit(reg, &ac97->reg_accessed); set_bit(reg, ac97->reg_accessed);
} }
#ifndef CONFIG_SND_DEBUG #ifndef CONFIG_SND_DEBUG
...@@ -2204,7 +2204,7 @@ void snd_ac97_resume(ac97_t *ac97) ...@@ -2204,7 +2204,7 @@ void snd_ac97_resume(ac97_t *ac97)
* some chip (e.g. nm256) may hang up when unsupported registers * some chip (e.g. nm256) may hang up when unsupported registers
* are accessed..! * are accessed..!
*/ */
if (test_bit(i, &ac97->reg_accessed)) if (test_bit(i, ac97->reg_accessed))
snd_ac97_write(ac97, i, ac97->regs[i]); snd_ac97_write(ac97, i, ac97->regs[i]);
} }
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment