[PATCH] Fuse chardevice number

From: Jan Engelhardt
Date: Wed Jul 13 2005 - 15:24:04 EST


Hi Miklos and LKML,



could this patch be useful? It's rather cosmetics, but at least fuse did not
die of MISC_DYNAMIC_MINOR.

(Base is a linux-2.6.13-rc1)

diff -Pdpru S0706/include/linux/fuse.h AS17/include/linux/fuse.h
--- S0706/include/linux/fuse.h 2005-07-07 20:53:42.000000000 +0200
+++ AS17/include/linux/fuse.h 2005-07-09 11:38:55.000000000 +0200
@@ -9,6 +9,8 @@
/* This file defines the kernel interface of FUSE */

#include <asm/types.h>
+#include <linux/major.h>
+#include <linux/miscdevice.h>

/** Version number of this interface */
#define FUSE_KERNEL_VERSION 7
@@ -20,10 +22,10 @@
#define FUSE_ROOT_ID 1

/** The major number of the fuse character device */
-#define FUSE_MAJOR 10
+#define FUSE_MAJOR MISC_MAJOR

/** The minor number of the fuse character device */
-#define FUSE_MINOR 229
+#define FUSE_MINOR MISC_DYNAMIC_MINOR

/* Make sure all structures are padded to 64bit boundary, so 32bit
userspace works under 64bit kernels */
#### EOF


Jan Engelhardt
--
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/