bsd-drm-4.3.0-kernelsource.tar.gz problem

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



hi, alanh
    i found your XFree86 driver releases from the current CVS and i tryed to install them but they don't work: i've errors at compile time and i don't able to program in C :); i've a FreeBSD 5.2.1 in a toshiba tecra m1 with trident video card.......i've attached my error log file
 
 
ps: sorry for my english
 
 
 
thanks in advance
luca s.
===> mga
Warning: Object directory not changed from original /root/drm/mga
@ -> /usr/src/sys
machine -> /usr/src/sys/i386/include
awk -f @/tools/makeobjops.awk @/kern/device_if.m -h
awk -f @/tools/makeobjops.awk @/kern/bus_if.m -h
awk -f @/tools/makeobjops.awk @/dev/pci/pci_if.m -h
touch opt_drm.h
echo  >> opt_drm.h
echo "#define DRM_LINUX 1" >> opt_drm.h
cc -O -pipe -mcpu=pentiumpro  -I. -I..  -D_KERNEL -Wall -Wredundant-decls -Wnested-externs -Wstrict-prototypes  -Wmissing-prototypes -Wpointer-arith -Winline -Wcast-qual  -fformat-extensions -std=c99 -DKLD_MODULE -nostdinc -I-  -I. -I.. -I. -I@ -I@/../include -I/usr/include -finline-limit=15000 -fno-common  -mno-align-long-strings -mpreferred-stack-boundary=2 -ffreestanding -Wall -Wredundant-decls -Wnested-externs -Wstrict-prototypes  -Wmissing-prototypes -Wpointer-arith -Winline -Wcast-qual  -fformat-extensions -std=c99 -c /root/drm/mga/../mga_drv.c
/root/drm/mga_drv.c:34:17: mga.h: No such file or directory
In file included from ../drmP.h:73,
                 from /root/drm/mga_drv.c:35:
../drm_os_freebsd.h:30:24: pci/pcivar.h: No such file or directory
In file included from ../drmP.h:73,
                 from /root/drm/mga_drv.c:35:
../drm_os_freebsd.h:200: error: `DRM' declared as function returning an array
../drm_os_freebsd.h:200: warning: parameter names (without types) in function declaration
../drm_os_freebsd.h:360: error: `DRM' declared as function returning a function
../drm_os_freebsd.h:360: warning: parameter names (without types) in function declaration
../drm_os_freebsd.h:360: warning: redundant redeclaration of `DRM' in same scope
../drm_os_freebsd.h:200: warning: previous declaration of `DRM'
../drm_os_freebsd.h:361: error: `DRM' declared as function returning a function
../drm_os_freebsd.h:361: warning: parameter names (without types) in function declaration
../drm_os_freebsd.h:361: warning: redundant redeclaration of `DRM' in same scope
../drm_os_freebsd.h:360: warning: previous declaration of `DRM'
../drm_os_freebsd.h:362: error: `DRM' declared as function returning a function
../drm_os_freebsd.h:362: warning: parameter names (without types) in function declaration
../drm_os_freebsd.h:362: warning: redundant redeclaration of `DRM' in same scope
../drm_os_freebsd.h:361: warning: previous declaration of `DRM'
../drm_os_freebsd.h:363: error: `DRM' declared as function returning a function
../drm_os_freebsd.h:363: warning: parameter names (without types) in function declaration
../drm_os_freebsd.h:363: warning: redundant redeclaration of `DRM' in same scope
../drm_os_freebsd.h:362: warning: previous declaration of `DRM'
../drm_os_freebsd.h:364: error: `DRM' declared as function returning a function
../drm_os_freebsd.h:364: warning: parameter names (without types) in function declaration
../drm_os_freebsd.h:364: warning: redundant redeclaration of `DRM' in same scope
../drm_os_freebsd.h:363: warning: previous declaration of `DRM'
../drm_os_freebsd.h:365: error: `DRM' declared as function returning a function
../drm_os_freebsd.h:365: warning: parameter names (without types) in function declaration
../drm_os_freebsd.h:365: warning: redundant redeclaration of `DRM' in same scope
../drm_os_freebsd.h:364: warning: previous declaration of `DRM'
../drm_os_freebsd.h:366: error: `DRM' declared as function returning a function
../drm_os_freebsd.h:366: warning: parameter names (without types) in function declaration
../drm_os_freebsd.h:366: warning: redundant redeclaration of `DRM' in same scope
../drm_os_freebsd.h:365: warning: previous declaration of `DRM'
../drm_os_freebsd.h:367: error: `DRM' declared as function returning a function
../drm_os_freebsd.h:367: warning: parameter names (without types) in function declaration
../drm_os_freebsd.h:367: warning: redundant redeclaration of `DRM' in same scope
../drm_os_freebsd.h:366: warning: previous declaration of `DRM'
../drm_os_freebsd.h:368: error: `DRM' declared as function returning a function
../drm_os_freebsd.h:368: warning: parameter names (without types) in function declaration
../drm_os_freebsd.h:368: warning: redundant redeclaration of `DRM' in same scope
../drm_os_freebsd.h:367: warning: previous declaration of `DRM'
../drm_os_freebsd.h:370: error: `DRM' declared as function returning a function
../drm_os_freebsd.h:370: warning: parameter names (without types) in function declaration
../drm_os_freebsd.h:370: warning: redundant redeclaration of `DRM' in same scope
../drm_os_freebsd.h:368: warning: previous declaration of `DRM'
../drm_os_freebsd.h:372: error: `DRM' declared as function returning a function
../drm_os_freebsd.h:372: warning: parameter names (without types) in function declaration
../drm_os_freebsd.h:372: warning: redundant redeclaration of `DRM' in same scope
../drm_os_freebsd.h:370: warning: previous declaration of `DRM'
../drm_os_freebsd.h:375: error: `DRM' declared as function returning a function
../drm_os_freebsd.h:375: warning: parameter names (without types) in function declaration
../drm_os_freebsd.h:375: warning: redundant redeclaration of `DRM' in same scope
../drm_os_freebsd.h:372: warning: previous declaration of `DRM'
../drm_os_freebsd.h:376: error: `DRM' declared as function returning a function
../drm_os_freebsd.h:376: warning: parameter names (without types) in function declaration
../drm_os_freebsd.h:376: warning: redundant redeclaration of `DRM' in same scope
../drm_os_freebsd.h:375: warning: previous declaration of `DRM'
../drm_os_freebsd.h:377: error: `DRM' declared as function returning a function
../drm_os_freebsd.h:377: warning: parameter names (without types) in function declaration
../drm_os_freebsd.h:377: warning: redundant redeclaration of `DRM' in same scope
../drm_os_freebsd.h:376: warning: previous declaration of `DRM'
../drm_os_freebsd.h:378: error: `DRM' declared as function returning a function
../drm_os_freebsd.h:378: warning: parameter names (without types) in function declaration
../drm_os_freebsd.h:378: warning: redundant redeclaration of `DRM' in same scope
../drm_os_freebsd.h:377: warning: previous declaration of `DRM'
../drm_os_freebsd.h:379: error: `DRM' declared as function returning a function
../drm_os_freebsd.h:379: warning: parameter names (without types) in function declaration
../drm_os_freebsd.h:379: warning: redundant redeclaration of `DRM' in same scope
../drm_os_freebsd.h:378: warning: previous declaration of `DRM'
../drm_os_freebsd.h:380: error: `DRM' declared as function returning a function
../drm_os_freebsd.h:380: warning: parameter names (without types) in function declaration
../drm_os_freebsd.h:380: warning: redundant redeclaration of `DRM' in same scope
../drm_os_freebsd.h:379: warning: previous declaration of `DRM'
../drm_os_freebsd.h:383: error: `DRM' declared as function returning a function
../drm_os_freebsd.h:383: warning: parameter names (without types) in function declaration
../drm_os_freebsd.h:383: warning: redundant redeclaration of `DRM' in same scope
../drm_os_freebsd.h:380: warning: previous declaration of `DRM'
../drm_os_freebsd.h:384: error: `DRM' declared as function returning a function
../drm_os_freebsd.h:384: warning: parameter names (without types) in function declaration
../drm_os_freebsd.h:384: warning: redundant redeclaration of `DRM' in same scope
../drm_os_freebsd.h:383: warning: previous declaration of `DRM'
../drm_os_freebsd.h:385: error: `DRM' declared as function returning a function
../drm_os_freebsd.h:385: warning: parameter names (without types) in function declaration
../drm_os_freebsd.h:385: warning: redundant redeclaration of `DRM' in same scope
../drm_os_freebsd.h:384: warning: previous declaration of `DRM'
../drm_os_freebsd.h:386: error: `DRM' declared as function returning a function
../drm_os_freebsd.h:386: warning: parameter names (without types) in function declaration
../drm_os_freebsd.h:386: warning: redundant redeclaration of `DRM' in same scope
../drm_os_freebsd.h:385: warning: previous declaration of `DRM'
../drm_os_freebsd.h:387: error: `DRM' declared as function returning a function
../drm_os_freebsd.h:387: warning: parameter names (without types) in function declaration
../drm_os_freebsd.h:387: warning: redundant redeclaration of `DRM' in same scope
../drm_os_freebsd.h:386: warning: previous declaration of `DRM'
../drm_os_freebsd.h:388: error: `DRM' declared as function returning a function
../drm_os_freebsd.h:388: warning: parameter names (without types) in function declaration
../drm_os_freebsd.h:388: warning: redundant redeclaration of `DRM' in same scope
../drm_os_freebsd.h:387: warning: previous declaration of `DRM'
../drm_os_freebsd.h:389: error: `DRM' declared as function returning a function
../drm_os_freebsd.h:389: warning: parameter names (without types) in function declaration
../drm_os_freebsd.h:389: warning: redundant redeclaration of `DRM' in same scope
../drm_os_freebsd.h:388: warning: previous declaration of `DRM'
../drm_os_freebsd.h:390: error: `DRM' declared as function returning a function
../drm_os_freebsd.h:390: warning: parameter names (without types) in function declaration
../drm_os_freebsd.h:390: warning: redundant redeclaration of `DRM' in same scope
../drm_os_freebsd.h:389: warning: previous declaration of `DRM'
../drm_os_freebsd.h:391: error: `DRM' declared as function returning a function
../drm_os_freebsd.h:391: warning: parameter names (without types) in function declaration
../drm_os_freebsd.h:391: warning: redundant redeclaration of `DRM' in same scope
../drm_os_freebsd.h:390: warning: previous declaration of `DRM'
../drm_os_freebsd.h:394: error: `DRM' declared as function returning a function
../drm_os_freebsd.h:394: warning: parameter names (without types) in function declaration
../drm_os_freebsd.h:394: warning: redundant redeclaration of `DRM' in same scope
../drm_os_freebsd.h:391: warning: previous declaration of `DRM'
../drm_os_freebsd.h:395: error: `DRM' declared as function returning a function
../drm_os_freebsd.h:395: warning: parameter names (without types) in function declaration
../drm_os_freebsd.h:395: warning: redundant redeclaration of `DRM' in same scope
../drm_os_freebsd.h:394: warning: previous declaration of `DRM'
../drm_os_freebsd.h:398: error: `DRM' declared as function returning a function
../drm_os_freebsd.h:398: warning: parameter names (without types) in function declaration
../drm_os_freebsd.h:398: warning: redundant redeclaration of `DRM' in same scope
../drm_os_freebsd.h:395: warning: previous declaration of `DRM'
../drm_os_freebsd.h:399: error: `DRM' declared as function returning a function
../drm_os_freebsd.h:399: warning: parameter names (without types) in function declaration
../drm_os_freebsd.h:399: warning: redundant redeclaration of `DRM' in same scope
../drm_os_freebsd.h:398: warning: previous declaration of `DRM'
../drm_os_freebsd.h:402: error: `DRM' declared as function returning a function
../drm_os_freebsd.h:402: warning: parameter names (without types) in function declaration
../drm_os_freebsd.h:402: warning: redundant redeclaration of `DRM' in same scope
../drm_os_freebsd.h:399: warning: previous declaration of `DRM'
../drm_os_freebsd.h:403: error: `DRM' declared as function returning a function
../drm_os_freebsd.h:403: warning: parameter names (without types) in function declaration
../drm_os_freebsd.h:403: warning: redundant redeclaration of `DRM' in same scope
../drm_os_freebsd.h:402: warning: previous declaration of `DRM'
../drm_os_freebsd.h:404: error: `DRM' declared as function returning a function
../drm_os_freebsd.h:404: warning: parameter names (without types) in function declaration
../drm_os_freebsd.h:404: warning: redundant redeclaration of `DRM' in same scope
../drm_os_freebsd.h:403: warning: previous declaration of `DRM'
../drm_os_freebsd.h:407: error: `DRM' declared as function returning a function
../drm_os_freebsd.h:407: warning: parameter names (without types) in function declaration
../drm_os_freebsd.h:407: warning: redundant redeclaration of `DRM' in same scope
../drm_os_freebsd.h:404: warning: previous declaration of `DRM'
../drm_os_freebsd.h:408: error: `DRM' declared as function returning a function
../drm_os_freebsd.h:408: warning: parameter names (without types) in function declaration
../drm_os_freebsd.h:408: warning: redundant redeclaration of `DRM' in same scope
../drm_os_freebsd.h:407: warning: previous declaration of `DRM'
../drm_os_freebsd.h:421: error: `DRM' declared as function returning a function
../drm_os_freebsd.h:421: warning: parameter names (without types) in function declaration
../drm_os_freebsd.h:421: warning: redundant redeclaration of `DRM' in same scope
../drm_os_freebsd.h:408: warning: previous declaration of `DRM'
../drm_os_freebsd.h:450: error: `DRM' declared as function returning a function
../drm_os_freebsd.h:450: warning: parameter names (without types) in function declaration
../drm_os_freebsd.h:450: warning: redundant redeclaration of `DRM' in same scope
../drm_os_freebsd.h:421: warning: previous declaration of `DRM'
../drm_os_freebsd.h:451: error: `DRM' declared as function returning a function
../drm_os_freebsd.h:451: warning: parameter names (without types) in function declaration
../drm_os_freebsd.h:451: warning: redundant redeclaration of `DRM' in same scope
../drm_os_freebsd.h:450: warning: previous declaration of `DRM'
In file included from /root/drm/mga_drv.c:35:
../drmP.h:508: warning: parameter names (without types) in function declaration
../drmP.h:508: warning: redundant redeclaration of `DRM' in same scope
../drm_os_freebsd.h:451: warning: previous declaration of `DRM'
../drmP.h:509: error: `DRM' declared as function returning a function
../drmP.h:509: warning: parameter names (without types) in function declaration
../drmP.h:509: warning: redundant redeclaration of `DRM' in same scope
../drmP.h:508: warning: previous declaration of `DRM'
../drmP.h:510: error: `DRM' declared as function returning a function
../drmP.h:510: warning: parameter names (without types) in function declaration
../drmP.h:510: warning: redundant redeclaration of `DRM' in same scope
../drmP.h:509: warning: previous declaration of `DRM'
../drmP.h:514: error: `DRM' declared as function returning a function
../drmP.h:514: warning: parameter names (without types) in function declaration
../drmP.h:514: warning: redundant redeclaration of `DRM' in same scope
../drmP.h:510: warning: previous declaration of `DRM'
../drmP.h:515: error: `DRM' declared as function returning a function
../drmP.h:515: warning: parameter names (without types) in function declaration
../drmP.h:515: warning: redundant redeclaration of `DRM' in same scope
../drmP.h:514: warning: previous declaration of `DRM'
../drmP.h:518: error: `DRM' declared as function returning a function
../drmP.h:518: warning: parameter names (without types) in function declaration
../drmP.h:518: warning: redundant redeclaration of `DRM' in same scope
../drmP.h:515: warning: previous declaration of `DRM'
../drmP.h:519: error: `DRM' declared as function returning a function
../drmP.h:519: warning: parameter names (without types) in function declaration
../drmP.h:519: warning: redundant redeclaration of `DRM' in same scope
../drmP.h:518: warning: previous declaration of `DRM'
../drmP.h:522: error: `DRM' declared as function returning a function
../drmP.h:522: warning: parameter names (without types) in function declaration
../drmP.h:522: warning: redundant redeclaration of `DRM' in same scope
../drmP.h:519: warning: previous declaration of `DRM'
../drmP.h:523: error: `DRM' declared as function returning a function
../drmP.h:523: warning: parameter names (without types) in function declaration
../drmP.h:523: warning: redundant redeclaration of `DRM' in same scope
../drmP.h:522: warning: previous declaration of `DRM'
../drmP.h:524: error: `DRM' declared as function returning a function
../drmP.h:524: warning: parameter names (without types) in function declaration
../drmP.h:524: warning: redundant redeclaration of `DRM' in same scope
../drmP.h:523: warning: previous declaration of `DRM'
../drmP.h:526: error: `DRM' declared as function returning a function
../drmP.h:526: warning: parameter names (without types) in function declaration
../drmP.h:526: warning: redundant redeclaration of `DRM' in same scope
../drmP.h:524: warning: previous declaration of `DRM'
../drmP.h:527: error: `DRM' declared as function returning a function
../drmP.h:527: warning: parameter names (without types) in function declaration
../drmP.h:527: warning: redundant redeclaration of `DRM' in same scope
../drmP.h:526: warning: previous declaration of `DRM'
../drmP.h:528: error: `DRM' declared as function returning a function
../drmP.h:528: warning: parameter names (without types) in function declaration
../drmP.h:528: warning: redundant redeclaration of `DRM' in same scope
../drmP.h:527: warning: previous declaration of `DRM'
../drmP.h:529: error: `DRM' declared as function returning a function
../drmP.h:529: warning: parameter names (without types) in function declaration
../drmP.h:529: warning: redundant redeclaration of `DRM' in same scope
../drmP.h:528: warning: previous declaration of `DRM'
../drmP.h:530: error: `DRM' declared as function returning a function
../drmP.h:530: warning: parameter names (without types) in function declaration
../drmP.h:530: warning: redundant redeclaration of `DRM' in same scope
../drmP.h:529: warning: previous declaration of `DRM'
../drmP.h:531: error: `DRM' declared as function returning a function
../drmP.h:531: warning: parameter names (without types) in function declaration
../drmP.h:531: warning: redundant redeclaration of `DRM' in same scope
../drmP.h:530: warning: previous declaration of `DRM'
../drmP.h:532: error: `DRM' declared as function returning a function
../drmP.h:532: warning: parameter names (without types) in function declaration
../drmP.h:532: warning: redundant redeclaration of `DRM' in same scope
../drmP.h:531: warning: previous declaration of `DRM'
../drmP.h:541: error: `DRM' declared as function returning a function
../drmP.h:541: warning: parameter names (without types) in function declaration
../drmP.h:541: warning: redundant redeclaration of `DRM' in same scope
../drmP.h:532: warning: previous declaration of `DRM'
../drmP.h:542: error: `DRM' declared as function returning a function
../drmP.h:542: warning: parameter names (without types) in function declaration
../drmP.h:542: warning: redundant redeclaration of `DRM' in same scope
../drmP.h:541: warning: previous declaration of `DRM'
../drmP.h:553: error: `DRM' declared as function returning a function
../drmP.h:553: warning: parameter names (without types) in function declaration
../drmP.h:553: warning: redundant redeclaration of `DRM' in same scope
../drmP.h:542: warning: previous declaration of `DRM'
../drmP.h:556: error: `DRM' declared as function returning a function
../drmP.h:556: warning: parameter names (without types) in function declaration
../drmP.h:556: warning: redundant redeclaration of `DRM' in same scope
../drmP.h:553: warning: previous declaration of `DRM'
../drmP.h:559: error: `DRM' declared as function returning a function
../drmP.h:559: warning: parameter names (without types) in function declaration
../drmP.h:559: warning: redundant redeclaration of `DRM' in same scope
../drmP.h:556: warning: previous declaration of `DRM'
../drmP.h:561: error: `DRM' declared as function returning a function
../drmP.h:561: warning: parameter names (without types) in function declaration
../drmP.h:561: warning: redundant redeclaration of `DRM' in same scope
../drmP.h:559: warning: previous declaration of `DRM'
../drmP.h:563: error: `DRM' declared as function returning a function
../drmP.h:563: warning: parameter names (without types) in function declaration
../drmP.h:563: warning: redundant redeclaration of `DRM' in same scope
../drmP.h:561: warning: previous declaration of `DRM'
../drmP.h:564: error: `DRM' declared as function returning a function
../drmP.h:564: warning: parameter names (without types) in function declaration
../drmP.h:564: warning: redundant redeclaration of `DRM' in same scope
../drmP.h:563: warning: previous declaration of `DRM'
../drmP.h:567: error: `DRM' declared as function returning a function
../drmP.h:567: warning: parameter names (without types) in function declaration
../drmP.h:567: warning: redundant redeclaration of `DRM' in same scope
../drmP.h:564: warning: previous declaration of `DRM'
/root/drm/mga_drv.c:37:21: mga_drm.h: No such file or directory
/root/drm/mga_drv.c:38:21: mga_drv.h: No such file or directory
/root/drm/mga_drv.c:43: error: `DRM' declared as function returning an array
/root/drm/mga_drv.c:43: warning: parameter names (without types) in function declaration
/root/drm/mga_drv.c:43: error: function `DRM' is initialized like a variable
/root/drm/mga_drv.c:43: warning: redundant redeclaration of `DRM' in same scope
../drmP.h:567: warning: previous declaration of `DRM'
/root/drm/mga_drv.c:44: warning: braces around scalar initializer
/root/drm/mga_drv.c:44: warning: (near initialization for `DRM')
/root/drm/mga_drv.c:44: error: invalid initializer
/root/drm/mga_drv.c:44: error: (near initialization for `DRM')
/root/drm/mga_drv.c:44: warning: excess elements in scalar initializer
/root/drm/mga_drv.c:44: warning: (near initialization for `DRM')
/root/drm/mga_drv.c:44: warning: excess elements in scalar initializer
/root/drm/mga_drv.c:44: warning: (near initialization for `DRM')
/root/drm/mga_drv.c:44: warning: excess elements in scalar initializer
/root/drm/mga_drv.c:44: warning: (near initialization for `DRM')
/root/drm/mga_drv.c:45: warning: braces around scalar initializer
/root/drm/mga_drv.c:45: warning: (near initialization for `DRM')
/root/drm/mga_drv.c:45: error: invalid initializer
/root/drm/mga_drv.c:45: error: (near initialization for `DRM')
/root/drm/mga_drv.c:45: warning: excess elements in scalar initializer
/root/drm/mga_drv.c:45: warning: (near initialization for `DRM')
/root/drm/mga_drv.c:45: warning: excess elements in scalar initializer
/root/drm/mga_drv.c:45: warning: (near initialization for `DRM')
/root/drm/mga_drv.c:45: warning: excess elements in scalar initializer
/root/drm/mga_drv.c:45: warning: (near initialization for `DRM')
/root/drm/mga_drv.c:45: warning: excess elements in scalar initializer
/root/drm/mga_drv.c:45: warning: (near initialization for `DRM')
/root/drm/mga_drv.c:46: warning: braces around scalar initializer
/root/drm/mga_drv.c:46: warning: (near initialization for `DRM')
/root/drm/mga_drv.c:46: error: invalid initializer
/root/drm/mga_drv.c:46: error: (near initialization for `DRM')
/root/drm/mga_drv.c:46: warning: excess elements in scalar initializer
/root/drm/mga_drv.c:46: warning: (near initialization for `DRM')
/root/drm/mga_drv.c:46: warning: excess elements in scalar initializer
/root/drm/mga_drv.c:46: warning: (near initialization for `DRM')
/root/drm/mga_drv.c:46: warning: excess elements in scalar initializer
/root/drm/mga_drv.c:46: warning: (near initialization for `DRM')
/root/drm/mga_drv.c:46: warning: excess elements in scalar initializer
/root/drm/mga_drv.c:46: warning: (near initialization for `DRM')
/root/drm/mga_drv.c:47: warning: braces around scalar initializer
/root/drm/mga_drv.c:47: warning: (near initialization for `DRM')
/root/drm/mga_drv.c:47: error: invalid initializer
/root/drm/mga_drv.c:47: error: (near initialization for `DRM')
/root/drm/mga_drv.c:47: warning: excess elements in scalar initializer
/root/drm/mga_drv.c:47: warning: (near initialization for `DRM')
/root/drm/mga_drv.c:47: warning: excess elements in scalar initializer
/root/drm/mga_drv.c:47: warning: (near initialization for `DRM')
/root/drm/mga_drv.c:47: warning: excess elements in scalar initializer
/root/drm/mga_drv.c:47: warning: (near initialization for `DRM')
/root/drm/mga_drv.c:47: warning: excess elements in scalar initializer
/root/drm/mga_drv.c:47: warning: (near initialization for `DRM')
/root/drm/mga_drv.c:48: warning: braces around scalar initializer
/root/drm/mga_drv.c:48: warning: (near initialization for `DRM')
/root/drm/mga_drv.c:48: error: invalid initializer
/root/drm/mga_drv.c:48: error: (near initialization for `DRM')
/root/drm/mga_drv.c:48: warning: excess elements in scalar initializer
/root/drm/mga_drv.c:48: warning: (near initialization for `DRM')
/root/drm/mga_drv.c:48: warning: excess elements in scalar initializer
/root/drm/mga_drv.c:48: warning: (near initialization for `DRM')
/root/drm/mga_drv.c:48: warning: excess elements in scalar initializer
/root/drm/mga_drv.c:48: warning: (near initialization for `DRM')
/root/drm/mga_drv.c:48: warning: excess elements in scalar initializer
/root/drm/mga_drv.c:48: warning: (near initialization for `DRM')
In file included from /root/drm/mga_drv.c:51:
../drm_agpsupport.h:35: error: `DRM' declared as function returning a function
../drm_agpsupport.h:35: warning: function declaration isn't a prototype
../drm_agpsupport.h: In function `DRM':
../drm_agpsupport.h:35: warning: type of `agp_info' defaults to `int'
../drm_agpsupport.h:36: error: `kdev' undeclared (first use in this function)
../drm_agpsupport.h:36: error: (Each undeclared identifier is reported only once
../drm_agpsupport.h:36: error: for each function it appears in.)
../drm_agpsupport.h:40: error: structure has no member named `agp'
../drm_agpsupport.h:40: error: structure has no member named `agp'
../drm_agpsupport.h:42: error: structure has no member named `agp'
../drm_agpsupport.h:43: warning: implicit declaration of function `agp_get_info'
../drm_agpsupport.h:43: error: structure has no member named `agp'
../drm_agpsupport.h:46: error: dereferencing pointer to incomplete type
../drm_agpsupport.h:47: error: dereferencing pointer to incomplete type
../drm_agpsupport.h:48: error: dereferencing pointer to incomplete type
../drm_agpsupport.h:49: error: dereferencing pointer to incomplete type
../drm_agpsupport.h:50: error: dereferencing pointer to incomplete type
../drm_agpsupport.h:51: error: dereferencing pointer to incomplete type
../drm_agpsupport.h:52: error: dereferencing pointer to incomplete type
../drm_agpsupport.h:54: error: `data' undeclared (first use in this function)
../drm_agpsupport.h: At top level:
../drm_agpsupport.h:59: error: `DRM' declared as function returning a function
../drm_agpsupport.h:59: warning: function declaration isn't a prototype
../drm_agpsupport.h:59: error: redefinition of `DRM'
../drm_agpsupport.h:35: error: `DRM' previously defined here
../drm_agpsupport.h: In function `DRM':
../drm_agpsupport.h:59: warning: type of `agp_acquire' defaults to `int'
../drm_agpsupport.h:60: error: `kdev' undeclared (first use in this function)
../drm_agpsupport.h:63: error: structure has no member named `agp'
../drm_agpsupport.h:63: error: structure has no member named `agp'
../drm_agpsupport.h:64: error: structure has no member named `agp'
../drm_agpsupport.h:64: error: called object is not a function
../drm_agpsupport.h:66: error: structure has no member named `agp'
../drm_agpsupport.h: At top level:
../drm_agpsupport.h:71: error: `DRM' declared as function returning a function
../drm_agpsupport.h:71: warning: function declaration isn't a prototype
../drm_agpsupport.h:71: error: redefinition of `DRM'
../drm_agpsupport.h:59: error: `DRM' previously defined here
../drm_agpsupport.h: In function `DRM':
../drm_agpsupport.h:71: warning: type of `agp_release' defaults to `int'
../drm_agpsupport.h:72: error: `kdev' undeclared (first use in this function)
../drm_agpsupport.h:74: error: structure has no member named `agp'
../drm_agpsupport.h:74: error: structure has no member named `agp'
../drm_agpsupport.h:76: error: structure has no member named `agp'
../drm_agpsupport.h:76: error: called object is not a function
../drm_agpsupport.h:77: error: structure has no member named `agp'
../drm_agpsupport.h: At top level:
../drm_agpsupport.h:83: error: `DRM' declared as function returning a function
../drm_agpsupport.h:83: warning: function declaration isn't a prototype
../drm_agpsupport.h:83: error: redefinition of `DRM'
../drm_agpsupport.h:71: error: `DRM' previously defined here
../drm_agpsupport.h: In function `DRM':
../drm_agpsupport.h:83: warning: type of `agp_do_release' defaults to `int'
../drm_agpsupport.h:86: warning: implicit declaration of function `agp_find_device'
../drm_agpsupport.h:86: warning: assignment makes pointer from integer without a cast
../drm_agpsupport.h:88: warning: implicit declaration of function `agp_release'
../drm_agpsupport.h: At top level:
../drm_agpsupport.h:92: error: `DRM' declared as function returning a function
../drm_agpsupport.h:92: warning: function declaration isn't a prototype
../drm_agpsupport.h:92: error: redefinition of `DRM'
../drm_agpsupport.h:83: error: `DRM' previously defined here
../drm_agpsupport.h: In function `DRM':
../drm_agpsupport.h:92: warning: type of `agp_enable' defaults to `int'
../drm_agpsupport.h:93: error: `kdev' undeclared (first use in this function)
../drm_agpsupport.h:96: error: structure has no member named `agp'
../drm_agpsupport.h:96: error: structure has no member named `agp'
../drm_agpsupport.h:98: error: `data' undeclared (first use in this function)
../drm_agpsupport.h:100: error: structure has no member named `agp'
../drm_agpsupport.h:101: error: structure has no member named `agp'
../drm_agpsupport.h:101: error: called object is not a function
../drm_agpsupport.h:102: error: structure has no member named `agp'
../drm_agpsupport.h:102: error: structure has no member named `agp'
../drm_agpsupport.h:103: error: structure has no member named `agp'
../drm_agpsupport.h: At top level:
../drm_agpsupport.h:108: error: `DRM' declared as function returning a function
../drm_agpsupport.h:108: warning: function declaration isn't a prototype
../drm_agpsupport.h:108: error: redefinition of `DRM'
../drm_agpsupport.h:92: error: `DRM' previously defined here
../drm_agpsupport.h: In function `DRM':
../drm_agpsupport.h:108: warning: type of `agp_alloc' defaults to `int'
../drm_agpsupport.h:109: error: `kdev' undeclared (first use in this function)
../drm_agpsupport.h:111: error: `drm_agp_mem_t' undeclared (first use in this function)
../drm_agpsupport.h:111: error: `entry' undeclared (first use in this function)
../drm_agpsupport.h:115: error: storage size of `info' isn't known
../drm_agpsupport.h:117: error: structure has no member named `agp'
../drm_agpsupport.h:117: error: structure has no member named `agp'
../drm_agpsupport.h:119: error: `data' undeclared (first use in this function)
../drm_agpsupport.h:121: error: `alloc' undeclared (first use in this function)
../drm_agpsupport.h:121: error: called object is not a function
../drm_agpsupport.h:129: error: `alloc_agp' undeclared (first use in this function)
../drm_agpsupport.h:129: error: called object is not a function
../drm_agpsupport.h:130: error: called object is not a function
../drm_agpsupport.h:138: error: structure has no member named `agp'
../drm_agpsupport.h:139: error: structure has no member named `agp'
../drm_agpsupport.h:139: error: structure has no member named `agp'
../drm_agpsupport.h:140: error: structure has no member named `agp'
../drm_agpsupport.h:142: warning: implicit declaration of function `agp_memory_info'
../drm_agpsupport.h:142: error: structure has no member named `agp'
../drm_agpsupport.h:115: warning: unused variable `info'
../drm_agpsupport.h: At top level:
../drm_agpsupport.h:152: error: syntax error before '*' token
../drm_agpsupport.h:153: error: `DRM' declared as function returning a function
../drm_agpsupport.h:153: warning: return type defaults to `int'
../drm_agpsupport.h:153: warning: function declaration isn't a prototype
../drm_agpsupport.h:153: error: redefinition of `DRM'
../drm_agpsupport.h:108: error: `DRM' previously defined here
../drm_agpsupport.h: In function `DRM':
../drm_agpsupport.h:153: warning: type of `agp_lookup_entry' defaults to `int'
../drm_agpsupport.h:154: error: `drm_agp_mem_t' undeclared (first use in this function)
../drm_agpsupport.h:154: error: `entry' undeclared (first use in this function)
../drm_agpsupport.h:156: error: `dev' undeclared (first use in this function)
../drm_agpsupport.h:157: error: `handle' undeclared (first use in this function)
../drm_agpsupport.h: At top level:
../drm_agpsupport.h:163: error: `DRM' declared as function returning a function
../drm_agpsupport.h:163: warning: function declaration isn't a prototype
../drm_agpsupport.h:163: error: redefinition of `DRM'
../drm_agpsupport.h:153: error: `DRM' previously defined here
../drm_agpsupport.h: In function `DRM':
../drm_agpsupport.h:163: warning: type of `agp_unbind' defaults to `int'
../drm_agpsupport.h:164: error: `kdev' undeclared (first use in this function)
../drm_agpsupport.h:166: error: `drm_agp_mem_t' undeclared (first use in this function)
../drm_agpsupport.h:166: error: `entry' undeclared (first use in this function)
../drm_agpsupport.h:169: error: structure has no member named `agp'
../drm_agpsupport.h:169: error: structure has no member named `agp'
../drm_agpsupport.h:170: error: `data' undeclared (first use in this function)
../drm_agpsupport.h:171: error: `agp_lookup_entry' undeclared (first use in this function)
../drm_agpsupport.h:171: error: called object is not a function
../drm_agpsupport.h:174: error: `unbind_agp' undeclared (first use in this function)
../drm_agpsupport.h:174: error: called object is not a function
../drm_agpsupport.h: At top level:
../drm_agpsupport.h:185: error: `DRM' declared as function returning a function
../drm_agpsupport.h:185: warning: function declaration isn't a prototype
../drm_agpsupport.h:185: error: redefinition of `DRM'
../drm_agpsupport.h:163: error: `DRM' previously defined here
../drm_agpsupport.h: In function `DRM':
../drm_agpsupport.h:185: warning: type of `agp_bind' defaults to `int'
../drm_agpsupport.h:186: error: `kdev' undeclared (first use in this function)
../drm_agpsupport.h:188: error: `drm_agp_mem_t' undeclared (first use in this function)
../drm_agpsupport.h:188: error: `entry' undeclared (first use in this function)
../drm_agpsupport.h:193: error: structure has no member named `agp'
../drm_agpsupport.h:193: error: structure has no member named `agp'
../drm_agpsupport.h:195: error: `data' undeclared (first use in this function)
../drm_agpsupport.h:196: error: `agp_lookup_entry' undeclared (first use in this function)
../drm_agpsupport.h:196: error: called object is not a function
../drm_agpsupport.h:200: error: `bind_agp' undeclared (first use in this function)
../drm_agpsupport.h:200: error: called object is not a function
../drm_agpsupport.h:202: error: structure has no member named `agp'
../drm_agpsupport.h: At top level:
../drm_agpsupport.h:207: error: `DRM' declared as function returning a function
../drm_agpsupport.h:207: warning: function declaration isn't a prototype
../drm_agpsupport.h:207: error: redefinition of `DRM'
../drm_agpsupport.h:185: error: `DRM' previously defined here
../drm_agpsupport.h: In function `DRM':
../drm_agpsupport.h:207: warning: type of `agp_free' defaults to `int'
../drm_agpsupport.h:208: error: `kdev' undeclared (first use in this function)
../drm_agpsupport.h:210: error: `drm_agp_mem_t' undeclared (first use in this function)
../drm_agpsupport.h:210: error: `entry' undeclared (first use in this function)
../drm_agpsupport.h:212: error: structure has no member named `agp'
../drm_agpsupport.h:212: error: structure has no member named `agp'
../drm_agpsupport.h:213: error: `data' undeclared (first use in this function)
../drm_agpsupport.h:214: error: `agp_lookup_entry' undeclared (first use in this function)
../drm_agpsupport.h:214: error: called object is not a function
../drm_agpsupport.h:216: error: `unbind_agp' undeclared (first use in this function)
../drm_agpsupport.h:216: error: called object is not a function
../drm_agpsupport.h:219: error: structure has no member named `agp'
../drm_agpsupport.h:221: error: `free_agp' undeclared (first use in this function)
../drm_agpsupport.h:221: error: called object is not a function
../drm_agpsupport.h:222: error: called object is not a function
../drm_agpsupport.h: At top level:
../drm_agpsupport.h:226: error: syntax error before '*' token
../drm_agpsupport.h:227: error: `DRM' declared as function returning a function
../drm_agpsupport.h:227: warning: return type defaults to `int'
../drm_agpsupport.h:227: warning: function declaration isn't a prototype
../drm_agpsupport.h:227: error: redefinition of `DRM'
../drm_agpsupport.h:207: error: `DRM' previously defined here
../drm_agpsupport.h: In function `DRM':
../drm_agpsupport.h:227: warning: type of `agp_init' defaults to `int'
../drm_agpsupport.h:229: error: `drm_agp_head_t' undeclared (first use in this function)
../drm_agpsupport.h:229: error: `head' undeclared (first use in this function)
../drm_agpsupport.h:232: warning: assignment makes pointer from integer without a cast
../drm_agpsupport.h:239: error: `alloc' undeclared (first use in this function)
../drm_agpsupport.h:239: error: called object is not a function
../drm_agpsupport.h: At top level:
../drm_agpsupport.h:272: error: `DRM' declared as function returning a function
../drm_agpsupport.h:272: warning: function declaration isn't a prototype
../drm_agpsupport.h:272: error: redefinition of `DRM'
../drm_agpsupport.h:227: error: `DRM' previously defined here
../drm_agpsupport.h: In function `DRM':
../drm_agpsupport.h:272: warning: type of `agp_uninit' defaults to `int'
../drm_agpsupport.h: At top level:
../drm_agpsupport.h:278: error: `DRM' declared as function returning a function
../drm_agpsupport.h:278: warning: function declaration isn't a prototype
../drm_agpsupport.h:278: error: redefinition of `DRM'
../drm_agpsupport.h:272: error: `DRM' previously defined here
../drm_agpsupport.h: In function `DRM':
../drm_agpsupport.h:278: warning: type of `agp_allocate_memory' defaults to `int'
../drm_agpsupport.h:281: warning: assignment makes pointer from integer without a cast
../drm_agpsupport.h:285: warning: implicit declaration of function `agp_alloc_memory'
../drm_agpsupport.h:285: error: `type' undeclared (first use in this function)
../drm_agpsupport.h:285: error: `pages' undeclared (first use in this function)
../drm_agpsupport.h:285: error: `AGP_PAGE_SHIFT' undeclared (first use in this function)
../drm_agpsupport.h: At top level:
../drm_agpsupport.h:289: error: `DRM' declared as function returning a function
../drm_agpsupport.h:289: warning: function declaration isn't a prototype
../drm_agpsupport.h:289: error: redefinition of `DRM'
../drm_agpsupport.h:278: error: `DRM' previously defined here
../drm_agpsupport.h: In function `DRM':
../drm_agpsupport.h:289: warning: type of `agp_free_memory' defaults to `int'
../drm_agpsupport.h:292: warning: assignment makes pointer from integer without a cast
../drm_agpsupport.h:293: error: `handle' undeclared (first use in this function)
../drm_agpsupport.h:296: error: called object is not a function
../drm_agpsupport.h: At top level:
../drm_agpsupport.h:301: error: `DRM' declared as function returning a function
../drm_agpsupport.h:301: warning: function declaration isn't a prototype
../drm_agpsupport.h:301: error: redefinition of `DRM'
../drm_agpsupport.h:289: error: `DRM' previously defined here
../drm_agpsupport.h: In function `DRM':
../drm_agpsupport.h:301: warning: type of `agp_bind_memory' defaults to `int'
../drm_agpsupport.h:304: warning: assignment makes pointer from integer without a cast
../drm_agpsupport.h:305: error: `handle' undeclared (first use in this function)
../drm_agpsupport.h:308: error: `start' undeclared (first use in this function)
../drm_agpsupport.h:308: error: called object is not a function
../drm_agpsupport.h: At top level:
../drm_agpsupport.h:312: error: `DRM' declared as function returning a function
../drm_agpsupport.h:312: warning: function declaration isn't a prototype
../drm_agpsupport.h:312: error: redefinition of `DRM'
../drm_agpsupport.h:301: error: `DRM' previously defined here
../drm_agpsupport.h: In function `DRM':
../drm_agpsupport.h:312: warning: type of `agp_unbind_memory' defaults to `int'
../drm_agpsupport.h:315: warning: assignment makes pointer from integer without a cast
../drm_agpsupport.h:316: error: `handle' undeclared (first use in this function)
../drm_agpsupport.h:319: error: called object is not a function
In file included from /root/drm/mga_drv.c:52:
../drm_auth.h: At top level:
../drm_auth.h:35: error: `DRM' declared as function returning a function
../drm_auth.h:35: warning: function declaration isn't a prototype
../drm_auth.h:35: error: redefinition of `DRM'
../drm_agpsupport.h:312: error: `DRM' previously defined here
../drm_auth.h:35: warning: `DRM' was declared `extern' and later `static'
../drm_auth.h: In function `DRM':
../drm_auth.h:35: warning: type of `hash_magic' defaults to `int'
../drm_auth.h:36: error: `magic' undeclared (first use in this function)
../drm_auth.h: At top level:
../drm_auth.h:40: error: `DRM' declared as function returning a function
../drm_auth.h:40: warning: function declaration isn't a prototype
../drm_auth.h:40: error: redefinition of `DRM'
../drm_auth.h:35: error: `DRM' previously defined here
../drm_auth.h:40: warning: `DRM' was declared `extern' and later `static'
../drm_auth.h: In function `DRM':
../drm_auth.h:40: warning: type of `find_file' defaults to `int'
../drm_auth.h:43: error: `hash_magic' undeclared (first use in this function)
../drm_auth.h:43: error: `magic' undeclared (first use in this function)
../drm_auth.h:43: error: called object is not a function
../drm_auth.h:45: error: `dev' undeclared (first use in this function)
../drm_auth.h:53: warning: return makes integer from pointer without a cast
In file included from /root/drm/mga_drv.c:52:
../drm_auth.h: At top level:
../drm_auth.h:57: error: `DRM' declared as function returning a function
../drm_auth.h:57: warning: function declaration isn't a prototype
../drm_auth.h:57: error: redefinition of `DRM'
../drm_auth.h:40: error: `DRM' previously defined here
../drm_auth.h: In function `DRM':
../drm_auth.h:57: warning: type of `add_magic' defaults to `int'
../drm_auth.h:63: error: `hash_magic' undeclared (first use in this function)
../drm_auth.h:63: error: `magic' undeclared (first use in this function)
../drm_auth.h:63: error: called object is not a function
../drm_auth.h:64: error: `alloc' undeclared (first use in this function)
../drm_auth.h:64: error: called object is not a function
../drm_auth.h:68: error: `priv' undeclared (first use in this function)
../drm_auth.h:71: error: `dev' undeclared (first use in this function)
In file included from /root/drm/mga_drv.c:52:
../drm_auth.h: At top level:
../drm_auth.h:85: error: `DRM' declared as function returning a function
../drm_auth.h:85: warning: function declaration isn't a prototype
../drm_auth.h:85: error: redefinition of `DRM'
../drm_auth.h:57: error: `DRM' previously defined here
../drm_auth.h: In function `DRM':
../drm_auth.h:85: warning: type of `remove_magic' defaults to `int'
../drm_auth.h:91: error: `hash_magic' undeclared (first use in this function)
../drm_auth.h:91: error: `magic' undeclared (first use in this function)
../drm_auth.h:91: error: called object is not a function
../drm_auth.h:93: error: `dev' undeclared (first use in this function)
../drm_auth.h:111: error: called object is not a function
In file included from /root/drm/mga_drv.c:52:
../drm_auth.h: At top level:
../drm_auth.h:116: error: `DRM' declared as function returning a function
../drm_auth.h:116: warning: function declaration isn't a prototype
../drm_auth.h:116: error: redefinition of `DRM'
../drm_auth.h:85: error: `DRM' previously defined here
../drm_auth.h: In function `DRM':
../drm_auth.h:116: warning: type of `getmagic' defaults to `int'
../drm_auth.h:119: error: `kdev' undeclared (first use in this function)
../drm_auth.h:120: error: `find_file_by_proc' undeclared (first use in this function)
../drm_auth.h:120: error: `p' undeclared (first use in this function)
../drm_auth.h:120: error: called object is not a function
../drm_auth.h:133: error: `find_file' undeclared (first use in this function)
../drm_auth.h:133: error: called object is not a function
../drm_auth.h:135: error: `add_magic' undeclared (first use in this function)
../drm_auth.h:135: error: called object is not a function
../drm_auth.h:140: error: `cmd' undeclared (first use in this function)
../drm_auth.h:140: error: `data' undeclared (first use in this function)
../drm_auth.h: At top level:
../drm_auth.h:146: error: `DRM' declared as function returning a function
../drm_auth.h:146: warning: function declaration isn't a prototype
../drm_auth.h:146: error: redefinition of `DRM'
../drm_auth.h:116: error: `DRM' previously defined here
../drm_auth.h: In function `DRM':
../drm_auth.h:146: warning: type of `authmagic' defaults to `int'
../drm_auth.h:149: error: `kdev' undeclared (first use in this function)
../drm_auth.h:151: error: `cmd' undeclared (first use in this function)
../drm_auth.h:151: error: `data' undeclared (first use in this function)
../drm_auth.h:154: error: `find_file' undeclared (first use in this function)
../drm_auth.h:154: error: called object is not a function
../drm_auth.h:156: error: `remove_magic' undeclared (first use in this function)
../drm_auth.h:156: error: called object is not a function
In file included from /root/drm/mga_drv.c:53:
../drm_bufs.h: At top level:
../drm_bufs.h:57: error: `DRM' declared as function returning a function
../drm_bufs.h:57: warning: function declaration isn't a prototype
../drm_bufs.h:57: error: redefinition of `DRM'
../drm_auth.h:146: error: `DRM' previously defined here
../drm_bufs.h: In function `DRM':
../drm_bufs.h:57: warning: type of `order' defaults to `int'
../drm_bufs.h:58: warning: declaration of `order' shadows a parameter
../drm_bufs.h:61: error: `size' undeclared (first use in this function)
../drm_bufs.h:61: warning: value computed is not used
../drm_bufs.h: At top level:
../drm_bufs.h:70: error: `DRM' declared as function returning a function
../drm_bufs.h:70: warning: function declaration isn't a prototype
../drm_bufs.h:70: error: redefinition of `DRM'
../drm_bufs.h:57: error: `DRM' previously defined here
../drm_bufs.h: In function `DRM':
../drm_bufs.h:70: warning: type of `addmap' defaults to `int'
../drm_bufs.h:71: error: `kdev' undeclared (first use in this function)
../drm_bufs.h:78: error: `alloc' undeclared (first use in this function)
../drm_bufs.h:78: error: called object is not a function
../drm_bufs.h:82: error: `data' undeclared (first use in this function)
../drm_bufs.h:89: error: called object is not a function
../drm_bufs.h:95: error: called object is not a function
../drm_bufs.h:107: error: called object is not a function
../drm_bufs.h:140: error: `ioremap' undeclared (first use in this function)
../drm_bufs.h:140: error: called object is not a function
../drm_bufs.h:144: error: called object is not a function
../drm_bufs.h:148: error: called object is not a function
../drm_bufs.h:167: error: called object is not a function
../drm_bufs.h:174: error: called object is not a function
../drm_bufs.h:178: error: called object is not a function
../drm_bufs.h:180: error: called object is not a function
In file included from /root/drm/mga_drv.c:53:
../drm_bufs.h: At top level:
../drm_bufs.h:204: error: `DRM' declared as function returning a function
../drm_bufs.h:204: warning: function declaration isn't a prototype
../drm_bufs.h:204: error: redefinition of `DRM'
../drm_bufs.h:70: error: `DRM' previously defined here
../drm_bufs.h: In function `DRM':
../drm_bufs.h:204: warning: type of `rmmap' defaults to `int'
../drm_bufs.h:205: error: `kdev' undeclared (first use in this function)
../drm_bufs.h:211: error: `cmd' undeclared (first use in this function)
../drm_bufs.h:211: error: `data' undeclared (first use in this function)
../drm_bufs.h:228: error: called object is not a function
../drm_bufs.h:260: error: `ioremapfree' undeclared (first use in this function)
../drm_bufs.h:260: error: called object is not a function
../drm_bufs.h:263: error: called object is not a function
../drm_bufs.h:269: error: called object is not a function
In file included from /root/drm/mga_drv.c:54:
../drm_context.h: At top level:
../drm_context.h:379: error: `DRM' declared as function returning a function
../drm_context.h:379: warning: function declaration isn't a prototype
../drm_context.h:379: error: redefinition of `DRM'
../drm_bufs.h:204: error: `DRM' previously defined here
../drm_context.h: In function `DRM':
../drm_context.h:379: warning: type of `context_switch' defaults to `int'
../drm_context.h:387: error: `dev' undeclared (first use in this function)
../drm_context.h:398: error: `new' undeclared (first use in this function)
../drm_context.h:416: error: `flags' undeclared (first use in this function)
../drm_context.h:417: error: `context_switch_complete' undeclared (first use in this function)
../drm_context.h:417: error: called object is not a function
../drm_context.h:419: error: `old' undeclared (first use in this function)
../drm_context.h:420: error: `write_string' undeclared (first use in this function)
../drm_context.h:420: error: called object is not a function
In file included from /root/drm/mga_drv.c:54:
../drm_context.h: At top level:
../drm_context.h:429: error: `DRM' declared as function returning a function
../drm_context.h:429: warning: function declaration isn't a prototype
../drm_context.h:429: error: redefinition of `DRM'
../drm_context.h:379: error: `DRM' previously defined here
../drm_context.h: In function `DRM':
../drm_context.h:429: warning: type of `context_switch_complete' defaults to `int'
../drm_context.h:430: error: `dev' undeclared (first use in this function)
../drm_context.h:432: error: `new' undeclared (first use in this function)
../drm_context.h:440: error: `lock_free' undeclared (first use in this function)
../drm_context.h:441: error: called object is not a function
In file included from /root/drm/mga_drv.c:54:
../drm_context.h: At top level:
../drm_context.h:458: error: `DRM' declared as function returning a function
../drm_context.h:458: warning: function declaration isn't a prototype
../drm_context.h:458: error: redefinition of `DRM'
../drm_context.h:429: error: `DRM' previously defined here
../drm_context.h:458: warning: `DRM' was declared `extern' and later `static'
../drm_context.h: In function `DRM':
../drm_context.h:458: warning: type of `init_queue' defaults to `int'
../drm_context.h:461: error: `q' undeclared (first use in this function)
../drm_context.h:482: error: `ctx' undeclared (first use in this function)
../drm_context.h:484: error: `waitlist_create' undeclared (first use in this function)
../drm_context.h:484: error: `dev' undeclared (first use in this function)
../drm_context.h:484: error: called object is not a function
../drm_context.h: At top level:
../drm_context.h:500: error: `DRM' declared as function returning a function
../drm_context.h:500: warning: function declaration isn't a prototype
../drm_context.h:500: error: redefinition of `DRM'
../drm_context.h:458: error: `DRM' previously defined here
../drm_context.h:500: warning: `DRM' was declared `extern' and later `static'
../drm_context.h: In function `DRM':
../drm_context.h:500: warning: type of `alloc_queue' defaults to `int'
../drm_context.h:506: error: `dev' undeclared (first use in this function)
../drm_context.h:518: warning: implicit declaration of function `gamma_alloc'
../drm_context.h:518: warning: assignment makes pointer from integer without a cast
../drm_context.h:532: error: called object is not a function
In file included from /root/drm/mga_drv.c:54:
../drm_context.h: At top level:
../drm_context.h:547: error: `DRM' declared as function returning a function
../drm_context.h:547: warning: function declaration isn't a prototype
../drm_context.h:547: error: redefinition of `DRM'
../drm_context.h:500: error: `DRM' previously defined here
../drm_context.h: In function `DRM':
../drm_context.h:547: warning: type of `resctx' defaults to `int'
../drm_context.h:554: error: `cmd' undeclared (first use in this function)
../drm_context.h:554: error: `data' undeclared (first use in this function)
../drm_context.h: At top level:
../drm_context.h:574: error: `DRM' declared as function returning a function
../drm_context.h:574: warning: function declaration isn't a prototype
../drm_context.h:574: error: redefinition of `DRM'
../drm_context.h:547: error: `DRM' previously defined here
../drm_context.h: In function `DRM':
../drm_context.h:574: warning: type of `addctx' defaults to `int'
../drm_context.h:575: error: `kdev' undeclared (first use in this function)
../drm_context.h:578: error: `cmd' undeclared (first use in this function)
../drm_context.h:578: error: `data' undeclared (first use in this function)
../drm_context.h:580: error: `alloc_queue' undeclared (first use in this function)
../drm_context.h:580: error: called object is not a function
../drm_context.h:582: error: `init_queue' undeclared (first use in this function)
../drm_context.h:582: error: called object is not a function
../drm_context.h:583: error: called object is not a function
../drm_context.h:585: error: called object is not a function
../drm_context.h: At top level:
../drm_context.h:594: error: `DRM' declared as function returning a function
../drm_context.h:594: warning: function declaration isn't a prototype
../drm_context.h:594: error: redefinition of `DRM'
../drm_context.h:574: error: `DRM' previously defined here
../drm_context.h: In function `DRM':
../drm_context.h:594: warning: type of `modctx' defaults to `int'
../drm_context.h:595: error: `kdev' undeclared (first use in this function)
../drm_context.h:599: error: `cmd' undeclared (first use in this function)
../drm_context.h:599: error: `data' undeclared (first use in this function)
../drm_context.h: At top level:
../drm_context.h:626: error: `DRM' declared as function returning a function
../drm_context.h:626: warning: function declaration isn't a prototype
../drm_context.h:626: error: redefinition of `DRM'
../drm_context.h:594: error: `DRM' previously defined here
../drm_context.h: In function `DRM':
../drm_context.h:626: warning: type of `getctx' defaults to `int'
../drm_context.h:627: error: `kdev' undeclared (first use in this function)
../drm_context.h:631: error: `cmd' undeclared (first use in this function)
../drm_context.h:631: error: `data' undeclared (first use in this function)
../drm_context.h: At top level:
../drm_context.h:655: error: `DRM' declared as function returning a function
../drm_context.h:655: warning: function declaration isn't a prototype
../drm_context.h:655: error: redefinition of `DRM'
../drm_context.h:626: error: `DRM' previously defined here
../drm_context.h: In function `DRM':
../drm_context.h:655: warning: type of `switchctx' defaults to `int'
../drm_context.h:656: error: `kdev' undeclared (first use in this function)
../drm_context.h:659: error: `cmd' undeclared (first use in this function)
../drm_context.h:659: error: `data' undeclared (first use in this function)
../drm_context.h:662: error: `context_switch' undeclared (first use in this function)
../drm_context.h:662: error: called object is not a function
../drm_context.h: At top level:
../drm_context.h:666: error: `DRM' declared as function returning a function
../drm_context.h:666: warning: function declaration isn't a prototype
../drm_context.h:666: error: redefinition of `DRM'
../drm_context.h:655: error: `DRM' previously defined here
../drm_context.h: In function `DRM':
../drm_context.h:666: warning: type of `newctx' defaults to `int'
../drm_context.h:667: error: `kdev' undeclared (first use in this function)
../drm_context.h:670: error: `cmd' undeclared (first use in this function)
../drm_context.h:670: error: `data' undeclared (first use in this function)
../drm_context.h:673: error: `context_switch_complete' undeclared (first use in this function)
../drm_context.h:673: error: called object is not a function
../drm_context.h: At top level:
../drm_context.h:679: error: `DRM' declared as function returning a function
../drm_context.h:679: warning: function declaration isn't a prototype
../drm_context.h:679: error: redefinition of `DRM'
../drm_context.h:666: error: `DRM' previously defined here
../drm_context.h: In function `DRM':
../drm_context.h:679: warning: type of `rmctx' defaults to `int'
../drm_context.h:680: error: `kdev' undeclared (first use in this function)
../drm_context.h:685: error: `cmd' undeclared (first use in this function)
../drm_context.h:685: error: `data' undeclared (first use in this function)
../drm_context.h:711: error: `waitlist_get' undeclared (first use in this function)
../drm_context.h:711: error: called object is not a function
../drm_context.h:712: error: `free_buffer' undeclared (first use in this function)
../drm_context.h:712: error: called object is not a function
In file included from /root/drm/mga_drv.c:56:
../drm_drawable.h: At top level:
../drm_drawable.h:35: error: `DRM' declared as function returning a function
../drm_drawable.h:35: warning: function declaration isn't a prototype
../drm_drawable.h:35: error: redefinition of `DRM'
../drm_context.h:679: error: `DRM' previously defined here
../drm_drawable.h: In function `DRM':
../drm_drawable.h:35: warning: type of `adddraw' defaults to `int'
../drm_drawable.h:41: error: `cmd' undeclared (first use in this function)
../drm_drawable.h:41: error: `data' undeclared (first use in this function)
../drm_drawable.h: At top level:
../drm_drawable.h:47: error: `DRM' declared as function returning a function
../drm_drawable.h:47: warning: function declaration isn't a prototype
../drm_drawable.h:47: error: redefinition of `DRM'
../drm_drawable.h:35: error: `DRM' previously defined here
../drm_drawable.h: In function `DRM':
../drm_drawable.h:47: warning: type of `rmdraw' defaults to `int'
In file included from /root/drm/mga_drv.c:57:
../drm_drv.h: At top level:
../drm_drv.h:129: error: `DRM' declared as function returning a function
../drm_drv.h:129: warning: parameter names (without types) in function declaration
../drm_drv.h:129: warning: static declaration for `DRM' follows non-static
../drm_drv.h:129: warning: redundant redeclaration of `DRM' in same scope
../drm_drawable.h:47: warning: previous declaration of `DRM'
../drm_drv.h:130: error: `DRM' declared as function returning a function
../drm_drv.h:130: warning: parameter names (without types) in function declaration
../drm_drv.h:130: warning: redundant redeclaration of `DRM' in same scope
../drm_drawable.h:47: warning: previous declaration of `DRM'
../drm_drv.h:155: error: `DRM' declared as function returning an array
../drm_drv.h:155: warning: parameter names (without types) in function declaration
../drm_drv.h:155: error: function `DRM' is initialized like a variable
../drm_drv.h:155: warning: redundant redeclaration of `DRM' in same scope
../drm_drawable.h:47: warning: previous declaration of `DRM'
../drm_drv.h:156: error: array index in non-array initializer
../drm_drv.h:156: error: (near initialization for `DRM')
../drm_drv.h:156: warning: braces around scalar initializer
../drm_drv.h:156: warning: (near initialization for `DRM')
../drm_drv.h:156: error: initializer element is not constant
../drm_drv.h:156: error: (near initialization for `DRM')
../drm_drv.h:156: warning: excess elements in scalar initializer
../drm_drv.h:156: warning: (near initialization for `DRM')
../drm_drv.h:156: warning: excess elements in scalar initializer
../drm_drv.h:156: warning: (near initialization for `DRM')
../drm_drv.h:156: error: initializer element is not constant
../drm_drv.h:156: error: (near initialization for `DRM')
../drm_drv.h:157: error: array index in non-array initializer
../drm_drv.h:157: error: (near initialization for `DRM')
../drm_drv.h:157: warning: braces around scalar initializer
../drm_drv.h:157: warning: (near initialization for `DRM')
../drm_drv.h:157: error: `getunique' undeclared here (not in a function)
../drm_drv.h:157: error: initializer element is not constant
../drm_drv.h:157: error: (near initialization for `DRM')
../drm_drv.h:157: warning: excess elements in scalar initializer
../drm_drv.h:157: warning: (near initialization for `DRM')
../drm_drv.h:157: warning: excess elements in scalar initializer
../drm_drv.h:157: warning: (near initialization for `DRM')
../drm_drv.h:157: warning: excess elements in scalar initializer
../drm_drv.h:157: warning: (near initialization for `DRM')
../drm_drv.h:158: error: array index in non-array initializer
../drm_drv.h:158: error: (near initialization for `DRM')
../drm_drv.h:158: warning: braces around scalar initializer
../drm_drv.h:158: warning: (near initialization for `DRM')
../drm_drv.h:158: error: `getmagic' undeclared here (not in a function)
../drm_drv.h:158: error: initializer element is not constant
../drm_drv.h:158: error: (near initialization for `DRM')
../drm_drv.h:158: warning: excess elements in scalar initializer
../drm_drv.h:158: warning: (near initialization for `DRM')
../drm_drv.h:158: warning: excess elements in scalar initializer
../drm_drv.h:158: warning: (near initialization for `DRM')
../drm_drv.h:158: warning: excess elements in scalar initializer
../drm_drv.h:158: warning: (near initialization for `DRM')
../drm_drv.h:159: error: array index in non-array initializer
../drm_drv.h:159: error: (near initialization for `DRM')
../drm_drv.h:159: warning: braces around scalar initializer
../drm_drv.h:159: warning: (near initialization for `DRM')
../drm_drv.h:159: error: `irq_busid' undeclared here (not in a function)
../drm_drv.h:159: error: initializer element is not constant
../drm_drv.h:159: error: (near initialization for `DRM')
../drm_drv.h:159: warning: excess elements in scalar initializer
../drm_drv.h:159: warning: (near initialization for `DRM')
../drm_drv.h:159: warning: excess elements in scalar initializer
../drm_drv.h:159: warning: (near initialization for `DRM')
../drm_drv.h:159: warning: excess elements in scalar initializer
../drm_drv.h:159: warning: (near initialization for `DRM')
../drm_drv.h:160: error: array index in non-array initializer
../drm_drv.h:160: error: (near initialization for `DRM')
../drm_drv.h:160: warning: braces around scalar initializer
../drm_drv.h:160: warning: (near initialization for `DRM')
../drm_drv.h:160: error: `getmap' undeclared here (not in a function)
../drm_drv.h:160: error: initializer element is not constant
../drm_drv.h:160: error: (near initialization for `DRM')
../drm_drv.h:160: warning: excess elements in scalar initializer
../drm_drv.h:160: warning: (near initialization for `DRM')
../drm_drv.h:160: warning: excess elements in scalar initializer
../drm_drv.h:160: warning: (near initialization for `DRM')
../drm_drv.h:160: warning: excess elements in scalar initializer
../drm_drv.h:160: warning: (near initialization for `DRM')
../drm_drv.h:161: error: array index in non-array initializer
../drm_drv.h:161: error: (near initialization for `DRM')
../drm_drv.h:161: warning: braces around scalar initializer
../drm_drv.h:161: warning: (near initialization for `DRM')
../drm_drv.h:161: error: `getclient' undeclared here (not in a function)
../drm_drv.h:161: error: initializer element is not constant
../drm_drv.h:161: error: (near initialization for `DRM')
../drm_drv.h:161: warning: excess elements in scalar initializer
../drm_drv.h:161: warning: (near initialization for `DRM')
../drm_drv.h:161: warning: excess elements in scalar initializer
../drm_drv.h:161: warning: (near initialization for `DRM')
../drm_drv.h:161: warning: excess elements in scalar initializer
../drm_drv.h:161: warning: (near initialization for `DRM')
../drm_drv.h:162: error: array index in non-array initializer
../drm_drv.h:162: error: (near initialization for `DRM')
../drm_drv.h:162: warning: braces around scalar initializer
../drm_drv.h:162: warning: (near initialization for `DRM')
../drm_drv.h:162: error: `getstats' undeclared here (not in a function)
../drm_drv.h:162: error: initializer element is not constant
../drm_drv.h:162: error: (near initialization for `DRM')
../drm_drv.h:162: warning: excess elements in scalar initializer
../drm_drv.h:162: warning: (near initialization for `DRM')
../drm_drv.h:162: warning: excess elements in scalar initializer
../drm_drv.h:162: warning: (near initialization for `DRM')
../drm_drv.h:162: warning: excess elements in scalar initializer
../drm_drv.h:162: warning: (near initialization for `DRM')
../drm_drv.h:164: error: array index in non-array initializer
../drm_drv.h:164: error: (near initialization for `DRM')
../drm_drv.h:164: warning: braces around scalar initializer
../drm_drv.h:164: warning: (near initialization for `DRM')
../drm_drv.h:164: error: `setunique' undeclared here (not in a function)
../drm_drv.h:164: error: initializer element is not constant
../drm_drv.h:164: error: (near initialization for `DRM')
../drm_drv.h:164: warning: excess elements in scalar initializer
../drm_drv.h:164: warning: (near initialization for `DRM')
../drm_drv.h:164: warning: excess elements in scalar initializer
../drm_drv.h:164: warning: (near initialization for `DRM')
../drm_drv.h:164: warning: excess elements in scalar initializer
../drm_drv.h:164: warning: (near initialization for `DRM')
../drm_drv.h:165: error: array index in non-array initializer
../drm_drv.h:165: error: (near initialization for `DRM')
../drm_drv.h:165: warning: braces around scalar initializer
../drm_drv.h:165: warning: (near initialization for `DRM')
../drm_drv.h:165: error: `block' undeclared here (not in a function)
../drm_drv.h:165: error: initializer element is not constant
../drm_drv.h:165: error: (near initialization for `DRM')
../drm_drv.h:165: warning: excess elements in scalar initializer
../drm_drv.h:165: warning: (near initialization for `DRM')
../drm_drv.h:165: warning: excess elements in scalar initializer
../drm_drv.h:165: warning: (near initialization for `DRM')
../drm_drv.h:165: warning: excess elements in scalar initializer
../drm_drv.h:165: warning: (near initialization for `DRM')
../drm_drv.h:166: error: array index in non-array initializer
../drm_drv.h:166: error: (near initialization for `DRM')
../drm_drv.h:166: warning: braces around scalar initializer
../drm_drv.h:166: warning: (near initialization for `DRM')
../drm_drv.h:166: error: `unblock' undeclared here (not in a function)
../drm_drv.h:166: error: initializer element is not constant
../drm_drv.h:166: error: (near initialization for `DRM')
../drm_drv.h:166: warning: excess elements in scalar initializer
../drm_drv.h:166: warning: (near initialization for `DRM')
../drm_drv.h:166: warning: excess elements in scalar initializer
../drm_drv.h:166: warning: (near initialization for `DRM')
../drm_drv.h:166: warning: excess elements in scalar initializer
../drm_drv.h:166: warning: (near initialization for `DRM')
../drm_drv.h:167: error: array index in non-array initializer
../drm_drv.h:167: error: (near initialization for `DRM')
../drm_drv.h:167: warning: braces around scalar initializer
../drm_drv.h:167: warning: (near initialization for `DRM')
../drm_drv.h:167: error: `authmagic' undeclared here (not in a function)
../drm_drv.h:167: error: initializer element is not constant
../drm_drv.h:167: error: (near initialization for `DRM')
../drm_drv.h:167: warning: excess elements in scalar initializer
../drm_drv.h:167: warning: (near initialization for `DRM')
../drm_drv.h:167: warning: excess elements in scalar initializer
../drm_drv.h:167: warning: (near initialization for `DRM')
../drm_drv.h:167: warning: excess elements in scalar initializer
../drm_drv.h:167: warning: (near initialization for `DRM')
../drm_drv.h:169: error: array index in non-array initializer
../drm_drv.h:169: error: (near initialization for `DRM')
../drm_drv.h:169: warning: braces around scalar initializer
../drm_drv.h:169: warning: (near initialization for `DRM')
../drm_drv.h:169: error: `addmap' undeclared here (not in a function)
../drm_drv.h:169: error: initializer element is not constant
../drm_drv.h:169: error: (near initialization for `DRM')
../drm_drv.h:169: warning: excess elements in scalar initializer
../drm_drv.h:169: warning: (near initialization for `DRM')
../drm_drv.h:169: warning: excess elements in scalar initializer
../drm_drv.h:169: warning: (near initialization for `DRM')
../drm_drv.h:169: warning: excess elements in scalar initializer
../drm_drv.h:169: warning: (near initialization for `DRM')
../drm_drv.h:170: error: array index in non-array initializer
../drm_drv.h:170: error: (near initialization for `DRM')
../drm_drv.h:170: warning: braces around scalar initializer
../drm_drv.h:170: warning: (near initialization for `DRM')
../drm_drv.h:170: error: `rmmap' undeclared here (not in a function)
../drm_drv.h:170: error: initializer element is not constant
../drm_drv.h:170: error: (near initialization for `DRM')
../drm_drv.h:170: warning: excess elements in scalar initializer
../drm_drv.h:170: warning: (near initialization for `DRM')
../drm_drv.h:170: warning: excess elements in scalar initializer
../drm_drv.h:170: warning: (near initialization for `DRM')
../drm_drv.h:170: warning: excess elements in scalar initializer
../drm_drv.h:170: warning: (near initialization for `DRM')
../drm_drv.h:177: error: array index in non-array initializer
../drm_drv.h:177: error: (near initialization for `DRM')
../drm_drv.h:177: warning: braces around scalar initializer
../drm_drv.h:177: warning: (near initialization for `DRM')
../drm_drv.h:177: error: `addctx' undeclared here (not in a function)
../drm_drv.h:177: error: initializer element is not constant
../drm_drv.h:177: error: (near initialization for `DRM')
../drm_drv.h:177: warning: excess elements in scalar initializer
../drm_drv.h:177: warning: (near initialization for `DRM')
../drm_drv.h:177: warning: excess elements in scalar initializer
../drm_drv.h:177: warning: (near initialization for `DRM')
../drm_drv.h:177: warning: excess elements in scalar initializer
../drm_drv.h:177: warning: (near initialization for `DRM')
../drm_drv.h:178: error: array index in non-array initializer
../drm_drv.h:178: error: (near initialization for `DRM')
../drm_drv.h:178: warning: braces around scalar initializer
../drm_drv.h:178: warning: (near initialization for `DRM')
../drm_drv.h:178: error: `rmctx' undeclared here (not in a function)
../drm_drv.h:178: error: initializer element is not constant
../drm_drv.h:178: error: (near initialization for `DRM')
../drm_drv.h:178: warning: excess elements in scalar initializer
../drm_drv.h:178: warning: (near initialization for `DRM')
../drm_drv.h:178: warning: excess elements in scalar initializer
../drm_drv.h:178: warning: (near initialization for `DRM')
../drm_drv.h:178: warning: excess elements in scalar initializer
../drm_drv.h:178: warning: (near initialization for `DRM')
../drm_drv.h:179: error: array index in non-array initializer
../drm_drv.h:179: error: (near initialization for `DRM')
../drm_drv.h:179: warning: braces around scalar initializer
../drm_drv.h:179: warning: (near initialization for `DRM')
../drm_drv.h:179: error: `modctx' undeclared here (not in a function)
../drm_drv.h:179: error: initializer element is not constant
../drm_drv.h:179: error: (near initialization for `DRM')
../drm_drv.h:179: warning: excess elements in scalar initializer
../drm_drv.h:179: warning: (near initialization for `DRM')
../drm_drv.h:179: warning: excess elements in scalar initializer
../drm_drv.h:179: warning: (near initialization for `DRM')
../drm_drv.h:179: warning: excess elements in scalar initializer
../drm_drv.h:179: warning: (near initialization for `DRM')
../drm_drv.h:180: error: array index in non-array initializer
../drm_drv.h:180: error: (near initialization for `DRM')
../drm_drv.h:180: warning: braces around scalar initializer
../drm_drv.h:180: warning: (near initialization for `DRM')
../drm_drv.h:180: error: `getctx' undeclared here (not in a function)
../drm_drv.h:180: error: initializer element is not constant
../drm_drv.h:180: error: (near initialization for `DRM')
../drm_drv.h:180: warning: excess elements in scalar initializer
../drm_drv.h:180: warning: (near initialization for `DRM')
../drm_drv.h:180: warning: excess elements in scalar initializer
../drm_drv.h:180: warning: (near initialization for `DRM')
../drm_drv.h:180: warning: excess elements in scalar initializer
../drm_drv.h:180: warning: (near initialization for `DRM')
../drm_drv.h:181: error: array index in non-array initializer
../drm_drv.h:181: error: (near initialization for `DRM')
../drm_drv.h:181: warning: braces around scalar initializer
../drm_drv.h:181: warning: (near initialization for `DRM')
../drm_drv.h:181: error: `switchctx' undeclared here (not in a function)
../drm_drv.h:181: error: initializer element is not constant
../drm_drv.h:181: error: (near initialization for `DRM')
../drm_drv.h:181: warning: excess elements in scalar initializer
../drm_drv.h:181: warning: (near initialization for `DRM')
../drm_drv.h:181: warning: excess elements in scalar initializer
../drm_drv.h:181: warning: (near initialization for `DRM')
../drm_drv.h:181: warning: excess elements in scalar initializer
../drm_drv.h:181: warning: (near initialization for `DRM')
../drm_drv.h:182: error: array index in non-array initializer
../drm_drv.h:182: error: (near initialization for `DRM')
../drm_drv.h:182: warning: braces around scalar initializer
../drm_drv.h:182: warning: (near initialization for `DRM')
../drm_drv.h:182: error: `newctx' undeclared here (not in a function)
../drm_drv.h:182: error: initializer element is not constant
../drm_drv.h:182: error: (near initialization for `DRM')
../drm_drv.h:182: warning: excess elements in scalar initializer
../drm_drv.h:182: warning: (near initialization for `DRM')
../drm_drv.h:182: warning: excess elements in scalar initializer
../drm_drv.h:182: warning: (near initialization for `DRM')
../drm_drv.h:182: warning: excess elements in scalar initializer
../drm_drv.h:182: warning: (near initialization for `DRM')
../drm_drv.h:183: error: array index in non-array initializer
../drm_drv.h:183: error: (near initialization for `DRM')
../drm_drv.h:183: warning: braces around scalar initializer
../drm_drv.h:183: warning: (near initialization for `DRM')
../drm_drv.h:183: error: `resctx' undeclared here (not in a function)
../drm_drv.h:183: error: initializer element is not constant
../drm_drv.h:183: error: (near initialization for `DRM')
../drm_drv.h:183: warning: excess elements in scalar initializer
../drm_drv.h:183: warning: (near initialization for `DRM')
../drm_drv.h:183: warning: excess elements in scalar initializer
../drm_drv.h:183: warning: (near initialization for `DRM')
../drm_drv.h:183: warning: excess elements in scalar initializer
../drm_drv.h:183: warning: (near initialization for `DRM')
../drm_drv.h:185: error: array index in non-array initializer
../drm_drv.h:185: error: (near initialization for `DRM')
../drm_drv.h:185: warning: braces around scalar initializer
../drm_drv.h:185: warning: (near initialization for `DRM')
../drm_drv.h:185: error: `adddraw' undeclared here (not in a function)
../drm_drv.h:185: error: initializer element is not constant
../drm_drv.h:185: error: (near initialization for `DRM')
../drm_drv.h:185: warning: excess elements in scalar initializer
../drm_drv.h:185: warning: (near initialization for `DRM')
../drm_drv.h:185: warning: excess elements in scalar initializer
../drm_drv.h:185: warning: (near initialization for `DRM')
../drm_drv.h:185: warning: excess elements in scalar initializer
../drm_drv.h:185: warning: (near initialization for `DRM')
../drm_drv.h:186: error: array index in non-array initializer
../drm_drv.h:186: error: (near initialization for `DRM')
../drm_drv.h:186: warning: braces around scalar initializer
../drm_drv.h:186: warning: (near initialization for `DRM')
../drm_drv.h:186: error: `rmdraw' undeclared here (not in a function)
../drm_drv.h:186: error: initializer element is not constant
../drm_drv.h:186: error: (near initialization for `DRM')
../drm_drv.h:186: warning: excess elements in scalar initializer
../drm_drv.h:186: warning: (near initialization for `DRM')
../drm_drv.h:186: warning: excess elements in scalar initializer
../drm_drv.h:186: warning: (near initialization for `DRM')
../drm_drv.h:186: warning: excess elements in scalar initializer
../drm_drv.h:186: warning: (near initialization for `DRM')
../drm_drv.h:188: error: array index in non-array initializer
../drm_drv.h:188: error: (near initialization for `DRM')
../drm_drv.h:188: warning: braces around scalar initializer
../drm_drv.h:188: warning: (near initialization for `DRM')
../drm_drv.h:188: error: `lock' undeclared here (not in a function)
../drm_drv.h:188: error: initializer element is not constant
../drm_drv.h:188: error: (near initialization for `DRM')
../drm_drv.h:188: warning: excess elements in scalar initializer
../drm_drv.h:188: warning: (near initialization for `DRM')
../drm_drv.h:188: warning: excess elements in scalar initializer
../drm_drv.h:188: warning: (near initialization for `DRM')
../drm_drv.h:188: warning: excess elements in scalar initializer
../drm_drv.h:188: warning: (near initialization for `DRM')
../drm_drv.h:189: error: array index in non-array initializer
../drm_drv.h:189: error: (near initialization for `DRM')
../drm_drv.h:189: warning: braces around scalar initializer
../drm_drv.h:189: warning: (near initialization for `DRM')
../drm_drv.h:189: error: `unlock' undeclared here (not in a function)
../drm_drv.h:189: error: initializer element is not constant
../drm_drv.h:189: error: (near initialization for `DRM')
../drm_drv.h:189: warning: excess elements in scalar initializer
../drm_drv.h:189: warning: (near initialization for `DRM')
../drm_drv.h:189: warning: excess elements in scalar initializer
../drm_drv.h:189: warning: (near initialization for `DRM')
../drm_drv.h:189: warning: excess elements in scalar initializer
../drm_drv.h:189: warning: (near initialization for `DRM')
../drm_drv.h:190: error: array index in non-array initializer
../drm_drv.h:190: error: (near initialization for `DRM')
../drm_drv.h:190: warning: braces around scalar initializer
../drm_drv.h:190: warning: (near initialization for `DRM')
../drm_drv.h:190: error: `finish' undeclared here (not in a function)
../drm_drv.h:190: error: initializer element is not constant
../drm_drv.h:190: error: (near initialization for `DRM')
../drm_drv.h:190: warning: excess elements in scalar initializer
../drm_drv.h:190: warning: (near initialization for `DRM')
../drm_drv.h:190: warning: excess elements in scalar initializer
../drm_drv.h:190: warning: (near initialization for `DRM')
../drm_drv.h:190: warning: excess elements in scalar initializer
../drm_drv.h:190: warning: (near initialization for `DRM')
../drm_drv.h:229: error: `DRM' declared as function returning a function
../drm_drv.h:229: warning: parameter names (without types) in function declaration
../drm_drv.h:229: warning: redundant redeclaration of `DRM' in same scope
../drm_drawable.h:47: warning: previous declaration of `DRM'
../drm_drv.h:233: error: `DRM' declared as function returning a function
../drm_drv.h:233: warning: function declaration isn't a prototype
../drm_drv.h:233: error: redefinition of `DRM'
../drm_drawable.h:47: error: `DRM' previously defined here
../drm_drv.h: In function `DRM':
../drm_drv.h:233: warning: type of `probe' defaults to `int'
../drm_drv.h:236: warning: implicit declaration of function `pci_get_devid'
../drm_drv.h:236: error: `dev' undeclared (first use in this function)
../drm_drv.h:240: error: `find_description' undeclared (first use in this function)
../drm_drv.h:240: error: called object is not a function
../drm_drv.h: At top level:
../drm_drv.h:250: error: `DRM' declared as function returning a function
../drm_drv.h:250: warning: function declaration isn't a prototype
../drm_drv.h:250: error: redefinition of `DRM'
../drm_drv.h:233: error: `DRM' previously defined here
../drm_drv.h: In function `DRM':
../drm_drv.h:250: warning: type of `attach' defaults to `int'
../drm_drv.h:251: error: `init' undeclared (first use in this function)
../drm_drv.h:251: error: `dev' undeclared (first use in this function)
../drm_drv.h:251: error: called object is not a function
../drm_drv.h: At top level:
../drm_drv.h:255: error: `DRM' declared as function returning a function
../drm_drv.h:255: warning: function declaration isn't a prototype
../drm_drv.h:255: error: redefinition of `DRM'
../drm_drv.h:250: error: `DRM' previously defined here
../drm_drv.h: In function `DRM':
../drm_drv.h:255: warning: type of `detach' defaults to `int'
../drm_drv.h:256: error: `cleanup' undeclared (first use in this function)
../drm_drv.h:256: error: `dev' undeclared (first use in this function)
../drm_drv.h:256: error: called object is not a function
../drm_drv.h: At top level:
../drm_drv.h:259: error: `DRM' declared as function returning an array
../drm_drv.h:259: warning: parameter names (without types) in function declaration
../drm_drv.h:259: error: function `DRM' is initialized like a variable
../drm_drv.h:259: warning: redundant redeclaration of `DRM' in same scope
../drm_drv.h:255: warning: previous declaration of `DRM'
../drm_drv.h:261: warning: braces around scalar initializer
../drm_drv.h:261: warning: (near initialization for `DRM')
../drm_drv.h:261: error: invalid initializer
../drm_drv.h:261: error: (near initialization for `DRM')
../drm_drv.h:261: error: `probe' undeclared here (not in a function)
../drm_drv.h:261: warning: excess elements in scalar initializer
../drm_drv.h:261: warning: (near initialization for `DRM')
../drm_drv.h:261: error: initializer element is not constant
../drm_drv.h:261: error: (near initialization for `DRM')
../drm_drv.h:262: warning: braces around scalar initializer
../drm_drv.h:262: warning: (near initialization for `DRM')
../drm_drv.h:262: error: invalid initializer
../drm_drv.h:262: error: (near initialization for `DRM')
../drm_drv.h:262: error: `attach' undeclared here (not in a function)
../drm_drv.h:262: warning: excess elements in scalar initializer
../drm_drv.h:262: warning: (near initialization for `DRM')
../drm_drv.h:262: warning: excess elements in scalar initializer
../drm_drv.h:262: warning: (near initialization for `DRM')
../drm_drv.h:263: warning: braces around scalar initializer
../drm_drv.h:263: warning: (near initialization for `DRM')
../drm_drv.h:263: error: invalid initializer
../drm_drv.h:263: error: (near initialization for `DRM')
../drm_drv.h:263: error: `detach' undeclared here (not in a function)
../drm_drv.h:263: warning: excess elements in scalar initializer
../drm_drv.h:263: warning: (near initialization for `DRM')
../drm_drv.h:263: warning: excess elements in scalar initializer
../drm_drv.h:263: warning: (near initialization for `DRM')
../drm_drv.h:265: warning: braces around scalar initializer
../drm_drv.h:265: warning: (near initialization for `DRM')
../drm_drv.h:265: error: invalid initializer
../drm_drv.h:265: error: (near initialization for `DRM')
../drm_drv.h:265: warning: excess elements in scalar initializer
../drm_drv.h:265: warning: (near initialization for `DRM')
../drm_drv.h:265: warning: excess elements in scalar initializer
../drm_drv.h:265: warning: (near initialization for `DRM')
../drm_drv.h:268: warning: parameter names (without types) in function declaration
../drm_drv.h:268: error: function `DRM' is initialized like a variable
../drm_drv.h:268: error: conflicting types for `DRM'
../drm_drv.h:255: error: previous declaration of `DRM'
../drm_drv.h:268: warning: redundant redeclaration of `DRM' in same scope
../drm_drv.h:255: warning: previous declaration of `DRM'
../drm_drv.h:269: error: invalid initializer
../drm_drv.h:269: error: (near initialization for `DRM')
../drm_drv.h:270: error: `methods' undeclared here (not in a function)
../drm_drv.h:270: warning: excess elements in scalar initializer
../drm_drv.h:270: warning: (near initialization for `DRM')
../drm_drv.h:271: warning: excess elements in scalar initializer
../drm_drv.h:271: warning: (near initialization for `DRM')
../drm_drv.h:274: warning: parameter names (without types) in function declaration
../drm_drv.h:274: error: conflicting types for `DRM'
../drm_drv.h:268: error: previous declaration of `DRM'
../drm_drv.h:274: warning: redundant redeclaration of `DRM' in same scope
../drm_drv.h:268: warning: previous declaration of `DRM'
../drm_drv.h:276: warning: parameter names (without types) in function declaration
../drm_drv.h:276: error: function `DRM' is initialized like a variable
../drm_drv.h:276: error: conflicting types for `DRM'
../drm_drv.h:274: error: previous declaration of `DRM'
../drm_drv.h:276: warning: redundant redeclaration of `DRM' in same scope
../drm_drv.h:274: warning: previous declaration of `DRM'
../drm_drv.h:277: error: `open' undeclared here (not in a function)
../drm_drv.h:277: error: initializer element is not constant
../drm_drv.h:277: error: (near initialization for `DRM')
../drm_drv.h:278: error: `close' undeclared here (not in a function)
../drm_drv.h:278: warning: excess elements in scalar initializer
../drm_drv.h:278: warning: (near initialization for `DRM')
../drm_drv.h:279: error: `read' undeclared here (not in a function)
../drm_drv.h:279: warning: excess elements in scalar initializer
../drm_drv.h:279: warning: (near initialization for `DRM')
../drm_drv.h:280: error: `write' undeclared here (not in a function)
../drm_drv.h:280: warning: excess elements in scalar initializer
../drm_drv.h:280: warning: (near initialization for `DRM')
../drm_drv.h:281: error: `ioctl' undeclared here (not in a function)
../drm_drv.h:281: warning: excess elements in scalar initializer
../drm_drv.h:281: warning: (near initialization for `DRM')
../drm_drv.h:282: error: `poll' undeclared here (not in a function)
../drm_drv.h:282: warning: excess elements in scalar initializer
../drm_drv.h:282: warning: (near initialization for `DRM')
../drm_drv.h:283: error: `mmap' undeclared here (not in a function)
../drm_drv.h:283: warning: excess elements in scalar initializer
../drm_drv.h:283: warning: (near initialization for `DRM')
../drm_drv.h:284: error: `nostrategy' undeclared here (not in a function)
../drm_drv.h:284: warning: excess elements in scalar initializer
../drm_drv.h:284: warning: (near initialization for `DRM')
../drm_drv.h:285: error: `DRIVER_NAME' undeclared here (not in a function)
../drm_drv.h:285: warning: excess elements in scalar initializer
../drm_drv.h:285: warning: (near initialization for `DRM')
../drm_drv.h:286: warning: excess elements in scalar initializer
../drm_drv.h:286: warning: (near initialization for `DRM')
../drm_drv.h:287: error: `nodump' undeclared here (not in a function)
../drm_drv.h:287: warning: excess elements in scalar initializer
../drm_drv.h:287: warning: (near initialization for `DRM')
../drm_drv.h:288: error: `nopsize' undeclared here (not in a function)
../drm_drv.h:288: warning: excess elements in scalar initializer
../drm_drv.h:288: warning: (near initialization for `DRM')
../drm_drv.h:289: warning: excess elements in scalar initializer
../drm_drv.h:289: warning: (near initialization for `DRM')
../drm_drv.h:295: warning: excess elements in scalar initializer
../drm_drv.h:295: warning: (near initialization for `DRM')
../drm_drv.h:351: error: `DRM' declared as function returning a function
../drm_drv.h:351: warning: function declaration isn't a prototype
../drm_drv.h:351: error: conflicting types for `DRM'
../drm_drv.h:276: error: previous declaration of `DRM'
../drm_drv.h:351: warning: redundant redeclaration of `DRM' in same scope
../drm_drv.h:276: warning: previous declaration of `DRM'
../drm_drv.h: In function `DRM':
../drm_drv.h:351: warning: type of `find_description' defaults to `int'
../drm_drv.h:355: error: `devicelist' undeclared (first use in this function)
../drm_drv.h:355: error: subscripted value is neither array nor pointer
../drm_drv.h:356: error: subscripted value is neither array nor pointer
../drm_drv.h:356: error: `vendor' undeclared (first use in this function)
../drm_drv.h:357: error: subscripted value is neither array nor pointer
../drm_drv.h:357: error: `device' undeclared (first use in this function)
../drm_drv.h:359: error: subscripted value is neither array nor pointer
../drm_drv.h:360: error: subscripted value is neither array nor pointer
../drm_drv.h:362: error: subscripted value is neither array nor pointer
../drm_drv.h:366: warning: return makes integer from pointer without a cast
../drm_drv.h: At top level:
../drm_drv.h:370: error: `DRM' declared as function returning a function
../drm_drv.h:370: warning: function declaration isn't a prototype
../drm_drv.h:370: error: redefinition of `DRM'
../drm_drv.h:351: error: `DRM' previously defined here
../drm_drv.h: In function `DRM':
../drm_drv.h:370: warning: type of `setup' defaults to `int'
../drm_drv.h:374: error: `dev' undeclared (first use in this function)
../drm_drv.h:431: error: `alloc' undeclared (first use in this function)
../drm_drv.h:432: error: called object is not a function
../drm_drv.h: At top level:
../drm_drv.h:488: error: `DRM' declared as function returning a function
../drm_drv.h:488: warning: function declaration isn't a prototype
../drm_drv.h:488: error: redefinition of `DRM'
../drm_drv.h:370: error: `DRM' previously defined here
../drm_drv.h: In function `DRM':
../drm_drv.h:488: warning: type of `takedown' defaults to `int'
../drm_drv.h:502: error: `dev' undeclared (first use in this function)
../drm_drv.h:507: error: called object is not a function
../drm_drv.h:513: error: called object is not a function
../drm_drv.h:521: error: called object is not a function
../drm_drv.h:553: error: called object is not a function
../drm_drv.h:592: error: `ioremapfree' undeclared (first use in this function)
../drm_drv.h:592: error: called object is not a function
../drm_drv.h:597: error: called object is not a function
../drm_drv.h:618: error: called object is not a function
../drm_drv.h:619: error: called object is not a function
../drm_drv.h:621: error: called object is not a function
In file included from /root/drm/mga_drv.c:57:
../drm_drv.h: At top level:
../drm_drv.h:666: error: `DRM' declared as function returning a function
../drm_drv.h:666: warning: function declaration isn't a prototype
../drm_drv.h:666: error: redefinition of `DRM'
../drm_drv.h:488: error: `DRM' previously defined here
../drm_drv.h: In function `DRM':
../drm_drv.h:666: warning: type of `init' defaults to `int'
../drm_drv.h:678: error: `nbdev' undeclared (first use in this function)
../drm_drv.h:682: error: `cdevsw' undeclared (first use in this function)
../drm_drv.h:682: error: invalid lvalue in unary `&'
../drm_drv.h:693: error: `DRIVER_NAME' undeclared (first use in this function)
../drm_drv.h:694: error: `mem_init' undeclared (first use in this function)
../drm_drv.h:694: error: called object is not a function
../drm_drv.h:695: error: `sysctl_init' undeclared (first use in this function)
../drm_drv.h:695: error: called object is not a function
../drm_drv.h:749: error: `DRIVER_MAJOR' undeclared (first use in this function)
../drm_drv.h:749: error: `DRIVER_MINOR' undeclared (first use in this function)
../drm_drv.h:749: error: `DRIVER_PATCHLEVEL' undeclared (first use in this function)
../drm_drv.h:749: error: `DRIVER_DATE' undeclared (first use in this function)
../drm_drv.h: At top level:
../drm_drv.h:771: error: `DRM' declared as function returning a function
../drm_drv.h:771: warning: function declaration isn't a prototype
../drm_drv.h:771: error: redefinition of `DRM'
../drm_drv.h:666: error: `DRM' previously defined here
../drm_drv.h: In function `DRM':
../drm_drv.h:771: warning: type of `cleanup' defaults to `int'
../drm_drv.h:785: error: `nbdev' undeclared (first use in this function)
../drm_drv.h:787: error: `sysctl_cleanup' undeclared (first use in this function)
../drm_drv.h:787: error: called object is not a function
../drm_drv.h:807: error: `takedown' undeclared (first use in this function)
../drm_drv.h:807: error: called object is not a function
../drm_drv.h:817: error: `mem_uninit' undeclared (first use in this function)
../drm_drv.h:817: error: called object is not a function
../drm_drv.h: At top level:
../drm_drv.h:823: error: `DRM' declared as function returning a function
../drm_drv.h:823: warning: function declaration isn't a prototype
../drm_drv.h:823: error: redefinition of `DRM'
../drm_drv.h:771: error: `DRM' previously defined here
../drm_drv.h: In function `DRM':
../drm_drv.h:823: warning: type of `version' defaults to `int'
../drm_drv.h:824: warning: declaration of `version' shadows a parameter
../drm_drv.h:827: error: `cmd' undeclared (first use in this function)
../drm_drv.h:827: error: `data' undeclared (first use in this function)
../drm_drv.h:838: error: `DRIVER_MAJOR' undeclared (first use in this function)
../drm_drv.h:839: error: `DRIVER_MINOR' undeclared (first use in this function)
../drm_drv.h:840: error: `DRIVER_PATCHLEVEL' undeclared (first use in this function)
../drm_drv.h:842: error: `DRIVER_NAME' undeclared (first use in this function)
../drm_drv.h:843: error: `DRIVER_DATE' undeclared (first use in this function)
../drm_drv.h:844: error: `DRIVER_DESC' undeclared (first use in this function)
../drm_drv.h: At top level:
../drm_drv.h:852: error: `DRM' declared as function returning a function
../drm_drv.h:852: warning: function declaration isn't a prototype
../drm_drv.h:852: error: redefinition of `DRM'
../drm_drv.h:823: error: `DRM' previously defined here
../drm_drv.h: In function `DRM':
../drm_drv.h:852: warning: type of `open' defaults to `int'
../drm_drv.h:856: error: `devclass' undeclared (first use in this function)
../drm_drv.h:856: error: `kdev' undeclared (first use in this function)
../drm_drv.h:856: warning: passing arg 1 of `devclass_get_softc' makes pointer from integer without a cast
../drm_drv.h:860: error: `open_helper' undeclared (first use in this function)
../drm_drv.h:860: error: `flags' undeclared (first use in this function)
../drm_drv.h:860: error: `fmt' undeclared (first use in this function)
../drm_drv.h:860: error: `p' undeclared (first use in this function)
../drm_drv.h:860: error: called object is not a function
../drm_drv.h:869: error: `setup' undeclared (first use in this function)
../drm_drv.h:869: error: called object is not a function
../drm_drv.h: At top level:
../drm_drv.h:877: error: `DRM' declared as function returning a function
../drm_drv.h:877: warning: function declaration isn't a prototype
../drm_drv.h:877: error: redefinition of `DRM'
../drm_drv.h:852: error: `DRM' previously defined here
../drm_drv.h: In function `DRM':
../drm_drv.h:877: warning: type of `close' defaults to `int'
../drm_drv.h:879: error: `kdev' undeclared (first use in this function)
../drm_drv.h:883: error: `find_file_by_proc' undeclared (first use in this function)
../drm_drv.h:883: error: `p' undeclared (first use in this function)
../drm_drv.h:883: error: called object is not a function
../drm_drv.h:911: error: `lock_free' undeclared (first use in this function)
../drm_drv.h:913: error: called object is not a function
../drm_drv.h:966: error: called object is not a function
../drm_drv.h:971: error: called object is not a function
../drm_drv.h:995: error: `takedown' undeclared (first use in this function)
../drm_drv.h:995: error: called object is not a function
In file included from /root/drm/mga_drv.c:57:
../drm_drv.h: At top level:
../drm_drv.h:1005: error: `DRM' declared as function returning a function
../drm_drv.h:1005: warning: function declaration isn't a prototype
../drm_drv.h:1005: error: redefinition of `DRM'
../drm_drv.h:877: error: `DRM' previously defined here
../drm_drv.h: In function `DRM':
../drm_drv.h:1005: warning: type of `ioctl' defaults to `int'
../drm_drv.h:1006: error: `kdev' undeclared (first use in this function)
../drm_drv.h:1008: warning: declaration of `ioctl' shadows a parameter
../drm_drv.h:1010: error: `cmd' undeclared (first use in this function)
../drm_drv.h:1011: error: `find_file_by_proc' undeclared (first use in this function)
../drm_drv.h:1011: error: `p' undeclared (first use in this function)
../drm_drv.h:1011: error: called object is not a function
../drm_drv.h:1038: error: `data' undeclared (first use in this function)
../drm_drv.h:1062: error: `ioctls' undeclared (first use in this function)
../drm_drv.h:1062: error: subscripted value is neither array nor pointer
../drm_drv.h:1065: error: subscripted value is neither array nor pointer
../drm_drv.h:1075: error: `flags' undeclared (first use in this function)
../drm_drv.h: At top level:
../drm_drv.h:1084: error: `DRM' declared as function returning a function
../drm_drv.h:1084: warning: function declaration isn't a prototype
../drm_drv.h:1084: error: redefinition of `DRM'
../drm_drv.h:1005: error: `DRM' previously defined here
../drm_drv.h: In function `DRM':
../drm_drv.h:1084: warning: type of `lock' defaults to `int'
../drm_drv.h:1085: error: `kdev' undeclared (first use in this function)
../drm_drv.h:1086: warning: declaration of `lock' shadows a parameter
../drm_drv.h:1097: error: `cmd' undeclared (first use in this function)
../drm_drv.h:1097: error: `data' undeclared (first use in this function)
../drm_drv.h:1128: error: `lock_take' undeclared (first use in this function)
../drm_drv.h:1129: error: called object is not a function
In file included from /root/drm/mga_drv.c:57:
../drm_drv.h: At top level:
../drm_drv.h:1181: error: `DRM' declared as function returning a function
../drm_drv.h:1181: warning: function declaration isn't a prototype
../drm_drv.h:1181: error: redefinition of `DRM'
../drm_drv.h:1084: error: `DRM' previously defined here
../drm_drv.h: In function `DRM':
../drm_drv.h:1181: warning: type of `unlock' defaults to `int'
../drm_drv.h:1182: error: `kdev' undeclared (first use in this function)
../drm_drv.h:1185: error: `cmd' undeclared (first use in this function)
../drm_drv.h:1185: error: `data' undeclared (first use in this function)
../drm_drv.h:1214: error: `lock_transfer' undeclared (first use in this function)
../drm_drv.h:1215: error: called object is not a function
../drm_drv.h:1223: error: `lock_free' undeclared (first use in this function)
../drm_drv.h:1224: error: called object is not a function
In file included from /root/drm/mga_drv.c:57:
../drm_drv.h: At top level:
../drm_drv.h:1237: error: `DRM' declared as function returning a function
../drm_drv.h:1237: warning: parameter names (without types) in function declaration
../drm_drv.h:1237: warning: static declaration for `DRM' follows non-static
../drm_drv.h:1237: warning: redundant redeclaration of `DRM' in same scope
../drm_drv.h:1181: warning: previous declaration of `DRM'
../drm_drv.h:1238: warning: parameter names (without types) in function declaration
../drm_drv.h:1238: error: function `DRM' is initialized like a variable
../drm_drv.h:1238: error: conflicting types for `DRM'
../drm_drv.h:1181: error: previous declaration of `DRM'
../drm_drv.h:1238: warning: redundant redeclaration of `DRM' in same scope
../drm_drv.h:1181: warning: previous declaration of `DRM'
../drm_drv.h:1238: error: initializer element is not constant
../drm_drv.h:1238: error: (near initialization for `DRM')
../drm_drv.h:1238: warning: excess elements in scalar initializer
../drm_drv.h:1238: warning: (near initialization for `DRM')
../drm_drv.h:1238: warning: excess elements in scalar initializer
../drm_drv.h:1238: warning: (near initialization for `DRM')
In file included from /root/drm/mga_drv.c:57:
../drm_drv.h:1239:102: pasting ")" and "_sys_init" does not give a valid preprocessing token
../drm_drv.h:1239: warning: type defaults to `int' in declaration of `type name'
../drm_drv.h:1239: error: syntax error before "_sys_init"
../drm_drv.h:1239:102: pasting ")" and "_sys_init" does not give a valid preprocessing token
../drm_drv.h:1239: warning: type defaults to `int' in declaration of `type name'
../drm_drv.h:1239: error: syntax error before "_sys_init"
../drm_drv.h:1240:104: pasting ")" and "_sys_uninit" does not give a valid preprocessing token
../drm_drv.h:1240: error: syntax error before "_sys_uninit"
../drm_drv.h:1240:104: pasting ")" and "_sys_uninit" does not give a valid preprocessing token
../drm_drv.h:1240: error: syntax error before "_sys_uninit"
../drm_drv.h:1251: error: `DRM' declared as function returning a function
../drm_drv.h:1251: warning: function declaration isn't a prototype
../drm_drv.h:1251: error: conflicting types for `DRM'
../drm_drv.h:1238: error: previous declaration of `DRM'
../drm_drv.h:1251: warning: redundant redeclaration of `DRM' in same scope
../drm_drv.h:1238: warning: previous declaration of `DRM'
../drm_drv.h: In function `DRM':
../drm_drv.h:1251: warning: type of `linux_ioctl' defaults to `int'
../drm_drv.h:1252: error: `args' undeclared (first use in this function)
../drm_drv.h:1269: error: `M_DRM' undeclared (first use in this function)
../drm_drv.h:1269: warning: passing arg 2 of `malloc' makes pointer from integer without a cast
../drm_drv.h:1280: warning: passing arg 2 of `free' makes pointer from integer without a cast
../drm_drv.h:1297: error: `p' undeclared (first use in this function)
../drm_drv.h:1299: warning: passing arg 2 of `free' makes pointer from integer without a cast
../drm_drv.h:1310: warning: passing arg 2 of `free' makes pointer from integer without a cast
In file included from /root/drm/mga_drv.c:58:
../drm_fops.h: At top level:
../drm_fops.h:36: error: `DRM' declared as function returning a function
../drm_fops.h:36: warning: function declaration isn't a prototype
../drm_fops.h:36: error: redefinition of `DRM'
../drm_drv.h:1251: error: `DRM' previously defined here
../drm_fops.h: In function `DRM':
../drm_fops.h:36: warning: type of `find_file_by_proc' defaults to `int'
../drm_fops.h:38: error: `p' undeclared (first use in this function)
../drm_fops.h:46: error: `dev' undeclared (first use in this function)
../drm_fops.h:48: warning: return makes integer from pointer without a cast
../drm_fops.h: At top level:
../drm_fops.h:56: error: `DRM' declared as function returning a function
../drm_fops.h:56: warning: function declaration isn't a prototype
../drm_fops.h:56: error: redefinition of `DRM'
../drm_fops.h:36: error: `DRM' previously defined here
../drm_fops.h: In function `DRM':
../drm_fops.h:56: warning: type of `open_helper' defaults to `int'
../drm_fops.h:57: error: `kdev' undeclared (first use in this function)
../drm_fops.h:60: error: `flags' undeclared (first use in this function)
../drm_fops.h:62: error: `dev' undeclared (first use in this function)
../drm_fops.h:63: error: `cpu_valid' undeclared (first use in this function)
../drm_fops.h:63: error: called object is not a function
../drm_fops.h:69: error: `find_file_by_proc' undeclared (first use in this function)
../drm_fops.h:69: error: `p' undeclared (first use in this function)
../drm_fops.h:69: error: called object is not a function
../drm_fops.h:73: error: `alloc' undeclared (first use in this function)
../drm_fops.h:73: error: called object is not a function
In file included from /root/drm/mga_drv.c:58:
../drm_fops.h: At top level:
../drm_fops.h:104: error: `DRM' declared as function returning a function
../drm_fops.h:104: warning: function declaration isn't a prototype
../drm_fops.h:104: error: redefinition of `DRM'
../drm_fops.h:56: error: `DRM' previously defined here
../drm_fops.h: In function `DRM':
../drm_fops.h:104: warning: type of `read' defaults to `int'
../drm_fops.h:105: error: `kdev' undeclared (first use in this function)
../drm_fops.h:128: error: `uio' undeclared (first use in this function)
../drm_fops.h: At top level:
../drm_fops.h:149: error: `DRM' declared as function returning a function
../drm_fops.h:149: warning: function declaration isn't a prototype
../drm_fops.h:149: error: redefinition of `DRM'
../drm_fops.h:104: error: `DRM' previously defined here
../drm_fops.h: In function `DRM':
../drm_fops.h:149: warning: type of `write_string' defaults to `int'
../drm_fops.h:150: error: `dev' undeclared (first use in this function)
../drm_fops.h:151: error: `s' undeclared (first use in this function)
../drm_fops.h: At top level:
../drm_fops.h:211: error: `DRM' declared as function returning a function
../drm_fops.h:211: warning: function declaration isn't a prototype
../drm_fops.h:211: error: redefinition of `DRM'
../drm_fops.h:149: error: `DRM' previously defined here
../drm_fops.h: In function `DRM':
../drm_fops.h:211: warning: type of `poll' defaults to `int'
../drm_fops.h:212: error: `kdev' undeclared (first use in this function)
../drm_fops.h:217: error: `events' undeclared (first use in this function)
../drm_fops.h:222: error: `p' undeclared (first use in this function)
In file included from /root/drm/mga_drv.c:58:
../drm_fops.h: At top level:
../drm_fops.h:230: error: `DRM' declared as function returning a function
../drm_fops.h:230: warning: function declaration isn't a prototype
../drm_fops.h:230: error: redefinition of `DRM'
../drm_fops.h:211: error: `DRM' previously defined here
../drm_fops.h: In function `DRM':
../drm_fops.h:230: warning: type of `write' defaults to `int'
In file included from /root/drm/mga_drv.c:59:
../drm_init.h: At top level:
../drm_init.h:37: warning: parameter names (without types) in function declaration
../drm_init.h:37: error: function `DRM' is initialized like a variable
../drm_init.h:37: warning: redundant redeclaration of `DRM' in same scope
../drm_fops.h:230: warning: previous declaration of `DRM'
../drm_init.h:37: error: invalid initializer
../drm_init.h:44: error: `DRM' declared as function returning a function
../drm_init.h:44: warning: function declaration isn't a prototype
../drm_init.h:44: error: redefinition of `DRM'
../drm_fops.h:230: error: `DRM' previously defined here
../drm_init.h: In function `DRM':
../drm_init.h:44: warning: type of `parse_option' defaults to `int'
../drm_init.h:48: error: `s' undeclared (first use in this function)
../drm_init.h:48: warning: `return' with no value, in function returning non-void
../drm_init.h:53: error: `flags' undeclared (first use in this function)
../drm_init.h:53: error: invalid lvalue in assignment
../drm_init.h:55: warning: `return' with no value, in function returning non-void
../drm_init.h:58: error: invalid lvalue in assignment
../drm_init.h:60: warning: `return' with no value, in function returning non-void
../drm_init.h:63: warning: `return' with no value, in function returning non-void
../drm_init.h: At top level:
../drm_init.h:89: error: `DRM' declared as function returning a function
../drm_init.h:89: warning: function declaration isn't a prototype
../drm_init.h:89: error: redefinition of `DRM'
../drm_init.h:44: error: `DRM' previously defined here
../drm_init.h: In function `DRM':
../drm_init.h:89: warning: type of `parse_options' defaults to `int'
../drm_init.h:93: error: `s' undeclared (first use in this function)
../drm_init.h:93: warning: `return' with no value, in function returning non-void
../drm_init.h:99: error: `parse_option' undeclared (first use in this function)
../drm_init.h:99: error: called object is not a function
../drm_init.h: At top level:
../drm_init.h:107: error: `DRM' declared as function returning a function
../drm_init.h:107: warning: function declaration isn't a prototype
../drm_init.h:107: error: redefinition of `DRM'
../drm_init.h:89: error: `DRM' previously defined here
../drm_init.h: In function `DRM':
../drm_init.h:107: warning: type of `cpu_valid' defaults to `int'
In file included from /root/drm/mga_drv.c:60:
../drm_ioctl.h: At top level:
../drm_ioctl.h:35: error: `DRM' declared as function returning a function
../drm_ioctl.h:35: warning: function declaration isn't a prototype
../drm_ioctl.h:35: error: redefinition of `DRM'
../drm_init.h:107: error: `DRM' previously defined here
../drm_ioctl.h: In function `DRM':
../drm_ioctl.h:35: warning: type of `irq_busid' defaults to `int'
../drm_ioctl.h:43: error: `cmd' undeclared (first use in this function)
../drm_ioctl.h:43: error: `data' undeclared (first use in this function)
../drm_ioctl.h:58: warning: implicit declaration of function `pci_get_slot'
../drm_ioctl.h:59: warning: implicit declaration of function `pci_get_function'
../drm_ioctl.h:66: warning: implicit declaration of function `pci_get_irq'
../drm_ioctl.h: At top level:
../drm_ioctl.h:82: error: `DRM' declared as function returning a function
../drm_ioctl.h:82: warning: function declaration isn't a prototype
../drm_ioctl.h:82: error: redefinition of `DRM'
../drm_ioctl.h:35: error: `DRM' previously defined here
../drm_ioctl.h: In function `DRM':
../drm_ioctl.h:82: warning: type of `getunique' defaults to `int'
../drm_ioctl.h:83: error: `kdev' undeclared (first use in this function)
../drm_ioctl.h:86: error: `cmd' undeclared (first use in this function)
../drm_ioctl.h:86: error: `data' undeclared (first use in this function)
../drm_ioctl.h: At top level:
../drm_ioctl.h:100: error: `DRM' declared as function returning a function
../drm_ioctl.h:100: warning: function declaration isn't a prototype
../drm_ioctl.h:100: error: redefinition of `DRM'
../drm_ioctl.h:82: error: `DRM' previously defined here
../drm_ioctl.h: In function `DRM':
../drm_ioctl.h:100: warning: type of `setunique' defaults to `int'
../drm_ioctl.h:101: error: `kdev' undeclared (first use in this function)
../drm_ioctl.h:107: error: `cmd' undeclared (first use in this function)
../drm_ioctl.h:107: error: `data' undeclared (first use in this function)
../drm_ioctl.h:113: error: `alloc' undeclared (first use in this function)
../drm_ioctl.h:113: error: called object is not a function
../drm_ioctl.h:123: error: called object is not a function
../drm_ioctl.h:125: error: called object is not a function
../drm_ioctl.h: At top level:
../drm_ioctl.h:136: error: `DRM' declared as function returning a function
../drm_ioctl.h:136: warning: function declaration isn't a prototype
../drm_ioctl.h:136: error: redefinition of `DRM'
../drm_ioctl.h:100: error: `DRM' previously defined here
../drm_ioctl.h: In function `DRM':
../drm_ioctl.h:136: warning: type of `getmap' defaults to `int'
../drm_ioctl.h:137: error: `kdev' undeclared (first use in this function)
../drm_ioctl.h:144: error: `cmd' undeclared (first use in this function)
../drm_ioctl.h:144: error: `data' undeclared (first use in this function)
In file included from /root/drm/mga_drv.c:60:
../drm_ioctl.h: At top level:
../drm_ioctl.h:179: error: `DRM' declared as function returning a function
../drm_ioctl.h:179: warning: function declaration isn't a prototype
../drm_ioctl.h:179: error: redefinition of `DRM'
../drm_ioctl.h:136: error: `DRM' previously defined here
../drm_ioctl.h: In function `DRM':
../drm_ioctl.h:179: warning: type of `getclient' defaults to `int'
../drm_ioctl.h:180: error: `kdev' undeclared (first use in this function)
../drm_ioctl.h:186: error: `cmd' undeclared (first use in this function)
../drm_ioctl.h:186: error: `data' undeclared (first use in this function)
In file included from /root/drm/mga_drv.c:60:
../drm_ioctl.h: At top level:
../drm_ioctl.h:213: error: `DRM' declared as function returning a function
../drm_ioctl.h:213: warning: function declaration isn't a prototype
../drm_ioctl.h:213: error: redefinition of `DRM'
../drm_ioctl.h:179: error: `DRM' previously defined here
../drm_ioctl.h: In function `DRM':
../drm_ioctl.h:213: warning: type of `getstats' defaults to `int'
../drm_ioctl.h:214: error: `kdev' undeclared (first use in this function)
../drm_ioctl.h:236: error: `cmd' undeclared (first use in this function)
../drm_ioctl.h:236: error: `data' undeclared (first use in this function)
In file included from /root/drm/mga_drv.c:61:
../drm_lock.h: At top level:
../drm_lock.h:35: error: `DRM' declared as function returning a function
../drm_lock.h:35: warning: function declaration isn't a prototype
../drm_lock.h:35: error: redefinition of `DRM'
../drm_ioctl.h:213: error: `DRM' previously defined here
../drm_lock.h: In function `DRM':
../drm_lock.h:35: warning: type of `block' defaults to `int'
../drm_lock.h: At top level:
../drm_lock.h:41: error: `DRM' declared as function returning a function
../drm_lock.h:41: warning: function declaration isn't a prototype
../drm_lock.h:41: error: redefinition of `DRM'
../drm_lock.h:35: error: `DRM' previously defined here
../drm_lock.h: In function `DRM':
../drm_lock.h:41: warning: type of `unblock' defaults to `int'
../drm_lock.h: At top level:
../drm_lock.h:47: error: `DRM' declared as function returning a function
../drm_lock.h:47: warning: function declaration isn't a prototype
../drm_lock.h:47: error: redefinition of `DRM'
../drm_lock.h:41: error: `DRM' previously defined here
../drm_lock.h: In function `DRM':
../drm_lock.h:47: warning: type of `lock_take' defaults to `int'
../drm_lock.h:53: error: `lock' undeclared (first use in this function)
../drm_lock.h:55: error: `context' undeclared (first use in this function)
../drm_lock.h: At top level:
../drm_lock.h:78: error: `DRM' declared as function returning a function
../drm_lock.h:78: warning: function declaration isn't a prototype
../drm_lock.h:78: error: redefinition of `DRM'
../drm_lock.h:47: error: `DRM' previously defined here
../drm_lock.h: In function `DRM':
../drm_lock.h:78: warning: type of `lock_transfer' defaults to `int'
../drm_lock.h:82: error: `dev' undeclared (first use in this function)
../drm_lock.h:84: error: `lock' undeclared (first use in this function)
../drm_lock.h:85: error: `context' undeclared (first use in this function)
../drm_lock.h: At top level:
../drm_lock.h:93: error: `DRM' declared as function returning a function
../drm_lock.h:93: warning: function declaration isn't a prototype
../drm_lock.h:93: error: redefinition of `DRM'
../drm_lock.h:78: error: `DRM' previously defined here
../drm_lock.h: In function `DRM':
../drm_lock.h:93: warning: type of `lock_free' defaults to `int'
../drm_lock.h:95: error: `dev' undeclared (first use in this function)
../drm_lock.h:100: error: `lock' undeclared (first use in this function)
../drm_lock.h:104: error: `context' undeclared (first use in this function)
../drm_lock.h: At top level:
../drm_lock.h:116: error: `DRM' declared as function returning a function
../drm_lock.h:116: warning: function declaration isn't a prototype
../drm_lock.h:116: error: redefinition of `DRM'
../drm_lock.h:93: error: `DRM' previously defined here
../drm_lock.h: In function `DRM':
../drm_lock.h:116: warning: type of `flush_queue' defaults to `int'
../drm_lock.h:119: error: `dev' undeclared (first use in this function)
../drm_lock.h:119: error: `context' undeclared (first use in this function)
../drm_lock.h: At top level:
../drm_lock.h:140: error: `DRM' declared as function returning a function
../drm_lock.h:140: warning: function declaration isn't a prototype
../drm_lock.h:140: error: redefinition of `DRM'
../drm_lock.h:116: error: `DRM' previously defined here
../drm_lock.h: In function `DRM':
../drm_lock.h:140: warning: type of `flush_unblock_queue' defaults to `int'
../drm_lock.h:141: error: `dev' undeclared (first use in this function)
../drm_lock.h:141: error: `context' undeclared (first use in this function)
../drm_lock.h: At top level:
../drm_lock.h:158: error: `DRM' declared as function returning a function
../drm_lock.h:158: warning: function declaration isn't a prototype
../drm_lock.h:158: error: redefinition of `DRM'
../drm_lock.h:140: error: `DRM' previously defined here
../drm_lock.h: In function `DRM':
../drm_lock.h:158: warning: type of `flush_block_and_flush' defaults to `int'
../drm_lock.h:164: error: `flags' undeclared (first use in this function)
../drm_lock.h:165: error: `flush_queue' undeclared (first use in this function)
../drm_lock.h:165: error: `dev' undeclared (first use in this function)
../drm_lock.h:165: error: called object is not a function
../drm_lock.h:166: error: `context' undeclared (first use in this function)
../drm_lock.h:166: error: called object is not a function
../drm_lock.h:170: error: called object is not a function
../drm_lock.h: At top level:
../drm_lock.h:177: error: `DRM' declared as function returning a function
../drm_lock.h:177: warning: function declaration isn't a prototype
../drm_lock.h:177: error: redefinition of `DRM'
../drm_lock.h:158: error: `DRM' previously defined here
../drm_lock.h: In function `DRM':
../drm_lock.h:177: warning: type of `flush_unblock' defaults to `int'
../drm_lock.h:183: error: `flags' undeclared (first use in this function)
../drm_lock.h:184: error: `flush_unblock_queue' undeclared (first use in this function)
../drm_lock.h:184: error: `dev' undeclared (first use in this function)
../drm_lock.h:184: error: called object is not a function
../drm_lock.h:185: error: `context' undeclared (first use in this function)
../drm_lock.h:185: error: called object is not a function
../drm_lock.h:189: error: called object is not a function
../drm_lock.h: At top level:
../drm_lock.h:197: error: `DRM' declared as function returning a function
../drm_lock.h:197: warning: function declaration isn't a prototype
../drm_lock.h:197: error: redefinition of `DRM'
../drm_lock.h:177: error: `DRM' previously defined here
../drm_lock.h: In function `DRM':
../drm_lock.h:197: warning: type of `finish' defaults to `int'
../drm_lock.h:198: error: `kdev' undeclared (first use in this function)
../drm_lock.h:204: error: `cmd' undeclared (first use in this function)
../drm_lock.h:204: error: `data' undeclared (first use in this function)
../drm_lock.h:206: error: `flush_block_and_flush' undeclared (first use in this function)
../drm_lock.h:206: error: called object is not a function
../drm_lock.h:207: error: `flush_unblock' undeclared (first use in this function)
../drm_lock.h:207: error: called object is not a function
../drm_lock.h: At top level:
../drm_lock.h:224: error: `DRM' declared as function returning a function
../drm_lock.h:224: warning: function declaration isn't a prototype
../drm_lock.h:224: error: redefinition of `DRM'
../drm_lock.h:197: error: `DRM' previously defined here
../drm_lock.h: In function `DRM':
../drm_lock.h:224: warning: type of `notifier' defaults to `int'
../drm_lock.h:225: error: `priv' undeclared (first use in this function)
In file included from /root/drm/mga_drv.c:62:
../drm_memory.h: At top level:
../drm_memory.h:38: error: `DRM' declared as function returning an array
../drm_memory.h:38: warning: parameter names (without types) in function declaration
../drm_memory.h:38: error: function `DRM' is initialized like a variable
../drm_memory.h:38: warning: redundant redeclaration of `DRM' in same scope
../drm_lock.h:224: warning: previous declaration of `DRM'
../drm_memory.h:38: warning: braces around scalar initializer
../drm_memory.h:38: warning: (near initialization for `DRM')
../drm_memory.h:38: error: invalid initializer
../drm_memory.h:38: error: (near initialization for `DRM')
../drm_memory.h:38: warning: excess elements in scalar initializer
../drm_memory.h:38: warning: (near initialization for `DRM')
../drm_memory.h:38: warning: excess elements in scalar initializer
../drm_memory.h:38: warning: (near initialization for `DRM')
../drm_memory.h:38: warning: excess elements in scalar initializer
../drm_memory.h:38: warning: (near initialization for `DRM')
../drm_memory.h:38: warning: excess elements in scalar initializer
../drm_memory.h:38: warning: (near initialization for `DRM')
../drm_memory.h:38: warning: excess elements in scalar initializer
../drm_memory.h:38: warning: (near initialization for `DRM')
../drm_memory.h:38: warning: excess elements in scalar initializer
../drm_memory.h:38: warning: (near initialization for `DRM')
../drm_memory.h:38: warning: excess elements in scalar initializer
../drm_memory.h:38: warning: (near initialization for `DRM')
../drm_memory.h:38: warning: braces around scalar initializer
../drm_memory.h:38: warning: (near initialization for `DRM')
../drm_memory.h:38: warning: excess elements in scalar initializer
../drm_memory.h:38: warning: (near initialization for `DRM')
../drm_memory.h:38: error: initializer element is not constant
../drm_memory.h:38: error: (near initialization for `DRM')
../drm_memory.h:38: error: `M_DRM' undeclared here (not in a function)
../drm_memory.h:38: error: initializer element is not constant
../drm_memory.h:38: error: (near initialization for `malloctype_init_sys_init.udata')
../drm_memory.h:38: error: `M_DRM' undeclared here (not in a function)
../drm_memory.h:38: error: initializer element is not constant
../drm_memory.h:38: error: (near initialization for `malloctype_uninit_sys_uninit.udata')
../drm_memory.h:52: warning: parameter names (without types) in function declaration
../drm_memory.h:52: error: conflicting types for `DRM'
../drm_lock.h:224: error: previous declaration of `DRM'
../drm_memory.h:52: warning: redundant redeclaration of `DRM' in same scope
../drm_lock.h:224: warning: previous declaration of `DRM'
../drm_memory.h:53: warning: parameter names (without types) in function declaration
../drm_memory.h:53: error: function `DRM' is initialized like a variable
../drm_memory.h:53: error: conflicting types for `DRM'
../drm_memory.h:52: error: previous declaration of `DRM'
../drm_memory.h:53: warning: redundant redeclaration of `DRM' in same scope
../drm_memory.h:52: warning: previous declaration of `DRM'
../drm_memory.h:53: error: invalid initializer
../drm_memory.h:54: warning: parameter names (without types) in function declaration
../drm_memory.h:54: error: function `DRM' is initialized like a variable
../drm_memory.h:54: warning: redundant redeclaration of `DRM' in same scope
../drm_memory.h:53: warning: previous declaration of `DRM'
../drm_memory.h:54: error: invalid initializer
../drm_memory.h:55: error: `DRM' declared as function returning an array
../drm_memory.h:55: warning: parameter names (without types) in function declaration
../drm_memory.h:55: error: function `DRM' is initialized like a variable
../drm_memory.h:55: error: conflicting types for `DRM'
../drm_memory.h:53: error: previous declaration of `DRM'
../drm_memory.h:55: warning: redundant redeclaration of `DRM' in same scope
../drm_memory.h:53: warning: previous declaration of `DRM'
../drm_memory.h:56: error: array index in non-array initializer
../drm_memory.h:56: error: (near initialization for `DRM')
../drm_memory.h:56: warning: braces around scalar initializer
../drm_memory.h:56: warning: (near initialization for `DRM')
../drm_memory.h:56: error: invalid initializer
../drm_memory.h:56: error: (near initialization for `DRM')
../drm_memory.h:56: error: initializer element is not constant
../drm_memory.h:56: error: (near initialization for `DRM')
../drm_memory.h:57: error: array index in non-array initializer
../drm_memory.h:57: error: (near initialization for `DRM')
../drm_memory.h:57: warning: braces around scalar initializer
../drm_memory.h:57: warning: (near initialization for `DRM')
../drm_memory.h:57: error: invalid initializer
../drm_memory.h:57: error: (near initialization for `DRM')
../drm_memory.h:57: warning: excess elements in scalar initializer
../drm_memory.h:57: warning: (near initialization for `DRM')
../drm_memory.h:58: error: array index in non-array initializer
../drm_memory.h:58: error: (near initialization for `DRM')
../drm_memory.h:58: warning: braces around scalar initializer
../drm_memory.h:58: warning: (near initialization for `DRM')
../drm_memory.h:58: error: invalid initializer
../drm_memory.h:58: error: (near initialization for `DRM')
../drm_memory.h:58: warning: excess elements in scalar initializer
../drm_memory.h:58: warning: (near initialization for `DRM')
../drm_memory.h:59: error: array index in non-array initializer
../drm_memory.h:59: error: (near initialization for `DRM')
../drm_memory.h:59: warning: braces around scalar initializer
../drm_memory.h:59: warning: (near initialization for `DRM')
../drm_memory.h:59: error: invalid initializer
../drm_memory.h:59: error: (near initialization for `DRM')
../drm_memory.h:59: warning: excess elements in scalar initializer
../drm_memory.h:59: warning: (near initialization for `DRM')
../drm_memory.h:60: error: array index in non-array initializer
../drm_memory.h:60: error: (near initialization for `DRM')
../drm_memory.h:60: warning: braces around scalar initializer
../drm_memory.h:60: warning: (near initialization for `DRM')
../drm_memory.h:60: error: invalid initializer
../drm_memory.h:60: error: (near initialization for `DRM')
../drm_memory.h:60: warning: excess elements in scalar initializer
../drm_memory.h:60: warning: (near initialization for `DRM')
../drm_memory.h:61: error: array index in non-array initializer
../drm_memory.h:61: error: (near initialization for `DRM')
../drm_memory.h:61: warning: braces around scalar initializer
../drm_memory.h:61: warning: (near initialization for `DRM')
../drm_memory.h:61: error: invalid initializer
../drm_memory.h:61: error: (near initialization for `DRM')
../drm_memory.h:61: warning: excess elements in scalar initializer
../drm_memory.h:61: warning: (near initialization for `DRM')
../drm_memory.h:62: error: array index in non-array initializer
../drm_memory.h:62: error: (near initialization for `DRM')
../drm_memory.h:62: warning: braces around scalar initializer
../drm_memory.h:62: warning: (near initialization for `DRM')
../drm_memory.h:62: error: invalid initializer
../drm_memory.h:62: error: (near initialization for `DRM')
../drm_memory.h:62: warning: excess elements in scalar initializer
../drm_memory.h:62: warning: (near initialization for `DRM')
../drm_memory.h:63: error: array index in non-array initializer
../drm_memory.h:63: error: (near initialization for `DRM')
../drm_memory.h:63: warning: braces around scalar initializer
../drm_memory.h:63: warning: (near initialization for `DRM')
../drm_memory.h:63: error: invalid initializer
../drm_memory.h:63: error: (near initialization for `DRM')
../drm_memory.h:63: warning: excess elements in scalar initializer
../drm_memory.h:63: warning: (near initialization for `DRM')
../drm_memory.h:64: error: array index in non-array initializer
../drm_memory.h:64: error: (near initialization for `DRM')
../drm_memory.h:64: warning: braces around scalar initializer
../drm_memory.h:64: warning: (near initialization for `DRM')
../drm_memory.h:64: error: invalid initializer
../drm_memory.h:64: error: (near initialization for `DRM')
../drm_memory.h:64: warning: excess elements in scalar initializer
../drm_memory.h:64: warning: (near initialization for `DRM')
../drm_memory.h:65: error: array index in non-array initializer
../drm_memory.h:65: error: (near initialization for `DRM')
../drm_memory.h:65: warning: braces around scalar initializer
../drm_memory.h:65: warning: (near initialization for `DRM')
../drm_memory.h:65: error: invalid initializer
../drm_memory.h:65: error: (near initialization for `DRM')
../drm_memory.h:65: warning: excess elements in scalar initializer
../drm_memory.h:65: warning: (near initialization for `DRM')
../drm_memory.h:66: error: array index in non-array initializer
../drm_memory.h:66: error: (near initialization for `DRM')
../drm_memory.h:66: warning: braces around scalar initializer
../drm_memory.h:66: warning: (near initialization for `DRM')
../drm_memory.h:66: error: invalid initializer
../drm_memory.h:66: error: (near initialization for `DRM')
../drm_memory.h:66: warning: excess elements in scalar initializer
../drm_memory.h:66: warning: (near initialization for `DRM')
../drm_memory.h:67: error: array index in non-array initializer
../drm_memory.h:67: error: (near initialization for `DRM')
../drm_memory.h:67: warning: braces around scalar initializer
../drm_memory.h:67: warning: (near initialization for `DRM')
../drm_memory.h:67: error: invalid initializer
../drm_memory.h:67: error: (near initialization for `DRM')
../drm_memory.h:67: warning: excess elements in scalar initializer
../drm_memory.h:67: warning: (near initialization for `DRM')
../drm_memory.h:68: error: array index in non-array initializer
../drm_memory.h:68: error: (near initialization for `DRM')
../drm_memory.h:68: warning: braces around scalar initializer
../drm_memory.h:68: warning: (near initialization for `DRM')
../drm_memory.h:68: error: invalid initializer
../drm_memory.h:68: error: (near initialization for `DRM')
../drm_memory.h:68: warning: excess elements in scalar initializer
../drm_memory.h:68: warning: (near initialization for `DRM')
../drm_memory.h:69: error: array index in non-array initializer
../drm_memory.h:69: error: (near initialization for `DRM')
../drm_memory.h:69: warning: braces around scalar initializer
../drm_memory.h:69: warning: (near initialization for `DRM')
../drm_memory.h:69: error: invalid initializer
../drm_memory.h:69: error: (near initialization for `DRM')
../drm_memory.h:69: warning: excess elements in scalar initializer
../drm_memory.h:69: warning: (near initialization for `DRM')
../drm_memory.h:70: error: array index in non-array initializer
../drm_memory.h:70: error: (near initialization for `DRM')
../drm_memory.h:70: warning: braces around scalar initializer
../drm_memory.h:70: warning: (near initialization for `DRM')
../drm_memory.h:70: error: invalid initializer
../drm_memory.h:70: error: (near initialization for `DRM')
../drm_memory.h:70: warning: excess elements in scalar initializer
../drm_memory.h:70: warning: (near initialization for `DRM')
../drm_memory.h:71: error: array index in non-array initializer
../drm_memory.h:71: error: (near initialization for `DRM')
../drm_memory.h:71: warning: braces around scalar initializer
../drm_memory.h:71: warning: (near initialization for `DRM')
../drm_memory.h:71: error: invalid initializer
../drm_memory.h:71: error: (near initialization for `DRM')
../drm_memory.h:71: warning: excess elements in scalar initializer
../drm_memory.h:71: warning: (near initialization for `DRM')
../drm_memory.h:72: error: array index in non-array initializer
../drm_memory.h:72: error: (near initialization for `DRM')
../drm_memory.h:72: warning: braces around scalar initializer
../drm_memory.h:72: warning: (near initialization for `DRM')
../drm_memory.h:72: error: invalid initializer
../drm_memory.h:72: error: (near initialization for `DRM')
../drm_memory.h:72: warning: excess elements in scalar initializer
../drm_memory.h:72: warning: (near initialization for `DRM')
../drm_memory.h:73: error: array index in non-array initializer
../drm_memory.h:73: error: (near initialization for `DRM')
../drm_memory.h:73: warning: braces around scalar initializer
../drm_memory.h:73: warning: (near initialization for `DRM')
../drm_memory.h:73: error: invalid initializer
../drm_memory.h:73: error: (near initialization for `DRM')
../drm_memory.h:73: warning: excess elements in scalar initializer
../drm_memory.h:73: warning: (near initialization for `DRM')
../drm_memory.h:74: error: array index in non-array initializer
../drm_memory.h:74: error: (near initialization for `DRM')
../drm_memory.h:74: warning: braces around scalar initializer
../drm_memory.h:74: warning: (near initialization for `DRM')
../drm_memory.h:74: error: invalid initializer
../drm_memory.h:74: error: (near initialization for `DRM')
../drm_memory.h:74: warning: excess elements in scalar initializer
../drm_memory.h:74: warning: (near initialization for `DRM')
../drm_memory.h:75: error: array index in non-array initializer
../drm_memory.h:75: error: (near initialization for `DRM')
../drm_memory.h:75: warning: braces around scalar initializer
../drm_memory.h:75: warning: (near initialization for `DRM')
../drm_memory.h:75: error: invalid initializer
../drm_memory.h:75: error: (near initialization for `DRM')
../drm_memory.h:75: warning: excess elements in scalar initializer
../drm_memory.h:75: warning: (near initialization for `DRM')
../drm_memory.h:76: error: array index in non-array initializer
../drm_memory.h:76: error: (near initialization for `DRM')
../drm_memory.h:76: warning: braces around scalar initializer
../drm_memory.h:76: warning: (near initialization for `DRM')
../drm_memory.h:76: error: invalid initializer
../drm_memory.h:76: error: (near initialization for `DRM')
../drm_memory.h:76: warning: excess elements in scalar initializer
../drm_memory.h:76: warning: (near initialization for `DRM')
../drm_memory.h:77: warning: braces around scalar initializer
../drm_memory.h:77: warning: (near initialization for `DRM')
../drm_memory.h:77: error: invalid initializer
../drm_memory.h:77: error: (near initialization for `DRM')
../drm_memory.h:77: warning: excess elements in scalar initializer
../drm_memory.h:77: warning: (near initialization for `DRM')
../drm_memory.h:77: warning: excess elements in scalar initializer
../drm_memory.h:77: warning: (near initialization for `DRM')
../drm_memory.h:81: error: `DRM' declared as function returning a function
../drm_memory.h:81: warning: function declaration isn't a prototype
../drm_memory.h:81: error: redefinition of `DRM'
../drm_memory.h:55: error: `DRM' previously defined here
../drm_memory.h: In function `DRM':
../drm_memory.h:81: warning: type of `mem_init' defaults to `int'
../drm_memory.h:84: error: `mem_lock' undeclared (first use in this function)
../drm_memory.h:84: error: invalid lvalue in unary `&'
../drm_memory.h:86: error: `mem_stats' undeclared (first use in this function)
../drm_memory.h:86: warning: assignment makes pointer from integer without a cast
../drm_memory.h:94: error: `ram_available' undeclared (first use in this function)
../drm_memory.h:94: error: invalid lvalue in assignment
../drm_memory.h:95: error: `ram_used' undeclared (first use in this function)
../drm_memory.h:95: error: invalid lvalue in assignment
../drm_memory.h: At top level:
../drm_memory.h:99: error: `DRM' declared as function returning a function
../drm_memory.h:99: warning: function declaration isn't a prototype
../drm_memory.h:99: error: redefinition of `DRM'
../drm_memory.h:81: error: `DRM' previously defined here
../drm_memory.h: In function `DRM':
../drm_memory.h:99: warning: type of `mem_uninit' defaults to `int'
../drm_memory.h:100: error: `mem_lock' undeclared (first use in this function)
../drm_memory.h:100: error: invalid lvalue in unary `&'
../drm_memory.h: At top level:
../drm_memory.h:106: error: `DRM' declared as function returning a function
../drm_memory.h:106: warning: function declaration isn't a prototype
../drm_memory.h:106: error: redefinition of `DRM'
../drm_memory.h:99: error: `DRM' previously defined here
../drm_memory.h: In function `DRM':
../drm_memory.h:106: warning: type of `_mem_info' defaults to `int'
../drm_memory.h:111: error: `req' undeclared (first use in this function)
../drm_memory.h:115: error: `ram_available' undeclared (first use in this function)
../drm_memory.h:115: warning: long unsigned int format, int arg (arg 8)
../drm_memory.h:117: error: `ram_used' undeclared (first use in this function)
../drm_memory.h:117: warning: long unsigned int format, int arg (arg 8)
../drm_memory.h:120: error: `mem_stats' undeclared (first use in this function)
../drm_memory.h:120: warning: assignment makes pointer from integer without a cast
../drm_memory.h: At top level:
../drm_memory.h:138: error: `DRM' declared as function returning a function
../drm_memory.h:138: warning: function declaration isn't a prototype
../drm_memory.h:138: error: redefinition of `DRM'
../drm_memory.h:106: error: `DRM' previously defined here
../drm_memory.h: In function `DRM':
../drm_memory.h:138: warning: type of `mem_info' defaults to `int'
../drm_memory.h:141: error: `mem_lock' undeclared (first use in this function)
../drm_memory.h:141: error: invalid lvalue in unary `&'
../drm_memory.h:142: error: `_mem_info' undeclared (first use in this function)
../drm_memory.h:142: error: `oidp' undeclared (first use in this function)
../drm_memory.h:142: error: `arg1' undeclared (first use in this function)
../drm_memory.h:142: error: `arg2' undeclared (first use in this function)
../drm_memory.h:142: error: `req' undeclared (first use in this function)
../drm_memory.h:142: error: called object is not a function
../drm_memory.h:143: error: invalid lvalue in unary `&'
../drm_memory.h: At top level:
../drm_memory.h:149: error: `DRM' declared as function returning a function
../drm_memory.h:149: warning: function declaration isn't a prototype
../drm_memory.h:149: error: redefinition of `DRM'
../drm_memory.h:138: error: `DRM' previously defined here
../drm_memory.h: In function `DRM':
../drm_memory.h:149: warning: type of `alloc' defaults to `int'
../drm_memory.h:152: error: `size' undeclared (first use in this function)
../drm_memory.h:153: error: `mem_stats' undeclared (first use in this function)
../drm_memory.h:153: error: `area' undeclared (first use in this function)
../drm_memory.h:158: error: `M_DRM' undeclared (first use in this function)
../drm_memory.h:158: warning: passing arg 2 of `malloc' makes pointer from integer without a cast
../drm_memory.h:162: error: `mem_lock' undeclared (first use in this function)
../drm_memory.h:162: error: invalid lvalue in unary `&'
../drm_memory.h:164: error: invalid lvalue in unary `&'
../drm_memory.h:167: error: invalid lvalue in unary `&'
../drm_memory.h:170: error: invalid lvalue in unary `&'
../drm_memory.h:171: warning: return makes integer from pointer without a cast
../drm_memory.h: At top level:
../drm_memory.h:175: error: `DRM' declared as function returning a function
../drm_memory.h:175: warning: function declaration isn't a prototype
../drm_memory.h:175: error: redefinition of `DRM'
../drm_memory.h:149: error: `DRM' previously defined here
../drm_memory.h: In function `DRM':
../drm_memory.h:175: warning: type of `realloc' defaults to `int'
../drm_memory.h:178: error: `alloc' undeclared (first use in this function)
../drm_memory.h:178: error: `size' undeclared (first use in this function)
../drm_memory.h:178: error: `area' undeclared (first use in this function)
../drm_memory.h:178: error: called object is not a function
../drm_memory.h:179: error: `oldpt' undeclared (first use in this function)
../drm_memory.h:179: error: `oldsize' undeclared (first use in this function)
../drm_memory.h:181: error: called object is not a function
../drm_memory.h:183: warning: return makes integer from pointer without a cast
../drm_memory.h: At top level:
../drm_memory.h:187: error: `DRM' declared as function returning a function
../drm_memory.h:187: warning: function declaration isn't a prototype
../drm_memory.h:187: error: redefinition of `DRM'
../drm_memory.h:175: error: `DRM' previously defined here
../drm_memory.h: In function `DRM':
../drm_memory.h:187: warning: type of `strdup' defaults to `int'
../drm_memory.h:189: error: `s' undeclared (first use in this function)
../drm_memory.h:191: error: `alloc' undeclared (first use in this function)
../drm_memory.h:191: error: `area' undeclared (first use in this function)
../drm_memory.h:191: error: called object is not a function
../drm_memory.h:193: warning: return makes integer from pointer without a cast
../drm_memory.h: At top level:
../drm_memory.h:197: error: `DRM' declared as function returning a function
../drm_memory.h:197: warning: function declaration isn't a prototype
../drm_memory.h:197: error: redefinition of `DRM'
../drm_memory.h:187: error: `DRM' previously defined here
../drm_memory.h: In function `DRM':
../drm_memory.h:197: warning: type of `strfree' defaults to `int'
../drm_memory.h:200: error: `s' undeclared (first use in this function)
../drm_memory.h:200: warning: `return' with no value, in function returning non-void
../drm_memory.h:203: error: `area' undeclared (first use in this function)
../drm_memory.h:203: error: called object is not a function
../drm_memory.h: At top level:
../drm_memory.h:207: error: `DRM' declared as function returning a function
../drm_memory.h:207: warning: function declaration isn't a prototype
../drm_memory.h:207: error: redefinition of `DRM'
../drm_memory.h:197: error: `DRM' previously defined here
../drm_memory.h: In function `DRM':
../drm_memory.h:207: warning: type of `free' defaults to `int'
../drm_memory.h:211: error: `pt' undeclared (first use in this function)
../drm_memory.h:211: error: `mem_stats' undeclared (first use in this function)
../drm_memory.h:211: error: `area' undeclared (first use in this function)
../drm_memory.h:214: error: `M_DRM' undeclared (first use in this function)
../drm_memory.h:214: error: called object is not a function
../drm_memory.h:218: error: `mem_lock' undeclared (first use in this function)
../drm_memory.h:218: error: invalid lvalue in unary `&'
../drm_memory.h:219: error: `size' undeclared (first use in this function)
../drm_memory.h:222: error: invalid lvalue in unary `&'
../drm_memory.h: At top level:
../drm_memory.h:230: error: `DRM' declared as function returning a function
../drm_memory.h:230: warning: function declaration isn't a prototype
../drm_memory.h:230: error: redefinition of `DRM'
../drm_memory.h:207: error: `DRM' previously defined here
../drm_memory.h: In function `DRM':
../drm_memory.h:230: warning: type of `ioremap' defaults to `int'
../drm_memory.h:233: error: `size' undeclared (first use in this function)
../drm_memory.h:234: error: `mem_stats' undeclared (first use in this function)
../drm_memory.h:234: error: subscripted value is neither array nor pointer
../drm_memory.h:234: error: `offset' undeclared (first use in this function)
../drm_memory.h:240: error: `mem_lock' undeclared (first use in this function)
../drm_memory.h:240: error: invalid lvalue in unary `&'
../drm_memory.h:241: error: subscripted value is neither array nor pointer
../drm_memory.h:242: error: invalid lvalue in unary `&'
../drm_memory.h:245: error: invalid lvalue in unary `&'
../drm_memory.h:246: error: subscripted value is neither array nor pointer
../drm_memory.h:247: error: subscripted value is neither array nor pointer
../drm_memory.h:248: error: invalid lvalue in unary `&'
../drm_memory.h:249: warning: return makes integer from pointer without a cast
../drm_memory.h: At top level:
../drm_memory.h:280: error: `DRM' declared as function returning a function
../drm_memory.h:280: warning: function declaration isn't a prototype
../drm_memory.h:280: error: redefinition of `DRM'
../drm_memory.h:230: error: `DRM' previously defined here
../drm_memory.h: In function `DRM':
../drm_memory.h:280: warning: type of `ioremapfree' defaults to `int'
../drm_memory.h:284: error: `pt' undeclared (first use in this function)
../drm_memory.h:285: error: `mem_stats' undeclared (first use in this function)
../drm_memory.h:285: error: subscripted value is neither array nor pointer
../drm_memory.h:288: error: `size' undeclared (first use in this function)
../drm_memory.h:290: error: `mem_lock' undeclared (first use in this function)
../drm_memory.h:290: error: invalid lvalue in unary `&'
../drm_memory.h:291: error: subscripted value is neither array nor pointer
../drm_memory.h:292: error: subscripted value is neither array nor pointer
../drm_memory.h:293: error: subscripted value is neither array nor pointer
../drm_memory.h:294: error: invalid lvalue in unary `&'
../drm_memory.h:296: error: subscripted value is neither array nor pointer
In file included from /root/drm/mga_drv.c:63:
../drm_vm.h: At top level:
../drm_vm.h:7: error: `DRM' declared as function returning a function
../drm_vm.h:7: warning: function declaration isn't a prototype
../drm_vm.h:7: error: redefinition of `DRM'
../drm_memory.h:280: error: `DRM' previously defined here
../drm_vm.h: In function `DRM':
../drm_vm.h:7: warning: type of `dma_mmap' defaults to `int'
../drm_vm.h:8: error: `kdev' undeclared (first use in this function)
../drm_vm.h:16: error: `offset' undeclared (first use in this function)
../drm_vm.h: At top level:
../drm_vm.h:28: error: `DRM' declared as function returning a function
../drm_vm.h:28: warning: function declaration isn't a prototype
../drm_vm.h:28: error: redefinition of `DRM'
../drm_vm.h:7: error: `DRM' previously defined here
../drm_vm.h: In function `DRM':
../drm_vm.h:28: warning: type of `mmap' defaults to `int'
../drm_vm.h:29: error: `kdev' undeclared (first use in this function)
../drm_vm.h:36: error: `find_file_by_proc' undeclared (first use in this function)
../drm_vm.h:36: error: called object is not a function
../drm_vm.h:45: error: `offset' undeclared (first use in this function)
../drm_vm.h:47: error: `dma_mmap' undeclared (first use in this function)
../drm_vm.h:47: error: `prot' undeclared (first use in this function)
../drm_vm.h:47: error: called object is not a function
In file included from /root/drm/mga_drv.c:64:
../drm_sysctl.h: At top level:
../drm_sysctl.h:9: error: `DRM' declared as function returning a function
../drm_sysctl.h:9: warning: parameter names (without types) in function declaration
../drm_sysctl.h:9: warning: static declaration for `DRM' follows non-static
../drm_sysctl.h:9: warning: redundant redeclaration of `DRM' in same scope
../drm_vm.h:28: warning: previous declaration of `DRM'
../drm_sysctl.h:10: error: `DRM' declared as function returning a function
../drm_sysctl.h:10: warning: parameter names (without types) in function declaration
../drm_sysctl.h:10: warning: redundant redeclaration of `DRM' in same scope
../drm_vm.h:28: warning: previous declaration of `DRM'
../drm_sysctl.h:11: error: `DRM' declared as function returning a function
../drm_sysctl.h:11: warning: parameter names (without types) in function declaration
../drm_sysctl.h:11: warning: redundant redeclaration of `DRM' in same scope
../drm_vm.h:28: warning: previous declaration of `DRM'
../drm_sysctl.h:12: error: `DRM' declared as function returning a function
../drm_sysctl.h:12: warning: parameter names (without types) in function declaration
../drm_sysctl.h:12: warning: redundant redeclaration of `DRM' in same scope
../drm_vm.h:28: warning: previous declaration of `DRM'
../drm_sysctl.h:13: error: `DRM' declared as function returning a function
../drm_sysctl.h:13: warning: parameter names (without types) in function declaration
../drm_sysctl.h:13: warning: redundant redeclaration of `DRM' in same scope
../drm_vm.h:28: warning: previous declaration of `DRM'
../drm_sysctl.h:21: error: syntax error before '{' token
../drm_sysctl.h:24: error: syntax error before '}' token
../drm_auth.h:35: warning: `DRM' defined but not used
../drm_lock.h:116: warning: `DRM' defined but not used
../drm_lock.h:140: warning: `DRM' defined but not used
../drm_vm.h:7: warning: `DRM' defined but not used
In file included from /root/drm/mga_drv.c:64:
../drm_sysctl.h:5:1: unterminated #ifdef
*** Error code 1

Stop in /root/drm/mga.
*** Error code 1

Stop in /root/drm.

[Index of Archives]     [X Forum]     [Xorg]     [XFree86 Newbie]     [IETF Announce]     [Security]     [Font Config]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux Kernel]

  Powered by Linux