Just open code it in the only caller.
Unified · Split
| @@ -348,8 +348,8 @@ efault: · 347 unmodified lines | ||
| 348 | 348 | return -EFAULT; |
| 349 | 349 | } |
| 350 | 350 | |
| 351 | −int ksys_getdents64(unsigned int fd, struct linux_dirent64 __user *dirent, | |
| 352 | − unsigned int count) | |
| 351 | +SYSCALL_DEFINE3(getdents64, unsigned int, fd, | |
| 352 | + struct linux_dirent64 __user *, dirent, unsigned int, count) | |
| 353 | 353 | { |
| 354 | 354 | struct fd f; |
| 355 | 355 | struct getdents_callback64 buf = { |
| @@ -380,13 +380,6 @@ int ksys_getdents64(unsigned int fd, struct linux_dirent64 __user *dirent, · 24 unmodified lines | ||
| 380 | 380 | return error; |
| 381 | 381 | } |
| 382 | 382 | |
| 383 | − | |
| 384 | −SYSCALL_DEFINE3(getdents64, unsigned int, fd, | |
| 385 | − struct linux_dirent64 __user *, dirent, unsigned int, count) | |
| 386 | −{ | |
| 387 | − return ksys_getdents64(fd, dirent, count); | |
| 388 | −} | |
| 389 | − | |
| 390 | 383 | #ifdef CONFIG_COMPAT |
| 391 | 384 | struct compat_old_linux_dirent { |
| 392 | 385 | compat_ulong_t d_ino; |
| @@ -1243,8 +1243,6 @@ ssize_t ksys_write(unsigned int fd, const char __user *buf, size_t count); · 1242 unmodified lines | ||
| 1243 | 1243 | int ksys_chdir(const char __user *filename); |
| 1244 | 1244 | int ksys_fchmod(unsigned int fd, umode_t mode); |
| 1245 | 1245 | int ksys_fchown(unsigned int fd, uid_t user, gid_t group); |
| 1246 | −int ksys_getdents64(unsigned int fd, struct linux_dirent64 __user *dirent, | |
| 1247 | − unsigned int count); | |
| 1248 | 1246 | int ksys_ioctl(unsigned int fd, unsigned int cmd, unsigned long arg); |
| 1249 | 1247 | ssize_t ksys_read(unsigned int fd, char __user *buf, size_t count); |
| 1250 | 1248 | void ksys_sync(void); |