Fix compiler errors in drivers/char/rio/rio_linux.c

Fix compiler errors in drivers/char/rio/rio_linux.c

Post by Bob Mille » Fri, 11 Apr 2003 20:50:11



When the compatmac.h include file was deleted the indirect include
of asm/uaccess.h was lost.  This patch adds a direct include of
asm/uaccess.h.

This fixes bugme.osdl.org bug number 566.

--

Open Source Development Lab                     Phone: 503.626.2455 Ext. 17

===== drivers/char/rio/rio_linux.c 1.16 vs edited =====
--- 1.16/drivers/char/rio/rio_linux.c   Mon Mar 31 15:55:28 2003

 #include <linux/init.h>

 #include <linux/generic_serial.h>
+#include <asm/uaccess.h>

 #if BITS_PER_LONG != 32
 #  error FIXME: this driver only works on 32-bit platforms
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in

More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

 
 
 

1. New: compile failure in drivers/char/rio/rio_linux.c

http://bugme.osdl.org/show_bug.cgi?id=566

           Summary: compile failure in drivers/char/rio/rio_linux.c
    Kernel Version: 2.5.67
            Status: NEW
          Severity: low


Distribution:  Gentoo 1.4rc2
Hardware Environment:  Abit KG7-RAID, AMD AthlonXP 2100+, 512MB DDR
Software Environment:  gcc 3.2.2, glibc 2.3.1, ld 2.13.90.0.18
Problem Description:

  gcc -Wp,-MD,drivers/char/rio/.rio_linux.o.d -D__KERNEL__ -Iinclude -Wall
-Wstrict-prototypes -Wno-trigraphs -O2 -fno-strict-aliasing -fno-common -pipe
-mpreferred-stack-boundary=2 -march=athlon -Iinclude/asm-i386/mach-default
-nostdinc -iwithprefix include    -DKBUILD_BASENAME=rio_linux
-DKBUILD_MODNAME=rio -c -o drivers/char/rio/.tmp_rio_linux.o
drivers/char/rio/rio_linux.c
drivers/char/rio/rio_linux.c: In function `rio_ioctl':
drivers/char/rio/rio_linux.c:732: warning: implicit declaration of function
`verify_area'
drivers/char/rio/rio_linux.c:732: `VERIFY_READ' undeclared (first use in this
function)
drivers/char/rio/rio_linux.c:732: (Each undeclared identifier is reported only once
drivers/char/rio/rio_linux.c:732: for each function it appears in.)
drivers/char/rio/rio_linux.c:734: warning: implicit declaration of function
`get_user'
drivers/char/rio/rio_linux.c:741: `VERIFY_WRITE' undeclared (first use in this
function)
make[3]: *** [drivers/char/rio/rio_linux.o] Error 1
make[2]: *** [drivers/char/rio] Error 2
make[1]: *** [drivers/char] Error 2
make: *** [drivers] Error 2

Steps to reproduce:

Character devices  --->
<*>   Specialix RIO system support

CONFIG_RIO=y

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in

More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

2. Flash Install error

3. 2.4.19-pre10 s/Efoo/-Efoo/ drivers/char/rio/*.c

4. Driver Soundblaster Live

5. Comments for drivers/char/rio

6. Confidential Business Proposal

7. 2.4.19-pre10 s/Efoo/-Efoo/ drivers/char/rio/*.c UPDATED

8. crashes

9. drivers/char/rio/func.h needs linux/kdev_t.h

10. 2.5.50 drivers/char/rio/rioctrl.c

11. 2.2.21 s/Efoo/-Efoo/ drivers/char/rio/*.c

12. small patch to fix compilation error in drivers/char/rocket.c

13. Remove 3 compiler warnings from rio_linux.c