Patch: linux-2.5.2-pre8/drivers/parport/parport_cs.c need <linux/major.h> to compile
linux-2.5.2/drivers/parport/parport_cs.c needed to include
<linux/major.h> to get LP_MAJOR in order to compile. To address a compiler warning, I also put an appropriate ifdef around the declaration of a variable that is only used with certain kernel versions.
I have not tested this code. I only know that it now compiles.
Signature · 4 lines
Adam J. Richter __ ______________ 4880 Stevens Creek Blvd, Suite 104 [email protected] \ / San Jose, California 95129-1034 +1 408 261-6630 | g g d r a s i l United States of America fax +1 408 261-6631 "Free Software For The Rest Of Us."
drivers/parport/parport_cs.c +3 -0
@@ -45,6 +45,7 @@#include <linux/string.h> #include <linux/timer.h> #include <linux/ioport.h> +#include <linux/major.h> #include <linux/parport.h> #include <linux/parport_pc.h>
@@ -106,7 +107,9 @@static dev_link_t *dev_list =NULL ;extern struct parport_operations parport_pc_ops; +#if (LINUX_VERSION_CODE <VERSION (2 ,3 ,6 ))static struct parport_operations parport_cs_ops; +#endif /*====================================================================*/