Skip to content
This repository was archived by the owner on Jun 2, 2025. It is now read-only.

Commit 92cdb8d

Browse files
committed
Delete unnecessary sgx_compat_ioctl()
Signed-off-by: Tianjia Zhang <tianjia.zhang@linux.alibaba.com>
1 parent 93797b0 commit 92cdb8d

File tree

1 file changed

+1
-8
lines changed

1 file changed

+1
-8
lines changed

sgx_main.c

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -106,13 +106,6 @@ u32 sgx_misc_reserved;
106106
u32 sgx_xsave_size_tbl[64];
107107
bool sgx_has_sgx2;
108108

109-
#ifdef CONFIG_COMPAT
110-
long sgx_compat_ioctl(struct file *filep, unsigned int cmd, unsigned long arg)
111-
{
112-
return sgx_ioctl(filep, cmd, arg);
113-
}
114-
#endif
115-
116109
static int sgx_mmap(struct file *file, struct vm_area_struct *vma)
117110
{
118111
vma->vm_ops = &sgx_vm_ops;
@@ -162,7 +155,7 @@ static const struct file_operations sgx_fops = {
162155
.owner = THIS_MODULE,
163156
.unlocked_ioctl = sgx_ioctl,
164157
#ifdef CONFIG_COMPAT
165-
.compat_ioctl = sgx_compat_ioctl,
158+
.compat_ioctl = sgx_ioctl,
166159
#endif
167160
.mmap = sgx_mmap,
168161
.get_unmapped_area = sgx_get_unmapped_area,

0 commit comments

Comments
 (0)