diff options
Diffstat (limited to 'arch/um/kernel')
| -rw-r--r-- | arch/um/kernel/init_task.c | 3 | ||||
| -rw-r--r-- | arch/um/kernel/irq.c | 6 | ||||
| -rw-r--r-- | arch/um/kernel/trap.c | 2 | 
3 files changed, 4 insertions, 7 deletions
diff --git a/arch/um/kernel/init_task.c b/arch/um/kernel/init_task.c index 806d381947b..b25121b537d 100644 --- a/arch/um/kernel/init_task.c +++ b/arch/um/kernel/init_task.c @@ -10,11 +10,8 @@  #include "linux/mqueue.h"  #include "asm/uaccess.h" -struct mm_struct init_mm = INIT_MM(init_mm);  static struct signal_struct init_signals = INIT_SIGNALS(init_signals);  static struct sighand_struct init_sighand = INIT_SIGHAND(init_sighand); -EXPORT_SYMBOL(init_mm); -  /*   * Initial task structure.   * diff --git a/arch/um/kernel/irq.c b/arch/um/kernel/irq.c index 336b6156907..454cdb43e35 100644 --- a/arch/um/kernel/irq.c +++ b/arch/um/kernel/irq.c @@ -358,7 +358,7 @@ EXPORT_SYMBOL(um_request_irq);  EXPORT_SYMBOL(reactivate_fd);  /* - * hw_interrupt_type must define (startup || enable) && + * irq_chip must define (startup || enable) &&   * (shutdown || disable) && end   */  static void dummy(unsigned int irq) @@ -366,7 +366,7 @@ static void dummy(unsigned int irq)  }  /* This is used for everything else than the timer. */ -static struct hw_interrupt_type normal_irq_type = { +static struct irq_chip normal_irq_type = {  	.typename = "SIGIO",  	.release = free_irq_by_irq_and_dev,  	.disable = dummy, @@ -375,7 +375,7 @@ static struct hw_interrupt_type normal_irq_type = {  	.end = dummy  }; -static struct hw_interrupt_type SIGVTALRM_irq_type = { +static struct irq_chip SIGVTALRM_irq_type = {  	.typename = "SIGVTALRM",  	.release = free_irq_by_irq_and_dev,  	.shutdown = dummy, /* never called */ diff --git a/arch/um/kernel/trap.c b/arch/um/kernel/trap.c index 7384d8accfe..637c6505dc0 100644 --- a/arch/um/kernel/trap.c +++ b/arch/um/kernel/trap.c @@ -65,7 +65,7 @@ good_area:  	do {  		int fault; -		fault = handle_mm_fault(mm, vma, address, is_write); +		fault = handle_mm_fault(mm, vma, address, is_write ? FAULT_FLAG_WRITE : 0);  		if (unlikely(fault & VM_FAULT_ERROR)) {  			if (fault & VM_FAULT_OOM) {  				goto out_of_memory;  |