NetBSD-Bugs archive

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

kern/43056: recent changes to device-mapper.c broke i386 "ALL" kernel



>Number:         43056
>Category:       kern
>Synopsis:       recent changes to device-mapper.c broke i386 "ALL" kernel
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    kern-bug-people
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Thu Mar 25 03:40:01 +0000 2010
>Originator:     Greg A. Woods
>Release:        NetBSD-current 2010/03/24-18:00EST
>Organization:
Planix, Inc.; Toronto, Ontario; Canada
>Environment:
System: NetBSD-current
Architecture: i386
Machine: i386
>Description:

cc1: warnings being treated as errors
/rest/work/woods/m-NetBSD-current/sys/dev/dm/device-mapper.c:303: warning: 
'dmdestroy' defined but not used

>How-To-Repeat:

        try to build i386 "ALL" kernel

>Fix:

        something maybe like this?

--- device-mapper.c     23 Mar 2010 23:08:44 -0400      1.21
+++ device-mapper.c     24 Mar 2010 20:43:19 -0400      
@@ -59,7 +59,9 @@
 
 /* attach and detach routines */
 void dmattach(int);
+#ifdef _MODULE
 static int dmdestroy(void);
+#endif
 
 static void dm_doinit(void);
 
@@ -297,6 +299,7 @@
        }
 }
 
+#ifdef _MODULE
 /* Destroy routine */
 static int
 dmdestroy(void)
@@ -313,6 +316,7 @@
 
        return 0;
 }
+#endif
 
 static int
 dmopen(dev_t dev, int flags, int mode, struct lwp *l)



Home | Main Index | Thread Index | Old Index