mirror of
https://github.com/checkpoint-restore/criu.git
synced 2026-01-23 02:14:37 +00:00
headers: Drop uintX_t usage
We have a mess of uintX_t and uX usage. Drop off uintX_t ones. Signed-off-by: Cyrill Gorcunov <gorcunov@openvz.org> Acked-by: Andrew Vagin <avagin@parallels.com> Signed-off-by: Pavel Emelyanov <xemul@parallels.com>
This commit is contained in:
parent
26fda7a319
commit
e9f9fdb9b3
9 changed files with 31 additions and 31 deletions
|
|
@ -2,7 +2,7 @@
|
|||
#define __ASM_PARASITE_H__
|
||||
|
||||
static inline u32 arch_get_tls(void) {
|
||||
uint32_t res;
|
||||
u32 res;
|
||||
|
||||
asm (
|
||||
"adr %%r1, 1f \n"
|
||||
|
|
|
|||
|
|
@ -116,9 +116,9 @@ typedef UserArmRegsEntry UserRegsEntry;
|
|||
|
||||
#define TI_SP(core) ((core)->ti_arm->gpregs->sp)
|
||||
|
||||
typedef uint32_t auxv_t;
|
||||
typedef u32 auxv_t;
|
||||
|
||||
static inline void *decode_pointer(uint64_t v) { return (void*)(uint32_t)v; }
|
||||
static inline uint64_t encode_pointer(void *p) { return (uint32_t)p; }
|
||||
static inline void *decode_pointer(u64 v) { return (void*)(u32)v; }
|
||||
static inline u64 encode_pointer(void *p) { return (u32)p; }
|
||||
|
||||
#endif /* __CR_ASM_TYPES_H__ */
|
||||
|
|
|
|||
|
|
@ -118,7 +118,7 @@ typedef struct {
|
|||
|
||||
#define TASK_SIZE ((1UL << 47) - PAGE_SIZE)
|
||||
|
||||
typedef uint64_t auxv_t;
|
||||
typedef u64 auxv_t;
|
||||
|
||||
#define REG_RES(regs) ((regs).ax)
|
||||
#define REG_IP(regs) ((regs).ip)
|
||||
|
|
@ -136,7 +136,7 @@ typedef uint64_t auxv_t;
|
|||
|
||||
typedef UserX86RegsEntry UserRegsEntry;
|
||||
|
||||
static inline uint64_t encode_pointer(void *p) { return (uint64_t)p; }
|
||||
static inline void *decode_pointer(uint64_t v) { return (void*)v; }
|
||||
static inline u64 encode_pointer(void *p) { return (u64)p; }
|
||||
static inline void *decode_pointer(u64 v) { return (void*)v; }
|
||||
|
||||
#endif /* __CR_ASM_TYPES_H__ */
|
||||
|
|
|
|||
|
|
@ -84,10 +84,10 @@ struct proc_status_creds {
|
|||
unsigned int uids[4];
|
||||
unsigned int gids[4];
|
||||
|
||||
uint32_t cap_inh[PROC_CAP_SIZE];
|
||||
uint32_t cap_prm[PROC_CAP_SIZE];
|
||||
uint32_t cap_eff[PROC_CAP_SIZE];
|
||||
uint32_t cap_bnd[PROC_CAP_SIZE];
|
||||
u32 cap_inh[PROC_CAP_SIZE];
|
||||
u32 cap_prm[PROC_CAP_SIZE];
|
||||
u32 cap_eff[PROC_CAP_SIZE];
|
||||
u32 cap_bnd[PROC_CAP_SIZE];
|
||||
};
|
||||
|
||||
struct mount_info;
|
||||
|
|
|
|||
|
|
@ -126,11 +126,11 @@ struct task_restore_args {
|
|||
struct restore_posix_timer *posix_timers;
|
||||
|
||||
CredsEntry creds;
|
||||
uint32_t cap_inh[CR_CAP_SIZE];
|
||||
uint32_t cap_prm[CR_CAP_SIZE];
|
||||
uint32_t cap_eff[CR_CAP_SIZE];
|
||||
uint32_t cap_bnd[CR_CAP_SIZE];
|
||||
uint32_t cap_last_cap;
|
||||
u32 cap_inh[CR_CAP_SIZE];
|
||||
u32 cap_prm[CR_CAP_SIZE];
|
||||
u32 cap_eff[CR_CAP_SIZE];
|
||||
u32 cap_bnd[CR_CAP_SIZE];
|
||||
u32 cap_last_cap;
|
||||
|
||||
MmEntry mm;
|
||||
auxv_t mm_saved_auxv[AT_VECTOR_SIZE];
|
||||
|
|
|
|||
|
|
@ -26,11 +26,11 @@
|
|||
struct fd_opts {
|
||||
char flags;
|
||||
struct {
|
||||
uint32_t uid;
|
||||
uint32_t euid;
|
||||
uint32_t signum;
|
||||
uint32_t pid_type;
|
||||
uint32_t pid;
|
||||
u32 uid;
|
||||
u32 euid;
|
||||
u32 signum;
|
||||
u32 pid_type;
|
||||
u32 pid;
|
||||
} fown;
|
||||
};
|
||||
|
||||
|
|
|
|||
|
|
@ -35,7 +35,7 @@ static bool check_ids(unsigned int crid, unsigned int rid, unsigned int eid, uns
|
|||
return false;
|
||||
}
|
||||
|
||||
static bool check_caps(uint32_t *inh, uint32_t *eff, uint32_t *prm)
|
||||
static bool check_caps(u32 *inh, u32 *eff, u32 *prm)
|
||||
{
|
||||
int i;
|
||||
|
||||
|
|
|
|||
|
|
@ -568,10 +568,10 @@ union sockaddr_inet {
|
|||
};
|
||||
|
||||
static int restore_sockaddr(union sockaddr_inet *sa,
|
||||
int family, uint32_t pb_port, uint32_t *pb_addr)
|
||||
int family, u32 pb_port, u32 *pb_addr)
|
||||
{
|
||||
BUILD_BUG_ON(sizeof(sa->v4.sin_addr.s_addr) > PB_ALEN_INET * sizeof(uint32_t));
|
||||
BUILD_BUG_ON(sizeof(sa->v6.sin6_addr.s6_addr) > PB_ALEN_INET6 * sizeof(uint32_t));
|
||||
BUILD_BUG_ON(sizeof(sa->v4.sin_addr.s_addr) > PB_ALEN_INET * sizeof(u32));
|
||||
BUILD_BUG_ON(sizeof(sa->v6.sin6_addr.s6_addr) > PB_ALEN_INET6 * sizeof(u32));
|
||||
|
||||
memzero(sa, sizeof(*sa));
|
||||
|
||||
|
|
|
|||
12
sockets.c
12
sockets.c
|
|
@ -143,20 +143,20 @@ static int restore_bound_dev(int sk, SkOptsEntry *soe)
|
|||
* to move socket image across architectures.
|
||||
*/
|
||||
|
||||
static void encode_filter(struct sock_filter *f, uint64_t *img, int n)
|
||||
static void encode_filter(struct sock_filter *f, u64 *img, int n)
|
||||
{
|
||||
int i;
|
||||
|
||||
BUILD_BUG_ON(sizeof(*f) != sizeof(*img));
|
||||
|
||||
for (i = 0; i < n; i++)
|
||||
img[i] = ((uint64_t)f[i].code << 48) |
|
||||
((uint64_t)f[i].jt << 40) |
|
||||
((uint64_t)f[i].jf << 32) |
|
||||
((uint64_t)f[i].k << 0);
|
||||
img[i] = ((u64)f[i].code << 48) |
|
||||
((u64)f[i].jt << 40) |
|
||||
((u64)f[i].jf << 32) |
|
||||
((u64)f[i].k << 0);
|
||||
}
|
||||
|
||||
static void decode_filter(uint64_t *img, struct sock_filter *f, int n)
|
||||
static void decode_filter(u64 *img, struct sock_filter *f, int n)
|
||||
{
|
||||
int i;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue