diff options
| author | Linus Torvalds <torvalds@linux-foundation.org> | 2013-09-06 12:36:28 -0400 |
|---|---|---|
| committer | Linus Torvalds <torvalds@linux-foundation.org> | 2013-09-06 12:36:28 -0400 |
| commit | 2e515bf096c245ba87f20ab4b4ea20f911afaeda (patch) | |
| tree | 8ce40f811092844ea9da683804db6e2afa410808 /include | |
| parent | 22e04f6b4b04a8afe9af9239224591d06ba3b24d (diff) | |
| parent | f8ea61e63442c25cbe6ddee48979b444f1f2a01c (diff) | |
Merge branch 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/jikos/trivial
Pull trivial tree from Jiri Kosina:
"The usual trivial updates all over the tree -- mostly typo fixes and
documentation updates"
* 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/jikos/trivial: (52 commits)
doc: Documentation/cputopology.txt fix typo
treewide: Convert retrun typos to return
Fix comment typo for init_cma_reserved_pageblock
Documentation/trace: Correcting and extending tracepoint documentation
mm/hotplug: fix a typo in Documentation/memory-hotplug.txt
power: Documentation: Update s2ram link
doc: fix a typo in Documentation/00-INDEX
Documentation/printk-formats.txt: No casts needed for u64/s64
doc: Fix typo "is is" in Documentations
treewide: Fix printks with 0x%#
zram: doc fixes
Documentation/kmemcheck: update kmemcheck documentation
doc: documentation/hwspinlock.txt fix typo
PM / Hibernate: add section for resume options
doc: filesystems : Fix typo in Documentations/filesystems
scsi/megaraid fixed several typos in comments
ppc: init_32: Fix error typo "CONFIG_START_KERNEL"
treewide: Add __GFP_NOWARN to k.alloc calls with v.alloc fallbacks
page_isolation: Fix a comment typo in test_pages_isolated()
doc: fix a typo about irq affinity
...
Diffstat (limited to 'include')
| -rw-r--r-- | include/linux/coda.h | 1 | ||||
| -rw-r--r-- | include/linux/ktime.h | 28 |
2 files changed, 15 insertions, 14 deletions
diff --git a/include/linux/coda.h b/include/linux/coda.h index cff544f81105..d30209b9cef8 100644 --- a/include/linux/coda.h +++ b/include/linux/coda.h | |||
| @@ -60,7 +60,6 @@ Mellon the rights to redistribute these changes without encumbrance. | |||
| 60 | 60 | ||
| 61 | #if defined(__linux__) | 61 | #if defined(__linux__) |
| 62 | typedef unsigned long long u_quad_t; | 62 | typedef unsigned long long u_quad_t; |
| 63 | #else | ||
| 64 | #endif | 63 | #endif |
| 65 | #include <uapi/linux/coda.h> | 64 | #include <uapi/linux/coda.h> |
| 66 | #endif | 65 | #endif |
diff --git a/include/linux/ktime.h b/include/linux/ktime.h index debf208b7611..31c0cd1c941a 100644 --- a/include/linux/ktime.h +++ b/include/linux/ktime.h | |||
| @@ -69,7 +69,7 @@ typedef union ktime ktime_t; /* Kill this */ | |||
| 69 | * @secs: seconds to set | 69 | * @secs: seconds to set |
| 70 | * @nsecs: nanoseconds to set | 70 | * @nsecs: nanoseconds to set |
| 71 | * | 71 | * |
| 72 | * Return the ktime_t representation of the value | 72 | * Return: The ktime_t representation of the value. |
| 73 | */ | 73 | */ |
| 74 | static inline ktime_t ktime_set(const long secs, const unsigned long nsecs) | 74 | static inline ktime_t ktime_set(const long secs, const unsigned long nsecs) |
| 75 | { | 75 | { |
| @@ -151,7 +151,7 @@ static inline ktime_t ktime_set(const long secs, const unsigned long nsecs) | |||
| 151 | * @lhs: minuend | 151 | * @lhs: minuend |
| 152 | * @rhs: subtrahend | 152 | * @rhs: subtrahend |
| 153 | * | 153 | * |
| 154 | * Returns the remainder of the subtraction | 154 | * Return: The remainder of the subtraction. |
| 155 | */ | 155 | */ |
| 156 | static inline ktime_t ktime_sub(const ktime_t lhs, const ktime_t rhs) | 156 | static inline ktime_t ktime_sub(const ktime_t lhs, const ktime_t rhs) |
| 157 | { | 157 | { |
| @@ -169,7 +169,7 @@ static inline ktime_t ktime_sub(const ktime_t lhs, const ktime_t rhs) | |||
| 169 | * @add1: addend1 | 169 | * @add1: addend1 |
| 170 | * @add2: addend2 | 170 | * @add2: addend2 |
| 171 | * | 171 | * |
| 172 | * Returns the sum of @add1 and @add2. | 172 | * Return: The sum of @add1 and @add2. |
| 173 | */ | 173 | */ |
| 174 | static inline ktime_t ktime_add(const ktime_t add1, const ktime_t add2) | 174 | static inline ktime_t ktime_add(const ktime_t add1, const ktime_t add2) |
| 175 | { | 175 | { |
| @@ -195,7 +195,7 @@ static inline ktime_t ktime_add(const ktime_t add1, const ktime_t add2) | |||
| 195 | * @kt: addend | 195 | * @kt: addend |
| 196 | * @nsec: the scalar nsec value to add | 196 | * @nsec: the scalar nsec value to add |
| 197 | * | 197 | * |
| 198 | * Returns the sum of @kt and @nsec in ktime_t format | 198 | * Return: The sum of @kt and @nsec in ktime_t format. |
| 199 | */ | 199 | */ |
| 200 | extern ktime_t ktime_add_ns(const ktime_t kt, u64 nsec); | 200 | extern ktime_t ktime_add_ns(const ktime_t kt, u64 nsec); |
| 201 | 201 | ||
| @@ -204,7 +204,7 @@ extern ktime_t ktime_add_ns(const ktime_t kt, u64 nsec); | |||
| 204 | * @kt: minuend | 204 | * @kt: minuend |
| 205 | * @nsec: the scalar nsec value to subtract | 205 | * @nsec: the scalar nsec value to subtract |
| 206 | * | 206 | * |
| 207 | * Returns the subtraction of @nsec from @kt in ktime_t format | 207 | * Return: The subtraction of @nsec from @kt in ktime_t format. |
| 208 | */ | 208 | */ |
| 209 | extern ktime_t ktime_sub_ns(const ktime_t kt, u64 nsec); | 209 | extern ktime_t ktime_sub_ns(const ktime_t kt, u64 nsec); |
| 210 | 210 | ||
| @@ -212,7 +212,7 @@ extern ktime_t ktime_sub_ns(const ktime_t kt, u64 nsec); | |||
| 212 | * timespec_to_ktime - convert a timespec to ktime_t format | 212 | * timespec_to_ktime - convert a timespec to ktime_t format |
| 213 | * @ts: the timespec variable to convert | 213 | * @ts: the timespec variable to convert |
| 214 | * | 214 | * |
| 215 | * Returns a ktime_t variable with the converted timespec value | 215 | * Return: A ktime_t variable with the converted timespec value. |
| 216 | */ | 216 | */ |
| 217 | static inline ktime_t timespec_to_ktime(const struct timespec ts) | 217 | static inline ktime_t timespec_to_ktime(const struct timespec ts) |
| 218 | { | 218 | { |
| @@ -224,7 +224,7 @@ static inline ktime_t timespec_to_ktime(const struct timespec ts) | |||
| 224 | * timeval_to_ktime - convert a timeval to ktime_t format | 224 | * timeval_to_ktime - convert a timeval to ktime_t format |
| 225 | * @tv: the timeval variable to convert | 225 | * @tv: the timeval variable to convert |
| 226 | * | 226 | * |
| 227 | * Returns a ktime_t variable with the converted timeval value | 227 | * Return: A ktime_t variable with the converted timeval value. |
| 228 | */ | 228 | */ |
| 229 | static inline ktime_t timeval_to_ktime(const struct timeval tv) | 229 | static inline ktime_t timeval_to_ktime(const struct timeval tv) |
| 230 | { | 230 | { |
| @@ -237,7 +237,7 @@ static inline ktime_t timeval_to_ktime(const struct timeval tv) | |||
| 237 | * ktime_to_timespec - convert a ktime_t variable to timespec format | 237 | * ktime_to_timespec - convert a ktime_t variable to timespec format |
| 238 | * @kt: the ktime_t variable to convert | 238 | * @kt: the ktime_t variable to convert |
| 239 | * | 239 | * |
| 240 | * Returns the timespec representation of the ktime value | 240 | * Return: The timespec representation of the ktime value. |
| 241 | */ | 241 | */ |
| 242 | static inline struct timespec ktime_to_timespec(const ktime_t kt) | 242 | static inline struct timespec ktime_to_timespec(const ktime_t kt) |
| 243 | { | 243 | { |
| @@ -249,7 +249,7 @@ static inline struct timespec ktime_to_timespec(const ktime_t kt) | |||
| 249 | * ktime_to_timeval - convert a ktime_t variable to timeval format | 249 | * ktime_to_timeval - convert a ktime_t variable to timeval format |
| 250 | * @kt: the ktime_t variable to convert | 250 | * @kt: the ktime_t variable to convert |
| 251 | * | 251 | * |
| 252 | * Returns the timeval representation of the ktime value | 252 | * Return: The timeval representation of the ktime value. |
| 253 | */ | 253 | */ |
| 254 | static inline struct timeval ktime_to_timeval(const ktime_t kt) | 254 | static inline struct timeval ktime_to_timeval(const ktime_t kt) |
| 255 | { | 255 | { |
| @@ -262,7 +262,7 @@ static inline struct timeval ktime_to_timeval(const ktime_t kt) | |||
| 262 | * ktime_to_ns - convert a ktime_t variable to scalar nanoseconds | 262 | * ktime_to_ns - convert a ktime_t variable to scalar nanoseconds |
| 263 | * @kt: the ktime_t variable to convert | 263 | * @kt: the ktime_t variable to convert |
| 264 | * | 264 | * |
| 265 | * Returns the scalar nanoseconds representation of @kt | 265 | * Return: The scalar nanoseconds representation of @kt. |
| 266 | */ | 266 | */ |
| 267 | static inline s64 ktime_to_ns(const ktime_t kt) | 267 | static inline s64 ktime_to_ns(const ktime_t kt) |
| 268 | { | 268 | { |
| @@ -276,7 +276,9 @@ static inline s64 ktime_to_ns(const ktime_t kt) | |||
| 276 | * @cmp1: comparable1 | 276 | * @cmp1: comparable1 |
| 277 | * @cmp2: comparable2 | 277 | * @cmp2: comparable2 |
| 278 | * | 278 | * |
| 279 | * Compare two ktime_t variables, returns 1 if equal | 279 | * Compare two ktime_t variables. |
| 280 | * | ||
| 281 | * Return: 1 if equal. | ||
| 280 | */ | 282 | */ |
| 281 | static inline int ktime_equal(const ktime_t cmp1, const ktime_t cmp2) | 283 | static inline int ktime_equal(const ktime_t cmp1, const ktime_t cmp2) |
| 282 | { | 284 | { |
| @@ -288,7 +290,7 @@ static inline int ktime_equal(const ktime_t cmp1, const ktime_t cmp2) | |||
| 288 | * @cmp1: comparable1 | 290 | * @cmp1: comparable1 |
| 289 | * @cmp2: comparable2 | 291 | * @cmp2: comparable2 |
| 290 | * | 292 | * |
| 291 | * Returns ... | 293 | * Return: ... |
| 292 | * cmp1 < cmp2: return <0 | 294 | * cmp1 < cmp2: return <0 |
| 293 | * cmp1 == cmp2: return 0 | 295 | * cmp1 == cmp2: return 0 |
| 294 | * cmp1 > cmp2: return >0 | 296 | * cmp1 > cmp2: return >0 |
| @@ -342,7 +344,7 @@ extern ktime_t ktime_add_safe(const ktime_t lhs, const ktime_t rhs); | |||
| 342 | * @kt: the ktime_t variable to convert | 344 | * @kt: the ktime_t variable to convert |
| 343 | * @ts: the timespec variable to store the result in | 345 | * @ts: the timespec variable to store the result in |
| 344 | * | 346 | * |
| 345 | * Returns true if there was a successful conversion, false if kt was 0. | 347 | * Return: %true if there was a successful conversion, %false if kt was 0. |
| 346 | */ | 348 | */ |
| 347 | static inline __must_check bool ktime_to_timespec_cond(const ktime_t kt, | 349 | static inline __must_check bool ktime_to_timespec_cond(const ktime_t kt, |
| 348 | struct timespec *ts) | 350 | struct timespec *ts) |
