Patch to make current cvs (20010831) compile again for DECstations
Subsystems (3)
Hallo everybody,
the current Linux/MIPS cvs at oss.sgi.com is broken with respect to DECstations. The framebuffer drivers and the dz driver do not compile anymore. I have attached a small patch to get a compileable kernel again (the dz part compiles but I could not test it - I currently have no machine with dz serial available for testing). Harald, could you apply the patch to the cvs?
Greetings,
Karsten
Signature · 4 lines
#include <standard_disclaimer> Nach Paragraph 28 Abs. 3 Bundesdatenschutzgesetz widerspreche ich der Nutzung oder Uebermittlung meiner Daten fuer Werbezwecke oder fuer die Markt- oder Meinungsforschung.
drivers/char/dz.c +1 -1
@@ -1320,7 +1320,7 @@int __init dz_init (void ) { -int i, flags, tmp; +int i, tmp;long flags;struct dz_serial *info;
drivers/char/dz.h +2 -0
@@ -10,6 +10,8 @@#ifndef DZ_SERIAL_H #define DZ_SERIAL_H +#define SERIAL_MAGIC 0x5301 +/* * Definitions for the Control and Status Received. */
drivers/video/maxinefb.c +7 -2
@@ -79,7 +79,7 @@ };static int currcon =0 ; -struct maxinefb_par current_par; +struct maxinefb_par maxinefb_current_par;/* Reference to machine type set in arch/mips/dec/prom/identify.c, KM */ extern unsigned long mips_machtype;
@@ -145,7 +145,7 @@static void maxinefb_get_par (struct maxinefb_par *par) { - *par = current_par; + *par = maxinefb_current_par; }static int maxinefb_fb_update_var (int con,struct fb_info *info)
@@ -375,6 +375,11 @@return 0 ; } + +void __init maxinefb_setup (char *options,int *ints) +{ +} + static void __exit maxinefb_exit(void) {
drivers/video/pmag-ba-fb.c +2 -2
@@ -91,7 +91,7 @@ };static int currcon =0 ; -struct pmagbafb_par current_par; +struct pmagbafb_par pmagbafb_current_par;static void pmagbafb_encode_var (struct fb_var_screeninfo *var,struct pmagbafb_par *par)
@@ -127,7 +127,7 @@static void pmagbafb_get_par (struct pmagbafb_par *par) { - *par = current_par; + *par = pmagbafb_current_par; }static int pmagba_fb_update_var (int con,struct fb_info *info)
drivers/video/pmagb-b-fb.c +2 -2
@@ -94,7 +94,7 @@ };static int currcon =0 ; -struct pmagbbfb_par current_par; +struct pmagbbfb_par pmagbbfb_current_par;static void pmagbbfb_encode_var (struct fb_var_screeninfo *var,struct pmagbbfb_par *par)
@@ -130,7 +130,7 @@static void pmagbbfb_get_par (struct pmagbbfb_par *par) { - *par = current_par; + *par = pmagbbfb_current_par; }static int pmagbb_fb_update_var (int con,struct fb_info *info)
On Fri, Aug 31, 2001 at 08:20:10PM +0200, Karsten Merker wrote:
[snip]
Review
Quoted 6 lines
(quoted diff) +5
-0+ +void __init maxinefb_setup(char *options, int *ints) +{ +} +
[snip]
Since this isn't being used at all, why not just remove it from fbmem.c?
Regards,
Signature · 2 lines
Paul Mundt <[email protected]> MontaVista Software, Inc.
Index: fbmem.c
===================================================================
RCS file: /cvs/linux/drivers/video/fbmem.c,v
retrieving revision 1.42
fbmem.c +1 -2
@@ -123,7 +123,6 @@extern int pmagbbfb_init (void );extern int pmagbbfb_setup (char *options,int *ints);extern void maxinefb_init (void ); -extern void maxinefb_setup (char *options,int *ints);extern int tx3912fb_init (void );extern int radeonfb_init (void );extern int radeonfb_setup (char *);
@@ -309,7 +308,7 @@#endif #ifdef CONFIG_FB_MAXINE - { "maxinefb", maxinefb_init, maxinefb_setup }, + { "maxinefb", maxinefb_init, NULL }, #endif