patch-2.0.13 linux/include/linux/major.h

Next file: linux/include/linux/pci.h
Previous file: linux/include/linux/if_strip.h
Back to the patch index
Back to the overall index

diff -u --recursive --new-file v2.0.12/linux/include/linux/major.h linux/include/linux/major.h
@@ -73,14 +73,12 @@
  * Tests for SCSI devices.
  */
 
-#define SCSI_MAJOR(M) \
+#define SCSI_BLK_MAJOR(M) \
   ((M) == SCSI_DISK_MAJOR	\
-   || (M) == SCSI_TAPE_MAJOR	\
-   || (M) == SCSI_CDROM_MAJOR	\
-   || (M) == SCSI_GENERIC_MAJOR)
+   || (M) == SCSI_CDROM_MAJOR)
 
-static inline int scsi_major(int m) {
-	return SCSI_MAJOR(m);
+static inline int scsi_blk_major(int m) {
+	return SCSI_BLK_MAJOR(m);
 }
 
 #endif

FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen, slshen@lbl.gov