From be5c2c81971442d623dd1b265dabf4644ceeb35b Mon Sep 17 00:00:00 2001 From: Dmitry Vyukov Date: Mon, 23 Dec 2019 10:56:16 +0100 Subject: sys/linux: fix 32-bit warnings Lots of interesting findings... Especially 2 byte uid/gid/pid. Update #590 --- sys/linux/dev_loop.txt | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'sys/linux/dev_loop.txt') diff --git a/sys/linux/dev_loop.txt b/sys/linux/dev_loop.txt index 319c5f76f..7065d5c97 100644 --- a/sys/linux/dev_loop.txt +++ b/sys/linux/dev_loop.txt @@ -30,9 +30,10 @@ lo_flags = LO_FLAGS_READ_ONLY, LO_FLAGS_AUTOCLEAR, LO_FLAGS_PARTSCAN, LO_FLAGS_D loop_info { lo_number const[0, int32] - lo_device const[0, intptr] +# NEED: on amd64 lo_device/lo_rdevice (__kernel_old_dev_t) is long, on 386 it's short... + lo_device alignptr[const[0, int16]] lo_inode const[0, intptr] - lo_rdevice const[0, intptr] + lo_rdevice alignptr[const[0, int16]] lo_offset int32 lo_enc_type flags[lo_encrypt_type, int32] lo_enc_key_size int32[0:LO_KEY_SIZE] @@ -56,5 +57,5 @@ loop_info64 { lo_file_name array[int8, LO_NAME_SIZE] lo_crypt_name array[int8, LO_NAME_SIZE] lo_enc_key array[int8, LO_KEY_SIZE] - lo_init array[intptr, 2] + lo_init array[int64, 2] } -- cgit mrf-deployment