diff options
| author | Linus Torvalds <torvalds@linux-foundation.org> | 2009-12-11 23:57:31 -0500 |
|---|---|---|
| committer | Linus Torvalds <torvalds@linux-foundation.org> | 2009-12-11 23:57:31 -0500 |
| commit | a1c36e52068a59374e127d60e4d8f4377072fc98 (patch) | |
| tree | 1f17d2bc113286f60fc4922910fbd252e77326ba /include | |
| parent | 3070f27d6ecb69364e7cffe16c8b15e1b8ef41dd (diff) | |
| parent | 3d7703870633dd454f6554e6d8d7f70441d0fd2d (diff) | |
Merge git://git.kernel.org/pub/scm/linux/kernel/git/arnd/asm-generic
* git://git.kernel.org/pub/scm/linux/kernel/git/arnd/asm-generic:
asm-generic: add sys_recvmmsg to unistd.h
asm-generic: add sys_accept4 to unistd.h
asm-generic/gpio.h: add some forward decls of the device struct
asm-generic: Fix typo in asm-generic/unistd.h.
lib/checksum: fix one more thinko
lib/checksum.c: make do_csum optional
lib/checksum.c: use 32-bit arithmetic consistently
Diffstat (limited to 'include')
| -rw-r--r-- | include/asm-generic/gpio.h | 3 | ||||
| -rw-r--r-- | include/asm-generic/unistd.h | 10 |
2 files changed, 10 insertions, 3 deletions
diff --git a/include/asm-generic/gpio.h b/include/asm-generic/gpio.h index 66d6106a2067..204bed37e82d 100644 --- a/include/asm-generic/gpio.h +++ b/include/asm-generic/gpio.h | |||
| @@ -28,6 +28,7 @@ static inline int gpio_is_valid(int number) | |||
| 28 | return ((unsigned)number) < ARCH_NR_GPIOS; | 28 | return ((unsigned)number) < ARCH_NR_GPIOS; |
| 29 | } | 29 | } |
| 30 | 30 | ||
| 31 | struct device; | ||
| 31 | struct seq_file; | 32 | struct seq_file; |
| 32 | struct module; | 33 | struct module; |
| 33 | 34 | ||
| @@ -181,6 +182,8 @@ static inline void gpio_set_value_cansleep(unsigned gpio, int value) | |||
| 181 | 182 | ||
| 182 | #ifndef CONFIG_GPIO_SYSFS | 183 | #ifndef CONFIG_GPIO_SYSFS |
| 183 | 184 | ||
| 185 | struct device; | ||
| 186 | |||
| 184 | /* sysfs support is only available with gpiolib, where it's optional */ | 187 | /* sysfs support is only available with gpiolib, where it's optional */ |
| 185 | 188 | ||
| 186 | static inline int gpio_export(unsigned gpio, bool direction_may_change) | 189 | static inline int gpio_export(unsigned gpio, bool direction_may_change) |
diff --git a/include/asm-generic/unistd.h b/include/asm-generic/unistd.h index 7c38c147e5e6..6a0b30f78a62 100644 --- a/include/asm-generic/unistd.h +++ b/include/asm-generic/unistd.h | |||
| @@ -622,9 +622,13 @@ __SYSCALL(__NR_move_pages, sys_move_pages) | |||
| 622 | __SYSCALL(__NR_rt_tgsigqueueinfo, sys_rt_tgsigqueueinfo) | 622 | __SYSCALL(__NR_rt_tgsigqueueinfo, sys_rt_tgsigqueueinfo) |
| 623 | #define __NR_perf_event_open 241 | 623 | #define __NR_perf_event_open 241 |
| 624 | __SYSCALL(__NR_perf_event_open, sys_perf_event_open) | 624 | __SYSCALL(__NR_perf_event_open, sys_perf_event_open) |
| 625 | #define __NR_accept4 242 | ||
| 626 | __SYSCALL(__NR_accept4, sys_accept4) | ||
| 627 | #define __NR_recvmmsg 243 | ||
| 628 | __SYSCALL(__NR_recvmmsg, sys_recvmmsg) | ||
| 625 | 629 | ||
| 626 | #undef __NR_syscalls | 630 | #undef __NR_syscalls |
| 627 | #define __NR_syscalls 242 | 631 | #define __NR_syscalls 244 |
| 628 | 632 | ||
| 629 | /* | 633 | /* |
| 630 | * All syscalls below here should go away really, | 634 | * All syscalls below here should go away really, |
| @@ -802,7 +806,7 @@ __SYSCALL(__NR_fork, sys_ni_syscall) | |||
| 802 | #define __NR_statfs __NR3264_statfs | 806 | #define __NR_statfs __NR3264_statfs |
| 803 | #define __NR_fstatfs __NR3264_fstatfs | 807 | #define __NR_fstatfs __NR3264_fstatfs |
| 804 | #define __NR_truncate __NR3264_truncate | 808 | #define __NR_truncate __NR3264_truncate |
| 805 | #define __NR_ftruncate __NR3264_truncate | 809 | #define __NR_ftruncate __NR3264_ftruncate |
| 806 | #define __NR_lseek __NR3264_lseek | 810 | #define __NR_lseek __NR3264_lseek |
| 807 | #define __NR_sendfile __NR3264_sendfile | 811 | #define __NR_sendfile __NR3264_sendfile |
| 808 | #define __NR_newfstatat __NR3264_fstatat | 812 | #define __NR_newfstatat __NR3264_fstatat |
| @@ -818,7 +822,7 @@ __SYSCALL(__NR_fork, sys_ni_syscall) | |||
| 818 | #define __NR_statfs64 __NR3264_statfs | 822 | #define __NR_statfs64 __NR3264_statfs |
| 819 | #define __NR_fstatfs64 __NR3264_fstatfs | 823 | #define __NR_fstatfs64 __NR3264_fstatfs |
| 820 | #define __NR_truncate64 __NR3264_truncate | 824 | #define __NR_truncate64 __NR3264_truncate |
| 821 | #define __NR_ftruncate64 __NR3264_truncate | 825 | #define __NR_ftruncate64 __NR3264_ftruncate |
| 822 | #define __NR_llseek __NR3264_lseek | 826 | #define __NR_llseek __NR3264_lseek |
| 823 | #define __NR_sendfile64 __NR3264_sendfile | 827 | #define __NR_sendfile64 __NR3264_sendfile |
| 824 | #define __NR_fstatat64 __NR3264_fstatat | 828 | #define __NR_fstatat64 __NR3264_fstatat |
