movl %ebp,12(%esp)
movl $__USER_CS,4(%esp)
addl $4,%esp
+ CFI_ADJUST_CFA_OFFSET -4
/* +5*4 is SS:ESP,EFLAGS,CS:EIP. +8 is esp0 setting. */
pushl (TI_sysenter_return-THREAD_SIZE+8+4*4)(%esp)
+ CFI_ADJUST_CFA_OFFSET 4
/*
* Load the potential sixth argument from user stack.
* Careful about security.
}
-static struct file_operations active_domain_ops = {
+static const struct file_operations active_domain_ops = {
.read = adomain_read,
.write = adomain_write,
};
return retval;
}
-static struct file_operations passive_domain_ops = {
+static const struct file_operations passive_domain_ops = {
.read = pdomain_read,
.write = pdomain_write,
};
#include "common.h"
#define vbd_sz(_v) ((_v)->bdev->bd_part ? \
- (_v)->bdev->bd_part->nr_sects : (_v)->bdev->bd_disk->capacity)
+ (_v)->bdev->bd_part->nr_sects : get_capacity((_v)->bdev->bd_disk))
unsigned long long vbd_size(struct vbd *vbd)
{
static void mmap_req_del(int mmap)
{
- BUG_ON(!spin_is_locked(&pending_free_lock));
+ assert_spin_locked(&pending_free_lock);
kfree(pending_reqs[mmap]);
pending_reqs[mmap] = NULL;
struct cpuinfo_x86 cpu_data[NR_CPUS] __cacheline_aligned;
EXPORT_SYMBOL(cpu_data);
-#ifdef CONFIG_HOTPLUG_CPU
-DEFINE_PER_CPU(int, cpu_state) = { 0 };
-#endif
-
static DEFINE_PER_CPU(int, resched_irq);
static DEFINE_PER_CPU(int, callfunc_irq);
static char resched_name[NR_CPUS][15];
#ifdef __x86_64__
cpu_pda(cpu)->pcurrent = idle;
cpu_pda(cpu)->cpunumber = cpu;
- clear_ti_thread_flag(idle->thread_info, TIF_FORK);
+ clear_tsk_thread_flag(idle, TIF_FORK);
#endif
irq_ctx_init(cpu);