diff options
Diffstat (limited to 'include/linux')
| -rw-r--r-- | include/linux/ktime.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/include/linux/ktime.h b/include/linux/ktime.h index 608728a164a9..fc66b301b648 100644 --- a/include/linux/ktime.h +++ b/include/linux/ktime.h | |||
| @@ -339,7 +339,8 @@ extern ktime_t ktime_add_safe(const ktime_t lhs, const ktime_t rhs); | |||
| 339 | * | 339 | * |
| 340 | * Returns true if there was a successful conversion, false if kt was 0. | 340 | * Returns true if there was a successful conversion, false if kt was 0. |
| 341 | */ | 341 | */ |
| 342 | static inline bool ktime_to_timespec_cond(const ktime_t kt, struct timespec *ts) | 342 | static inline __must_check bool ktime_to_timespec_cond(const ktime_t kt, |
| 343 | struct timespec *ts) | ||
| 343 | { | 344 | { |
| 344 | if (kt.tv64) { | 345 | if (kt.tv64) { |
| 345 | *ts = ktime_to_timespec(kt); | 346 | *ts = ktime_to_timespec(kt); |
