bug-hurd
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Warnings removed from linux/dev/drivers/block/genhd.c


From: Alfred M. Szmidt
Subject: Re: Warnings removed from linux/dev/drivers/block/genhd.c
Date: Tue, 31 Jan 2006 00:39:39 +0100

add_bsd_partition() is only used when MACH _and_ CONFIG_BSD_DISKLABEL
are defined.

2006-01-31  Alfred M. Szmidt  <ams@gnu.org>

        * linux/dev/drivers/block/genhd.c (add_bsd_partition): Silence
        compiler warning.  Reported by Matheus Morais
        <matheus.morais@gmail.com>

--- genhd.c     20 Jul 1999 20:33:55 +0200      1.4
+++ genhd.c     31 Jan 2006 00:35:47 +0100      
@@ -111,7 +111,7 @@ static void add_partition (struct gendis
        printk(" %s", disk_name(hd, minor, buf));
 }
 
-#ifdef MACH
+#if MACH && CONFIG_BSD_DISKLABEL
 static int mach_minor;
 static void
 add_bsd_partition (struct gendisk *hd, int minor, int slice,




reply via email to

[Prev in Thread] Current Thread [Next in Thread]