Merging upstream version 2.10.
Signed-off-by: Daniel Baumann <daniel@debian.org>
This commit is contained in:
parent
736f2f7c80
commit
37275c4af3
530 changed files with 12276 additions and 4877 deletions
10
util/types.h
10
util/types.h
|
@ -16,6 +16,16 @@ static inline long kelvin_to_celsius(long t)
|
|||
return t + ABSOLUTE_ZERO_CELSIUS;
|
||||
}
|
||||
|
||||
static inline long celsius_to_fahrenheit(long t)
|
||||
{
|
||||
return t * 9 / 5 + 32;
|
||||
}
|
||||
|
||||
static inline long kelvin_to_fahrenheit(long t)
|
||||
{
|
||||
return celsius_to_fahrenheit(kelvin_to_celsius(t));
|
||||
}
|
||||
|
||||
/* uint128_t is not always available, define our own. */
|
||||
union nvme_uint128 {
|
||||
__u8 bytes[16];
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue