lkml.org 
[lkml]   [1999]   [Dec]   [30]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
From
Subjectcorrections in sys_nautilus.c
Date

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/

\
 
 \ /
  Last update: 2005-03-22 13:55    [W:0.229 / U:0.172 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site