Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 11239
b: refs/heads/master
c: b288f13
h: refs/heads/master
i:
  11237: 447951f
  11235: b9d7bd4
  11231: 8f18da4
v: v3
  • Loading branch information
Ralf Baechle committed Oct 29, 2005
1 parent 1e199ad commit cf82372
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 12 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: ea3d710fe572f0af4d242701973f7363b2146429
refs/heads/master: b288f135872b651ebf6cd1565d0709a5e31997f7
6 changes: 0 additions & 6 deletions trunk/arch/mips/kernel/ioctl32.c
Original file line number Diff line number Diff line change
Expand Up @@ -41,12 +41,6 @@ IOCTL_TABLE_START
#define DECLARES
#include "compat_ioctl.c"

#ifdef CONFIG_SIBYTE_TBPROF
COMPATIBLE_IOCTL(SBPROF_ZBSTART)
COMPATIBLE_IOCTL(SBPROF_ZBSTOP)
COMPATIBLE_IOCTL(SBPROF_ZBWAITFULL)
#endif /* CONFIG_SIBYTE_TBPROF */

/*HANDLE_IOCTL(RTC_IRQP_READ, w_long)
COMPATIBLE_IOCTL(RTC_IRQP_SET)
HANDLE_IOCTL(RTC_EPOCH_READ, w_long)
Expand Down
13 changes: 8 additions & 5 deletions trunk/arch/mips/sibyte/sb1250/bcm1250_tbprof.c
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@
#include <linux/fs.h>
#include <linux/errno.h>
#include <linux/reboot.h>
#include <linux/smp_lock.h>
#include <linux/wait.h>
#include <asm/uaccess.h>
#include <asm/io.h>
Expand Down Expand Up @@ -343,13 +344,13 @@ static ssize_t sbprof_tb_read(struct file *filp, char *buf,
return count;
}

static int sbprof_tb_ioctl(struct inode *inode,
struct file *filp,
unsigned int command,
unsigned long arg)
static long sbprof_tb_ioctl(struct file *filp,
unsigned int command,
unsigned long arg)
{
int error = 0;

lock_kernel();
switch (command) {
case SBPROF_ZBSTART:
error = sbprof_zbprof_start(filp);
Expand All @@ -368,6 +369,7 @@ static int sbprof_tb_ioctl(struct inode *inode,
error = -EINVAL;
break;
}
unlock_kernel();

return error;
}
Expand All @@ -377,7 +379,8 @@ static struct file_operations sbprof_tb_fops = {
.open = sbprof_tb_open,
.release = sbprof_tb_release,
.read = sbprof_tb_read,
.ioctl = sbprof_tb_ioctl,
.unlocked_ioctl = sbprof_tb_ioctl,
.compat_ioctl = sbprof_tb_ioctl,
.mmap = NULL,
};

Expand Down

0 comments on commit cf82372

Please sign in to comment.