Messages in this thread Patch in this message | | | From | Michal Jaegermann <> | Subject | corrections in sys_nautilus.c | Date | Thu, 30 Dec 1999 12:57:54 -0700 (MST) |
| |
Compiling 2.2.14 kernels (and likely other 2.2 versions as well) on Alpha brings, among others, the following warnings:
sys_nautilus.c: In function `nautilus_kill_arch': sys_nautilus.c:113: warning: passing arg 4 of `irongate_hose_write_config_byte' makes integer from pointer without a cast sys_nautilus.c: In function `ev6_crd_interp': sys_nautilus.c:298: warning: int format, different type arg (arg 4) sys_nautilus.c:298: warning: too many arguments for format sys_nautilus.c: In function `naut_sys_machine_check': sys_nautilus.c:431: warning: implicit declaration of function `irongate_pci_clr_err' sys_nautilus.c: In function `nautilus_machine_check': sys_nautilus.c:501: warning: unsigned int format, different type arg (arg 2)
Here is an "obviously correct" fix for a typo ('$' where '%' was meant) which is causing "too many arguments for format":
--- linux-2.2.14p/arch/alpha/kernel/sys_nautilus.c~ Thu Dec 16 10:21:24 1999 +++ linux-2.2.14p/arch/alpha/kernel/sys_nautilus.c Thu Dec 30 12:38:02 1999 @@ -295,7 +295,7 @@ case EV6__C_STAT__PROBE_BC_ERR0: case EV6__C_STAT__PROBE_BC_ERR1: /* Bcache single-bit error on a probe hit */ - sprintf(interp, "%s: C_STAT[PROBE_BC_ERR]\n Bcache single-bit error on a probe hit, addr 0x$lX, bit %d", slotb, L->C_ADDR, ev6_syn2bit(L->DC0_SYNDROME, L->DC1_SYNDROME)); + sprintf(interp, "%s: C_STAT[PROBE_BC_ERR]\n Bcache single-bit error on a probe hit, addr 0x%lX, bit %d", slotb, L->C_ADDR, ev6_syn2bit(L->DC0_SYNDROME, L->DC1_SYNDROME)); return; default: /* not one of these */ The other places, especially line 113 (another typo?) also look doubtful but this should be checked by the authors.
Michal michal@harddata.com
- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.rutgers.edu Please read the FAQ at http://www.tux.org/lkml/
| |