diff options
| author | Dmitry Torokhov <dmitry.torokhov@gmail.com> | 2008-04-01 00:22:26 -0400 |
|---|---|---|
| committer | Dmitry Torokhov <dmitry.torokhov@gmail.com> | 2008-04-01 00:22:26 -0400 |
| commit | 399f486286f44d55c4fff0e9cc5d712f2b443489 (patch) | |
| tree | 0c2820b3e04232eaa96f08c1057b87728fb3e7a4 /include/linux | |
| parent | 481419ec9fbdf3f4ec5389c7e91a81b4a7ebee8d (diff) | |
| parent | a9edadbf790d72adf6ebed476cb5caf7743e7e4a (diff) | |
Merge master.kernel.org:/pub/scm/linux/kernel/git/torvalds/linux-2.6 into for-linus
Diffstat (limited to 'include/linux')
31 files changed, 127 insertions, 177 deletions
diff --git a/include/linux/Kbuild b/include/linux/Kbuild index 994df3780007..4a446a19295e 100644 --- a/include/linux/Kbuild +++ b/include/linux/Kbuild | |||
| @@ -127,7 +127,6 @@ header-y += pkt_sched.h | |||
| 127 | header-y += posix_types.h | 127 | header-y += posix_types.h |
| 128 | header-y += ppdev.h | 128 | header-y += ppdev.h |
| 129 | header-y += prctl.h | 129 | header-y += prctl.h |
| 130 | header-y += ps2esdi.h | ||
| 131 | header-y += qnxtypes.h | 130 | header-y += qnxtypes.h |
| 132 | header-y += quotaio_v1.h | 131 | header-y += quotaio_v1.h |
| 133 | header-y += quotaio_v2.h | 132 | header-y += quotaio_v2.h |
| @@ -196,7 +195,6 @@ unifdef-y += ethtool.h | |||
| 196 | unifdef-y += eventpoll.h | 195 | unifdef-y += eventpoll.h |
| 197 | unifdef-y += signalfd.h | 196 | unifdef-y += signalfd.h |
| 198 | unifdef-y += ext2_fs.h | 197 | unifdef-y += ext2_fs.h |
| 199 | unifdef-y += ext3_fs.h | ||
| 200 | unifdef-y += fb.h | 198 | unifdef-y += fb.h |
| 201 | unifdef-y += fcntl.h | 199 | unifdef-y += fcntl.h |
| 202 | unifdef-y += filter.h | 200 | unifdef-y += filter.h |
| @@ -205,7 +203,6 @@ unifdef-y += futex.h | |||
| 205 | unifdef-y += fs.h | 203 | unifdef-y += fs.h |
| 206 | unifdef-y += gameport.h | 204 | unifdef-y += gameport.h |
| 207 | unifdef-y += generic_serial.h | 205 | unifdef-y += generic_serial.h |
| 208 | unifdef-y += genhd.h | ||
| 209 | unifdef-y += gfs2_ondisk.h | 206 | unifdef-y += gfs2_ondisk.h |
| 210 | unifdef-y += hayesesp.h | 207 | unifdef-y += hayesesp.h |
| 211 | unifdef-y += hdlcdrv.h | 208 | unifdef-y += hdlcdrv.h |
| @@ -250,7 +247,6 @@ unifdef-y += isdn.h | |||
| 250 | unifdef-y += isdnif.h | 247 | unifdef-y += isdnif.h |
| 251 | unifdef-y += isdn_divertif.h | 248 | unifdef-y += isdn_divertif.h |
| 252 | unifdef-y += isdn_ppp.h | 249 | unifdef-y += isdn_ppp.h |
| 253 | unifdef-y += jbd.h | ||
| 254 | unifdef-y += joystick.h | 250 | unifdef-y += joystick.h |
| 255 | unifdef-y += kdev_t.h | 251 | unifdef-y += kdev_t.h |
| 256 | unifdef-y += kd.h | 252 | unifdef-y += kd.h |
diff --git a/include/linux/bitops.h b/include/linux/bitops.h index 69c1edb9fe54..40d54731de7e 100644 --- a/include/linux/bitops.h +++ b/include/linux/bitops.h | |||
| @@ -65,6 +65,46 @@ static inline __u32 ror32(__u32 word, unsigned int shift) | |||
| 65 | return (word >> shift) | (word << (32 - shift)); | 65 | return (word >> shift) | (word << (32 - shift)); |
| 66 | } | 66 | } |
| 67 | 67 | ||
| 68 | /** | ||
| 69 | * rol16 - rotate a 16-bit value left | ||
| 70 | * @word: value to rotate | ||
| 71 | * @shift: bits to roll | ||
| 72 | */ | ||
| 73 | static inline __u16 rol16(__u16 word, unsigned int shift) | ||
| 74 | { | ||
| 75 | return (word << shift) | (word >> (16 - shift)); | ||
| 76 | } | ||
| 77 | |||
| 78 | /** | ||
| 79 | * ror16 - rotate a 16-bit value right | ||
| 80 | * @word: value to rotate | ||
| 81 | * @shift: bits to roll | ||
| 82 | */ | ||
| 83 | static inline __u16 ror16(__u16 word, unsigned int shift) | ||
| 84 | { | ||
| 85 | return (word >> shift) | (word << (16 - shift)); | ||
| 86 | } | ||
| 87 | |||
| 88 | /** | ||
| 89 | * rol8 - rotate an 8-bit value left | ||
| 90 | * @word: value to rotate | ||
| 91 | * @shift: bits to roll | ||
| 92 | */ | ||
| 93 | static inline __u8 rol8(__u8 word, unsigned int shift) | ||
| 94 | { | ||
| 95 | return (word << shift) | (word >> (8 - shift)); | ||
| 96 | } | ||
| 97 | |||
| 98 | /** | ||
| 99 | * ror8 - rotate an 8-bit value right | ||
| 100 | * @word: value to rotate | ||
| 101 | * @shift: bits to roll | ||
| 102 | */ | ||
| 103 | static inline __u8 ror8(__u8 word, unsigned int shift) | ||
| 104 | { | ||
| 105 | return (word >> shift) | (word << (8 - shift)); | ||
| 106 | } | ||
| 107 | |||
| 68 | static inline unsigned fls_long(unsigned long l) | 108 | static inline unsigned fls_long(unsigned long l) |
| 69 | { | 109 | { |
| 70 | if (sizeof(l) == 4) | 110 | if (sizeof(l) == 4) |
diff --git a/include/linux/compat.h b/include/linux/compat.h index a671dbff7a1f..8fa7857e153b 100644 --- a/include/linux/compat.h +++ b/include/linux/compat.h | |||
| @@ -192,8 +192,8 @@ asmlinkage long compat_sys_select(int n, compat_ulong_t __user *inp, | |||
| 192 | struct compat_timeval __user *tvp); | 192 | struct compat_timeval __user *tvp); |
| 193 | 193 | ||
| 194 | asmlinkage long compat_sys_wait4(compat_pid_t pid, | 194 | asmlinkage long compat_sys_wait4(compat_pid_t pid, |
| 195 | compat_uint_t *stat_addr, int options, | 195 | compat_uint_t __user *stat_addr, int options, |
| 196 | struct compat_rusage *ru); | 196 | struct compat_rusage __user *ru); |
| 197 | 197 | ||
| 198 | #define BITS_PER_COMPAT_LONG (8*sizeof(compat_long_t)) | 198 | #define BITS_PER_COMPAT_LONG (8*sizeof(compat_long_t)) |
| 199 | 199 | ||
diff --git a/include/linux/cpuidle.h b/include/linux/cpuidle.h index 6b72a4584086..51e6b1e520e6 100644 --- a/include/linux/cpuidle.h +++ b/include/linux/cpuidle.h | |||
| @@ -38,8 +38,8 @@ struct cpuidle_state { | |||
| 38 | unsigned int power_usage; /* in mW */ | 38 | unsigned int power_usage; /* in mW */ |
| 39 | unsigned int target_residency; /* in US */ | 39 | unsigned int target_residency; /* in US */ |
| 40 | 40 | ||
| 41 | unsigned int usage; | 41 | unsigned long long usage; |
| 42 | unsigned int time; /* in US */ | 42 | unsigned long long time; /* in US */ |
| 43 | 43 | ||
| 44 | int (*enter) (struct cpuidle_device *dev, | 44 | int (*enter) (struct cpuidle_device *dev, |
| 45 | struct cpuidle_state *state); | 45 | struct cpuidle_state *state); |
diff --git a/include/linux/dmaengine.h b/include/linux/dmaengine.h index 261e43a4c873..34d440698293 100644 --- a/include/linux/dmaengine.h +++ b/include/linux/dmaengine.h | |||
| @@ -423,7 +423,7 @@ void dma_async_device_unregister(struct dma_device *device); | |||
| 423 | /* --- Helper iov-locking functions --- */ | 423 | /* --- Helper iov-locking functions --- */ |
| 424 | 424 | ||
| 425 | struct dma_page_list { | 425 | struct dma_page_list { |
| 426 | char *base_address; | 426 | char __user *base_address; |
| 427 | int nr_pages; | 427 | int nr_pages; |
| 428 | struct page **pages; | 428 | struct page **pages; |
| 429 | }; | 429 | }; |
diff --git a/include/linux/ethtool.h b/include/linux/ethtool.h index fcbe8b640ffb..c8d216357865 100644 --- a/include/linux/ethtool.h +++ b/include/linux/ethtool.h | |||
| @@ -12,6 +12,7 @@ | |||
| 12 | #ifndef _LINUX_ETHTOOL_H | 12 | #ifndef _LINUX_ETHTOOL_H |
| 13 | #define _LINUX_ETHTOOL_H | 13 | #define _LINUX_ETHTOOL_H |
| 14 | 14 | ||
| 15 | #include <linux/types.h> | ||
| 15 | 16 | ||
| 16 | /* This should work for both 32 and 64 bit userland. */ | 17 | /* This should work for both 32 and 64 bit userland. */ |
| 17 | struct ethtool_cmd { | 18 | struct ethtool_cmd { |
diff --git a/include/linux/exportfs.h b/include/linux/exportfs.h index 51d214138814..adcbb05b120b 100644< | |||
