fix current BK tree compilation with devfs enabled

fix current BK tree compilation with devfs enabled

Post by Christoph Hellwi » Wed, 14 Aug 2002 06:40:04



Not that I care for devfs, but there was at least one report on lkml.

I tried to also put the devfs_handle_t under CONFIG_DEVFS_FS, but the
devfs wrappers require it.  And yes, I'm seriously pissed that devfs
puts wordsize objects everywhere even if not enabled.

--- linux-2.4.20-bk-20020810/include/linux/genhd.h      Sat Aug 10 14:37:16 2002

        unsigned long start_sect;
        unsigned long nr_sects;
        devfs_handle_t de;              /* primary (master) devfs entry  */
-
+#ifdef CONFIG_DEVFS_FS
+       int number;
+#endif /* CONFIG_DEVFS_FS */
 #ifdef CONFIG_BLK_STATS
        /* Performance stats: */
        unsigned int ios_in_flight;
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in

More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

 
 
 

1. fix UP links - current bk tree

Hi,

UP links are failing with the current bk tree.  migration_init is only
defined in sched.c when SMP is set so we should not try to call it
from main.c.

# This is a BitKeeper generated patch for the following project:
# Project Name: Linux kernel tree
# This patch format is intended for GNU patch command version 2.5 or higher.
# This patch includes the following deltas:
#                  ChangeSet    1.483   -> 1.484  
#                init/main.c    1.59    -> 1.60  
#
# The following is the BitKeeper ChangeSet Log
# --------------------------------------------

# Fix so UP links do not ask for migration_init
# --------------------------------------------
#
diff -Nru a/init/main.c b/init/main.c
--- a/init/main.c       Thu Aug  1 08:02:01 2002

 static void do_pre_smp_initcalls(void)
 {
-       extern int migration_init(void);
        extern int spawn_ksoftirqd(void);
+#ifdef CONFIG_SMP
+       extern int migration_init(void);

        migration_init();
+#endif
        spawn_ksoftirqd();
 }

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in

More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

2. netcfg problems

3. UP compilation fix for bk tree

4. Unable to open an initial console

5. Fix: BK-Current doesn't compile w/o SCSI enabled

6. XF86Config settings for STB ERGO and ViewSonic 4E?

7. Nightly regression runs against current bk tree

8. Which kernel will work with a dual pentium

9. bad: schedule() with irqs disabled! - current bk tree

10. PANIC caused by dequeue_signal() in current Linus BK tree

11. pfn-Functionset out of order for sparc64 in current Bk tree?

12. IDE from current bk tree, UDMA and two channels...

13. BUG: Current 2.5-BK tree dies on boot!