Re: [uml-devel] uml-patch-2.5.39

From: Oleg Drokin (green@namesys.com)
Date: Tue Oct 01 2002 - 02:44:54 EST


Hello!

On Mon, Sep 30, 2002 at 09:26:21PM +0100, James Stevenson wrote:
> > The build works again.
> not as far as i can tell.
> just after typing make
> Makefile:363: target `arch/um/os-Linux' given more than once in the same
> rule.
> Makefile:363: target `arch/um/kernel' given more than once in the same
> rule.
> Makefile:363: target `arch/um/drivers' given more than once in the same
> rule.
> Makefile:363: target `arch/um/sys-i386' given more than once in the same
> rule.
> Makefile:533: target `_modinst_arch/um/os-Linux' given more than once in
> the same rule.
> Makefile:533: target `_modinst_arch/um/kernel' given more than once in
> the same rule.
> Makefile:533: target `_modinst_arch/um/drivers' given more than once in
> the same rule.
> Makefile:533: target `_modinst_arch/um/sys-i386' given more than once in
> the same rule.

Here's what I need to apply before I can build bk-current with UML support.
If you use Jeff's patch to 2.5.39, you then only need Makefle part of the patch,
I guess.

Jeff: BTW, UML crashes for me on shutdown quite often, if I have
CONFIG_DEBUG_SLAB enabled. Just before the crash it warns about
winch_interrupt : read failed, errno = 9
fd 57 is losing SIGWINCH support
(this is immediatelly after 'System halted.' message from kernel).
And then kernel mode fault at 0x5a5a5a5e

Bye,
    Oleg

===== arch/um/Makefile 1.5 vs edited =====
--- 1.5/arch/um/Makefile Tue Oct 1 10:42:18 2002
+++ edited/arch/um/Makefile Tue Oct 1 11:20:00 2002
@@ -30,11 +30,6 @@
 LINK_PROFILE = $(PROFILE) -Wl,--wrap,__monstartup
 endif
 
-ARCH_SUBDIRS = $(ARCH_DIR)/drivers $(ARCH_DIR)/kernel \
- $(ARCH_DIR)/sys-$(SUBARCH) $(ARCH_DIR)/os-$(OS)
-
-SUBDIRS += $(ARCH_SUBDIRS)
-
 core-y += $(ARCH_DIR)/kernel/ \
                            $(ARCH_DIR)/drivers/ \
                            $(ARCH_DIR)/sys-$(SUBARCH)/
===== arch/um/drivers/ubd_kern.c 1.5 vs edited =====
--- 1.5/arch/um/drivers/ubd_kern.c Tue Oct 1 10:56:09 2002
+++ edited/arch/um/drivers/ubd_kern.c Tue Oct 1 11:33:18 2002
@@ -406,7 +406,7 @@
         ubd_gendisk[n].major = MAJOR_NR;
         ubd_gendisk[n].first_minor = n << UBD_SHIFT;
         ubd_gendisk[n].minor_shift = UBD_SHIFT;
- ubd_gendisk[n].fops = &ubd_fops;
+ ubd_gendisk[n].fops = &ubd_blops;
         if (fakehd_set)
                 sprintf(ubd_gendisk[n].disk_name, "hd%c", n + 'a');
         else
@@ -416,7 +416,7 @@
                 fake_gendisk[n].major = fake_major;
                 fake_gendisk[n].first_minor = n << UBD_SHIFT;
                 fake_gendisk[n].minor_shift = UBD_SHIFT;
- fake_gendisk[n].fops = &ubd_fops;
+ fake_gendisk[n].fops = &ubd_blops;
                 sprintf(fake_gendisk[n].disk_name, "ubd%d", n);
         }
 
@@ -445,7 +445,7 @@
          if(real == NULL) return(-1);
          ubd_dev[n].real = real;
  
- make_ide_entries(ubd_gendisk[n].name);
+ make_ide_entries(ubd_gendisk[n].disk_name);
         return(0);
 }
 
@@ -863,6 +863,7 @@
                         return(-EFAULT);
                 return(0);
         }
+ return -ENOTTY;
 }
 
 static int ubd_revalidate(kdev_t rdev)
-
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/



This archive was generated by hypermail 2b29 : Mon Oct 07 2002 - 22:00:25 EST