change type of kprintf_lock() to "unsigned long"

to match type of ihk_mc_spinlock_lock().
This commit is contained in:
NAKAMURA Gou
2015-02-18 18:17:14 +09:00
parent d35e60c1a3
commit 0e98e87b95
4 changed files with 6 additions and 6 deletions

View File

@ -824,7 +824,7 @@ void arch_show_extended_context(void)
void arch_show_interrupt_context(const void *reg)
{
const struct x86_regs *regs = reg;
int irqflags;
unsigned long irqflags;
irqflags = kprintf_lock();

View File

@ -45,12 +45,12 @@ void kputs(char *buf)
#define KPRINTF_LOCAL_BUF_LEN 1024
int kprintf_lock()
unsigned long kprintf_lock(void)
{
return ihk_mc_spinlock_lock(&kmsg_lock);
}
void kprintf_unlock(int irqflags)
void kprintf_unlock(unsigned long irqflags)
{
ihk_mc_spinlock_unlock(&kmsg_lock, irqflags);
}

View File

@ -214,7 +214,7 @@ static void unhandled_page_fault(struct process *proc, void *fault_addr, void *r
struct process_vm *vm = proc->vm;
struct vm_range *range;
char found;
int irqflags;
unsigned long irqflags;
unsigned long error = ((struct x86_regs *)regs)->error;
irqflags = kprintf_lock();

View File

@ -22,8 +22,8 @@ struct ihk_kmsg_buf {
};
extern int kprintf(const char *format, ...);
extern int kprintf_lock();
extern void kprintf_unlock(int irqflags);
extern unsigned long kprintf_lock(void);
extern void kprintf_unlock(unsigned long irqflags);
extern int __kprintf(const char *format, ...);
extern void panic(const char *msg);