Re: 2.4.14-pre3: some compilerwarnings...

Ragnar Hojland Espinosa (ragnar@ragnar-hojland.com)
Wed, 31 Oct 2001 18:12:13 +0100


On Sat, Oct 27, 2001 at 01:16:23PM -0400, Robert Love wrote:
> On Sat, 2001-10-27 at 12:51, Sven Vermeulen wrote:
> > A little grep on the stdout/stderr of "make bzImage":
>
> You can't do much about unused variables because, as you suggested, they

May I suggest the following?

-- 
____/|  Ragnar Højland      Freedom - Linux - OpenGL |    Brainbench MVP
\ o.O|  PGP94C4B2F0D27DE025BE2302C104B78C56 B72F0822 | for Unix Programming
 =(_)=  "Thou shalt not follow the NULL pointer for  | (www.brainbench.com)
   U     chaos and madness await thee at its end."

--- linux-2.4.13/arch/i386/kernel/dmi_scan.c.O Wed Oct 31 18:03:20 2001 +++ linux-2.4.13/arch/i386/kernel/dmi_scan.c Wed Oct 31 18:06:21 2001 @@ -190,6 +190,7 @@ struct dmi_blacklist * corruption problems */ +static __init int disable_ide_dma(struct dmi_blacklist *d) __attribute__ ((unused)); static __init int disable_ide_dma(struct dmi_blacklist *d) { #ifdef CONFIG_BLK_DEV_IDE --- linux-2.4.13/drivers/parport/parport_pc.c.O Wed Oct 31 17:59:16 2001 +++ linux-2.4.13/drivers/parport/parport_pc.c Wed Oct 31 18:09:14 2001 @@ -91,7 +91,7 @@ static struct superio_struct { /* For Su } superios[NR_SUPERIOS] __devinitdata = { {0,},}; static int user_specified __devinitdata = 0; -static int verbose_probing; +static int verbose_probing __attribute__ ((unused)); static int registered_parport; /* frob_control, but for ECR */ @@ -1756,6 +1756,7 @@ static int __devinit parport_PS2_support return ok; } +static int __devinit parport_ECP_supported(struct parport *pb) __attribute__ ((unused)); static int __devinit parport_ECP_supported(struct parport *pb) { int i; --- linux-2.4.13/fs/super.c.O Wed Oct 31 18:00:57 2001 +++ linux-2.4.13/fs/super.c Wed Oct 31 18:01:18 2001 @@ -1060,7 +1060,7 @@ mount_it: vfsmnt->mnt_root = dget(sb->s_root); bdput(bdev); /* sb holds a reference */ -attach_it: +attach_it: __attribute__ ((unused)) root_nd.mnt = root_vfsmnt; root_nd.dentry = root_vfsmnt->mnt_sb->s_root; graft_tree(vfsmnt, &root_nd); --- linux-2.4.13/kernel/exec_domain.c.O Wed Oct 31 17:58:03 2001 +++ linux-2.4.13/kernel/exec_domain.c Wed Oct 31 17:58:48 2001 @@ -77,7 +77,7 @@ static struct exec_domain * lookup_exec_domain(u_long personality) { struct exec_domain * ep; - char buffer[30]; + char buffer[30] __attribute__ ((unused)); u_long pers = personality(personality); read_lock(&exec_domains_lock); - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/