[SPARC]: Fix RTC compat ioctl kernel log spam.
[firewire-audio.git] / arch / powerpc / kernel / ioctl32.c
blob0fa3d27fef013f5ce5c3311e01d29f7e78b5ad17
1 /*
2 * ioctl32.c: Conversion between 32bit and 64bit native ioctls.
4 * Based on sparc64 ioctl32.c by:
6 * Copyright (C) 1997-2000 Jakub Jelinek (jakub@redhat.com)
7 * Copyright (C) 1998 Eddie C. Dost (ecd@skynet.be)
9 * ppc64 changes:
11 * Copyright (C) 2000 Ken Aaker (kdaaker@rchland.vnet.ibm.com)
12 * Copyright (C) 2001 Anton Blanchard (antonb@au.ibm.com)
14 * These routines maintain argument size conversion between 32bit and 64bit
15 * ioctls.
17 * This program is free software; you can redistribute it and/or
18 * modify it under the terms of the GNU General Public License
19 * as published by the Free Software Foundation; either version
20 * 2 of the License, or (at your option) any later version.
23 #define INCLUDES
24 #include "compat_ioctl.c"
25 #include <linux/syscalls.h>
27 #define CODE
28 #include "compat_ioctl.c"
30 #define HANDLE_IOCTL(cmd,handler) { cmd, (ioctl_trans_handler_t)handler, NULL },
31 #define COMPATIBLE_IOCTL(cmd) HANDLE_IOCTL(cmd,sys_ioctl)
33 #define IOCTL_TABLE_START \
34 struct ioctl_trans ioctl_start[] = {
35 #define IOCTL_TABLE_END \
38 IOCTL_TABLE_START
39 #include <linux/compat_ioctl.h>
40 #define DECLARES
41 #include "compat_ioctl.c"
43 IOCTL_TABLE_END
45 int ioctl_table_size = ARRAY_SIZE(ioctl_start);