2003-05-27 16:42:39

by Siim Vahtre

[permalink] [raw]
Subject: 2.5.70-bk1 compilation error


CC [M] drivers/video/i810/i810_main.o
In file included from drivers/video/i810/i810_main.c:56:
drivers/video/i810/i810.h:206: error: parse error before "agp_memory"
drivers/video/i810/i810.h:206: warning: no semicolon at end of struct or
union
drivers/video/i810/i810.h:207: warning: type defaults to `int' in
declaration of `i810_cursor_memory'
drivers/video/i810/i810.h:207: warning: data definition has no type or
storage class
drivers/video/i810/i810.h:208: error: parse error before '}' token
drivers/video/i810/i810.h:246: error: field `i810_gtt' has incomplete type
drivers/video/i810/i810_main.c: In function `i810fb_getcolreg':
drivers/video/i810/i810_main.c:1078: warning: comparison is always false
due to
limited range of data type
drivers/video/i810/i810_main.c: In function `i810fb_release_resource':
drivers/video/i810/i810_main.c:1887: error: dereferencing pointer to
incomplete
type
drivers/video/i810/i810_main.c:1889: error: dereferencing pointer to
incomplete
type
make[3]: *** [drivers/video/i810/i810_main.o] Error 1
make[2]: *** [drivers/video/i810] Error 2
make[1]: *** [drivers/video] Error 2
make: *** [drivers] Error 2

--
siim@void:~$ gcc --version
gcc (GCC) 3.3 (Debian)

CONFIG_DRM_I810=y
CONFIG_FB_I810=m
CONFIG_FB_I810_GTF=y


Subject: Re: 2.5.70-bk1 compilation error

In article <[email protected]> (at Tue, 27 May 2003 19:55:42 +0300 (EET DST)), Siim Vahtre <[email protected]> says:

> CC [M] drivers/video/i810/i810_main.o
> In file included from drivers/video/i810/i810_main.c:56:
> drivers/video/i810/i810.h:206: error: parse error before "agp_memory"

Index: linux25-LINUS/drivers/video/i810/i810.h
===================================================================
RCS file: /cvsroot/usagi/usagi-backport/linux25/drivers/video/i810/i810.h,v
retrieving revision 1.1.1.4
diff -u -r1.1.1.4 i810.h
--- linux25-LINUS/drivers/video/i810/i810.h 17 Apr 2003 18:13:36 -0000 1.1.1.4
+++ linux25-LINUS/drivers/video/i810/i810.h 27 May 2003 17:48:49 -0000
@@ -203,8 +203,8 @@
#define LOCKUP 8

struct gtt_data {
- agp_memory *i810_fb_memory;
- agp_memory *i810_cursor_memory;
+ struct agp_memory *i810_fb_memory;
+ struct agp_memory *i810_cursor_memory;
};

struct mode_registers {
Index: linux25-LINUS/drivers/video/sis/sis_main.c
===================================================================
RCS file: /cvsroot/usagi/usagi-backport/linux25/drivers/video/sis/sis_main.c,v
retrieving revision 1.1.1.4
diff -u -r1.1.1.4 sis_main.c
--- linux25-LINUS/drivers/video/sis/sis_main.c 6 May 2003 12:43:02 -0000 1.1.1.4
+++ linux25-LINUS/drivers/video/sis/sis_main.c 27 May 2003 17:48:50 -0000
@@ -2868,8 +2868,8 @@
unsigned long *write_port = 0;
SIS_CMDTYPE cmd_type;
#ifndef AGPOFF
- agp_kern_info *agp_info;
- agp_memory *agp;
+ struct agp_kern_info *agp_info;
+ struct agp_memory *agp;
u32 agp_phys;
#endif
#endif

--
Hideaki YOSHIFUJI @ USAGI Project <[email protected]>
GPG FP: 9022 65EB 1ECF 3AD1 0BDF 80D8 4807 F894 E062 0EEA