summaryrefslogtreecommitdiffstats
path: root/ncr.c
diff options
context:
space:
mode:
Diffstat (limited to 'ncr.c')
-rw-r--r--ncr.c15
1 files changed, 15 insertions, 0 deletions
diff --git a/ncr.c b/ncr.c
index 99d2786..9549b93 100644
--- a/ncr.c
+++ b/ncr.c
@@ -22,6 +22,7 @@
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
*/
+#include <linux/compat.h>
#include <linux/crypto.h>
#include <linux/ioctl.h>
#include <linux/mm.h>
@@ -163,3 +164,17 @@ ncr_ioctl(struct ncr_lists *lst, unsigned int cmd, unsigned long arg_)
return -EINVAL;
}
}
+
+#ifdef CONFIG_COMPAT
+long
+ncr_compat_ioctl(struct ncr_lists *lst, unsigned int cmd, unsigned long arg_)
+{
+ if (unlikely(!lst))
+ BUG();
+
+ switch (cmd) {
+ default:
+ return -EINVAL;
+ }
+}
+#endif