Linux-kernel mailing list archive 1997-48,: kernel 2.1.70: patch for drivers/cdrom/cdrom.c

# kernel 2.1.70: patch for drivers/cdrom/cdrom.c

Gestor de Sistemes (sistema@readysoft.es)
Wed, 3 Dec 1997 11:39:13 +0100 (MET)

- Messages sorted by: [ date ][ thread ][ subject ][ author ]
- Next message: Alan Cox: "Re: Faulty kernel patch instructions"
- Previous message: Jakub Jelinek: "Re: solaris emulation under sparc linux 2.0.30"

--578667187-269167349-881145559=:1849
Content-Type: TEXT/plain; charset=iso-8859-1
Content-Transfer-Encoding: 8BIT

It only changes the order of variable and function declarations.
Otherwise it doesn´t compile.

--578667187-269167349-881145559=:1849
Content-Type: TEXT/plain; CHARSET=US-ASCII
Content-Description: diff.cdrom

--- linux/drivers/cdrom/cdrom.c.orig Wed Dec 3 11:16:30 1997
+++ linux/drivers/cdrom/cdrom.c Wed Dec 3 11:18:00 1997
@@ -882,22 +882,6 @@
#define CDROM_STR_SIZE 1000
static char cdrom_drive_info[CDROM_STR_SIZE]="info\n";
-#ifdef MODULE
-
-static struct ctl_table_header *cdrom_sysctl_header;
-
-static void cdrom_sysctl_register(void)
-{
- cdrom_sysctl_header = register_sysctl_table(cdrom_root_table, 0);
-}
-
-static void cdrom_sysctl_unregister(void)
-{
- unregister_sysctl_table(cdrom_sysctl_header);
-}
-
-#endif
-
/* Place files in /proc/sys/dev/cdrom */
ctl_table cdrom_table[] = {
{DEV_CDROM_INFO, "info", &cdrom_drive_info,
@@ -916,6 +900,22 @@
{0}
};
+
+#ifdef MODULE
+
+static struct ctl_table_header *cdrom_sysctl_header;
+
+static void cdrom_sysctl_register(void)
+{
+ cdrom_sysctl_header = register_sysctl_table(cdrom_root_table, 0);
+}
+
+static void cdrom_sysctl_unregister(void)
+{
+ unregister_sysctl_table(cdrom_sysctl_header);
+}
+
+#endif
int cdrom_sysctl_info(ctl_table *ctl, int write, struct file * filp,
void *buffer, size_t *lenp)

--578667187-269167349-881145559=:1849--

- Next message: Alan Cox: "Re: Faulty kernel patch instructions"
- Previous message: Jakub Jelinek: "Re: solaris emulation under sparc linux 2.0.30"