Commit 89479619 authored by Alan Cox's avatar Alan Cox Committed by Linus Torvalds

[PATCH] another batch of "invalid" not "illegal" fixes

(Steven Cole)
parent f5f0b83f
...@@ -164,7 +164,7 @@ static int ...@@ -164,7 +164,7 @@ static int
apply_imm64 (struct module *mod, struct insn *insn, uint64_t val) apply_imm64 (struct module *mod, struct insn *insn, uint64_t val)
{ {
if (slot(insn) != 2) { if (slot(insn) != 2) {
printk(KERN_ERR "%s: illegal slot number %d for IMM64\n", printk(KERN_ERR "%s: invalid slot number %d for IMM64\n",
mod->name, slot(insn)); mod->name, slot(insn));
return 0; return 0;
} }
...@@ -176,7 +176,7 @@ static int ...@@ -176,7 +176,7 @@ static int
apply_imm60 (struct module *mod, struct insn *insn, uint64_t val) apply_imm60 (struct module *mod, struct insn *insn, uint64_t val)
{ {
if (slot(insn) != 2) { if (slot(insn) != 2) {
printk(KERN_ERR "%s: illegal slot number %d for IMM60\n", printk(KERN_ERR "%s: invalid slot number %d for IMM60\n",
mod->name, slot(insn)); mod->name, slot(insn));
return 0; return 0;
} }
......
...@@ -46,7 +46,7 @@ void dn_init_IRQ(void) { ...@@ -46,7 +46,7 @@ void dn_init_IRQ(void) {
int dn_request_irq(unsigned int irq, irqreturn_t (*handler)(int, void *, struct pt_regs *), unsigned long flags, const char *devname, void *dev_id) { int dn_request_irq(unsigned int irq, irqreturn_t (*handler)(int, void *, struct pt_regs *), unsigned long flags, const char *devname, void *dev_id) {
if((irq<0) || (irq>15)) { if((irq<0) || (irq>15)) {
printk("Trying to request illegal IRQ\n"); printk("Trying to request invalid IRQ\n");
return -ENXIO; return -ENXIO;
} }
...@@ -72,7 +72,7 @@ int dn_request_irq(unsigned int irq, irqreturn_t (*handler)(int, void *, struct ...@@ -72,7 +72,7 @@ int dn_request_irq(unsigned int irq, irqreturn_t (*handler)(int, void *, struct
void dn_free_irq(unsigned int irq, void *dev_id) { void dn_free_irq(unsigned int irq, void *dev_id) {
if((irq<0) || (irq>15)) { if((irq<0) || (irq>15)) {
printk("Trying to free illegal IRQ\n"); printk("Trying to free invalid IRQ\n");
return ; return ;
} }
......
...@@ -171,7 +171,7 @@ void q40_free_irq(unsigned int irq, void *dev_id) ...@@ -171,7 +171,7 @@ void q40_free_irq(unsigned int irq, void *dev_id)
{ {
case 1: case 2: case 8: case 9: case 1: case 2: case 8: case 9:
case 12: case 13: case 12: case 13:
printk("%s: ISA IRQ %d from %x illegal\n", __FUNCTION__, irq, (unsigned)dev_id); printk("%s: ISA IRQ %d from %x invalid\n", __FUNCTION__, irq, (unsigned)dev_id);
return; return;
case 11: irq=10; case 11: irq=10;
default: default:
......
...@@ -162,7 +162,7 @@ asmlinkage void do_page_fault(struct pt_regs *regs, unsigned long write, ...@@ -162,7 +162,7 @@ asmlinkage void do_page_fault(struct pt_regs *regs, unsigned long write,
tsk->thread.cp0_badvaddr = address; tsk->thread.cp0_badvaddr = address;
tsk->thread.error_code = write; tsk->thread.error_code = write;
#if 0 #if 0
printk("do_page_fault() #2: sending SIGSEGV to %s for illegal %s\n" printk("do_page_fault() #2: sending SIGSEGV to %s for invalid %s\n"
"%08lx (epc == %08lx, ra == %08lx)\n", "%08lx (epc == %08lx, ra == %08lx)\n",
tsk->comm, tsk->comm,
write ? "write access to" : "read access from", write ? "write access to" : "read access from",
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment